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

#1 2009-02-20 16:20:29

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Report Plugin - can't access new reports

I installed the report plugin and attempted to create a new report, but I continue to get an "Access Denied" error every time I attempt to run the report.  I performed the following steps to generate the report.

1. Copied $glpi_home/plugins/reports/report/plugin_reports.licenses.php to $glpi_home/plugins/reports/report/plugin_reports.myreport.php, and modified to include my query.
2. Copied $glpi_home/plugins/reports/locales/report/plugin_reports.licenses.en_GB.php to $glpi_home/plugins/reports/locales/report/plugin_reports.myreport.en_GB.php, and modified the $GEDIFFREPORTLANG line.
3. I was then able to log out of GLPI and log back in, go to Setup > Plugins > Reports > Rights management by report and see my new report listed.  I allowed all profiles to have read access to this new report.
4. I went to Tools > Reports and saw my new report listed.  I click on the link and get Access Denied.

The permissions on the files are correct and there are no errors in the log, or generated in debug mode.  I'm sure there are some permissions that I'm missing somewhere, but I can't find them.  Any help is appreciated.  Thanks.


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#2 2009-02-22 13:22:57

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Report Plugin - can't access new reports

After another logout/login ?


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2009-03-02 14:58:38

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Report Plugin - can't access new reports

I still get access denied.  Is there any way I can see more detail around this error?  I'm sure it's a simple permission setting, but I can't seem to find it in the application or in the file system. 

I just got an error in debug mode now, but I can only see it on the screen and not in the log files and the first part of it is covered up by the GLPI Mode Debug link.

... tohard in /var/www/html/glpi/plugins/reports/setup.php at line 54

Any ideas?

Thanks.

Last edited by Bug Reporter (2009-03-02 15:14:06)


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

#4 2009-03-02 17:59:06

Bug Reporter
Member
Registered: 2008-09-15
Posts: 79

Re: Report Plugin - can't access new reports

It appears that the issue was within the code of the report.  I cleared out everything but the simpleReport function call and it is now working.  I will go back through the code and try and determine what part of it was causing the error.  Thanks.


PROD: RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.3 -- OCS-NG 1.02.1/5003
DEV:   RHEL 5 on x86 32bit -- PHP 5.1.6 -- Apache 2.2.3 -- MySQL 5.0.77  --  GLPI 0.72.4 -- OCS-NG 1.02.1/5003

Offline

Board footer

Powered by FluxBB