You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#26 2012-07-27 11:37:47

kolucci
Member
Registered: 2012-07-27
Posts: 2

Re: Error calling the previous page from forbidden one.

Hello!

I've installed GLPI 0.83.4 on my nginx 1.2.2 + php 5.4.5 (php-fpm) + 5.5.25a on Arch Linux

Glpi placed at /usr/share/webapps/glpi.

nginx.conf:

location ^~ /glpi {
  alias /usr/share/webapps/glpi/;
  index index.php;
  location ~ /glpi(/.*\.php) {
    include fastcgi.conf;
    fastcgi_pass    unix:/run/php-fpm/php-fpm.sock;
    fastcgi_param SCRIPT_FILENAME /usr/share/webapps/glpi$1;
    fastcgi_index index.php;
  }
}

After sucessfull installation I saw message: Error calling the previous page from forbidden one.

I've installed MoYo's patch from https://forge.indepnet.net/projects/glp … ions/19041. Nothing changed.

What I'm doing wrong?

Last edited by kolucci (2012-07-27 11:50:15)

Offline

#27 2012-07-27 11:46:41

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Error calling the previous page from forbidden one.

Could you give us $_SERVER datas ?

You are in a really specific case.
You could comment part given on previous post.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#28 2012-07-27 11:48:55

kolucci
Member
Registered: 2012-07-27
Posts: 2

Re: Error calling the previous page from forbidden one.

The problem was solved after I've changed server_name from localhost to FQDN of my host in server section of nginx config. If you still need $_SERVER datas, I could revert changes and give it to you.

Last edited by kolucci (2012-07-27 12:01:11)

Offline

#29 2012-07-27 12:52:00

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Error calling the previous page from forbidden one.

Thanks for the information.

Regards


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#30 2012-08-02 01:25:01

hekho
Member
Registered: 2012-08-02
Posts: 1

Re: Error calling the previous page from forbidden one.

Hi,

I upgraded glpi to GLPI 0.83.4 and had the same error message while trying to log in : "Error calling the previous page from forbidden one".

I am running apache2.2.14 and PHP 5.3.2 on Ubuntu server 10.04.4 LTS
I am connecting to glpi via a cisco VPN and Nat. I could not try directly.

Commenting lines 135 to 150 as recommended fixed the issue.

Offline

#31 2012-08-22 11:24:24

olivierf
Member
Registered: 2012-08-22
Posts: 4

Re: Error calling the previous page from forbidden one.

GLPI Version 0.83.4
OS : OpenBSD 5.0

Bonjour,

J'ai la même erreur : "Error calling the previous page from forbidden one" uniquement en "https".

Solution (resolve) : commenter les lignes suivantes dans le fichier /var/www/glpi/inc/includes.php

// Security : Check HTTP_REFERRER : need to be in GLPI.
//if (!defined('DO_NOT_CHECK_HTTP_REFERER') && !isCommandLine()
// ...
//}

Olivier

Offline

#32 2012-08-22 15:55:18

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Error calling the previous page from forbidden one.

même erreur en faisant quoi ?
Quelle est votre configuration exact  ? utilisation de proxy ?
Si oui vous pouvez regarder ce ticket avec la solution : https://forge.indepnet.net/issues/3803


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#33 2012-08-22 16:04:47

olivierf
Member
Registered: 2012-08-22
Posts: 4

Re: Error calling the previous page from forbidden one.

@MoYo

Pas de proxy

J'ai l'erreur juste après avoir entré le login et mot de passe (authentification) et uniquement en https.

Configuration complète :

OS: OpenBSD 5.0
Serveur: Apache 1.3.29
MySQL Server: 5.1.54
PERL: 5.12.2
PHP: 5.3.6
GLPI: 0.83.4

Offline

#34 2012-08-23 08:38:21

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Error calling the previous page from forbidden one.

Je n'arrive pas  à reproduire. Aucun problème en https chez moi.

Pouvez vous nous donner les données contenu dans la variable $_SERVER ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#35 2012-08-23 09:58:01

olivierf
Member
Registered: 2012-08-22
Posts: 4

Re: Error calling the previous page from forbidden one.

@MoYo

EUREKA .. Merci beaucoup MoYo pour l'indice. Effectivement, la variable $_SERVER ma fait penser à la configuration d'Apache. Et le problème venait de là.

Explication:

Sur mon serveur je suis passé directement de la version 0.83.2 à 0.83.4

Pour une raison que j'ignore, dans le fichier de configuration d'Apache (httpd.conf), pour utiliser le ssl j'avais été obligé de mettre :443 accolé au nom FQDN du serveur comme ci-dessous.

<VirtualHost _default_:443>
ServerName  myserver.domain.tld:443

Cela a été ainsi pour les version 0.83.2 et précédentes.

Pour la version 0.83.4, je dois écrire ceci :

<VirtualHost _default_:443>
ServerName  myserver.domain.tld

Maintenant, cela fonctionne avec le test du referer du fichier includes.php

Pour moi, l'incident est clos.

Olivier.

Offline

#36 2012-08-23 10:21:47

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Error calling the previous page from forbidden one.

super merci du retour.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#37 2013-02-08 12:01:26

it_petitpress
Member
Registered: 2013-02-06
Posts: 1

Re: Error calling the previous page from forbidden one.

Hi.

I just upgraded our GLPI from 0.80.imnotsureanymore to 0.83.7 and encountered the same behaviour - "Error calling the previous page from forbidden one." message.
I can log in, all main pages work good, only when viewing details of any record - computer, network, device or other i see this error at the bottom, where detail information (e.g. connections, history) should be displayed.
See here http://tinypic.com/view.php?pic=t6xs0m&s=6
We use SSL with default HTTPS port 443. Webserver is set up to proxy some other pages, but not GLPI itself - that is installed there, SQL is on external host, but that should not matter. Maybe as proxying is enabled here some settings interfere with your security assumptions.

I am unable to display my $_SERVER variable because your posting system detects some information in there as weblinks and i am only allowed to have 1 link here.

Our webserver config (interesting parts) is like this:

<VirtualHost in.petitpress.sk:443>
   ServerName in.petitpress.sk

   SSLEngine On
   SSLProxyEngine  on
   .....more settings ad some ProxyPass and ProxyPassReverse sections not related to GLPI
   ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
   <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                deny from all
                allow from 127.0.0.1
                AuthType Basic
                satisfy any
                AuthBasicAuthoritative on
                AuthBasicProvider ldap
                AuthzLDAPAuthoritative on
                .....other LDAP related requirements not listed for securityx reasons smile
  </Directory>
</VirtualHost>

I don't do much PHP myself, but I understand quite a bit of programming. Temporarily I commented out the security check and it works.

I certainly hope you can come up with something.

Last edited by it_petitpress (2013-02-08 12:21:44)

Offline

#38 2013-04-29 11:16:52

chuckster
Member
Registered: 2013-04-27
Posts: 2

Re: Error calling the previous page from forbidden one.

Hello,

I just installed GLPI ver. 0.83.8 and I have similar problem. When I try to log in to the system by IP address  then "Error calling the previous page from forbidden one" is shown but when I try by hostname everything is OK.

Is it possible to resolve this problem? Log in by IP address is what I prefer in my LAN (without internal DNS server or something like that to resolve hostnames or domain names).

Offline

#39 2013-12-18 10:27:15

razhimeb
Member
Registered: 2013-12-18
Posts: 1

Re: Error calling the previous page from forbidden one.

i know the thread is old but i had the same problem today,
i am behind a squid gaurd/ proxy although that was not my problem,
one of my users had a ticket open and it did not show on my dashboard so i had to manualy go to administration/users and closed the tickets there manualy

Offline

#40 2015-01-14 00:51:04

troublestarter
Member
Registered: 2008-05-06
Posts: 6

Re: Error calling the previous page from forbidden one.

with version 0.85.1 same error ... with a reverse proxy ...

Offline

#41 2015-12-30 12:32:16

mips
Member
Registered: 2011-06-21
Posts: 44

Re: Error calling the previous page from forbidden one.

I have the same trouble with 0.85.5 and nginx as reverse proxy


Prod: Centos 5 - FusionInventory 0.85+1.3 - Glpi 0.85.5 - Exchange 2010 - Imap

Offline

Board footer

Powered by FluxBB