Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-errors.log grows very quickly #9

Closed
dethegeek opened this issue Sep 8, 2014 · 2 comments
Closed

php-errors.log grows very quickly #9

dethegeek opened this issue Sep 8, 2014 · 2 comments
Milestone

Comments

@dethegeek
Copy link
Contributor

I'm using FusionInventory and FusionInventory agent

Since I upgraded to FormsCreator v2, php-errors.log is filled several times per minut with the following errors :

2014-09-08 08:39:32
Notice(8): Undefined index: glpiactiveprofile
Backtrace :
/var/www/glpi/plugins/formcreator/setup.php:66 Toolbox::userErrorHandlerNormal()
/var/www/glpi/inc/plugin.class.php:101 plugin_init_formcreator()
/var/www/glpi/inc/includes.php:130 Plugin::load()
/var/www/glpi/plugins/fusioninventory/b/deploy/index.php:43 include()

2014-09-08 15:29:51
Notice(8): Undefined index: glpiactiveprofile
Backtrace :
/var/www/glpi/plugins/formcreator/setup.php:66 Toolbox::userErrorHandlerNormal()
/var/www/glpi/inc/plugin.class.php:101 plugin_init_formcreator()
/var/www/glpi/inc/includes.php:130 Plugin::load()
/var/www/glpi/plugins/fusioninventory/index.php:43 include()

I'm the only user of the plugin FusionIvnentory and I think the error comes from the HTTP requests made by the agents.

Comparing the timestamps in php-errors.log and Apache's access.log shows I'm probably right.

When a FI Agent sends a HTTP request to GLPI, I think the variable $_SESSION['glpiactiveprofile'] is not defined, and this generates an error in Form Creator v2

@dethegeek
Copy link
Contributor Author

I did a pull request with a fix : it is workiing on my setup.

@orthagh
Copy link
Contributor

orthagh commented Sep 8, 2014

merged

@orthagh orthagh closed this as completed Sep 8, 2014
@neeftarah neeftarah modified the milestone: 0.84-2.0 Sep 10, 2014
@orthagh orthagh modified the milestone: 0.84-2.0 Sep 10, 2014
@neeftarah neeftarah self-assigned this Jan 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants