Let's try something else:
Edit: 'front/item_device_common.form.php' And comment out the lines if (!$item_device->canView()) { // Gestion timeout session Session::redirectIfNotLoggedIn(); Html::displayRightError(); } Like /*if (!$item_device->canView()) { // Gestion timeout session Session::redirectIfNotLoggedIn(); Html::displayRightError(); }*/ Save it and try again. If this solve your problem then you have a problem of sessions that expires in a very short time, or a problem with session management (check your php.ini file) Another test that can be done is in ‘inc/html.class.php’ and to comment like following: static function displayRightError() { self::displayErrorAndDie(__("You don't have permission to perform this action.")); } static function displayRightError() { // self::displayErrorAndDie(__("You don't have permission to perform this action.")); } DON’T FORGET TO UNCOMMENT THESE LINES AFTER TEST ☺! Regards, Olivier MORON Miscellaneous Program Member RAYNET SNC Tel : +33 4 76 33 49 52 Fax: +33 4 76 70 56 63 -----Original Message----- From: Josep Guerrero Sole [mailto:guerr...@ice.cat] Sent: Tuesday, June 02, 2015 10:03 AM To: glpi-user@gna.org; Moron, Olivier Subject: Re: [Glpi-user] Cannot add components to any computer Hi Olivier, > For rights I'm using the following commands: > > sudo chmod -R ug=rwX,o=r /var/www > > sudo chown -R www-data:www-data /var/www > > To be sure … Thanks for the suggestion! The Debian package installs glpi files under /usr/share/glpi and then uses a specific apache configuration file for glpi with these contents: Alias /glpi /usr/share/glpi <Directory /usr/share/glpi> DirectoryIndex index.php Options FollowSymLinks AllowOverride Limit Options FileInfo </Directory> So what I did is (as root): chmod -R ug=rwX,o=r /usr/share/glpi chown -R www-data:www-data /usr/share/glpi and then restarted the glpi computer. Unfortunately, there was no change: I tried adding components, both to a previously existing added computer and to a newly added one, and I got the error "You don't have permission to perform this action.", as described in my initial message, in both cases. I was wondering... is there some debugging mode or option in glpi (or maybe in apache or php), that I could use to find exactly which operation fails? I've searched the apache logs, but I have not been able to find any message related to this error, so I assume is beind dealt with internally by the glpi code. Thanks again for your help! Josep Guerrero
_______________________________________________ Glpi-user mailing list Glpi-user@gna.org https://mail.gna.org/listinfo/glpi-user