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

invalid shutdown callback when eAccelerator is enabled #4439

Closed
mattab opened this issue Dec 25, 2013 · 9 comments
Closed

invalid shutdown callback when eAccelerator is enabled #4439

mattab opened this issue Dec 25, 2013 · 9 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Dec 25, 2013

Reported in forum http://forum.piwik.org/read.php?2,108845

triggered on php 5.4.23 -> caused by a critical bug in eAccelerator.

Turns out this project is dead, not maintained, and should not be used.

Please ask your sysadmin / web host to use APC instead!

@mattab
Copy link
Member Author

mattab commented Dec 25, 2013

In 8318219: Refs #4439 Registering the callback in the frontcontroller and using a static method rather than a closure

@mattab
Copy link
Member Author

mattab commented Jan 3, 2014

Maybe you also get this error:

Warning: usort() expects parameter 2 to be a valid callback, no array or string given in /usr/www/users/.../piwik/core/View.php on line 212

in which case it's the same problem. Please comment here with your PHP version, to see if it is a wide spread issue. Cheers

@anonymous-matomo-user
Copy link

i got the same problem using PHP 5.4.23 :

Warning: register_shutdown_function(): Invalid shutdown callback '' passed in /usr/www/users/.../piwik/index.php on line 66

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [:]
#1 register_shutdown_function(...) called at [/usr/www/users/.../piwik/index.php:66]

@tsteur
Copy link
Member

tsteur commented Jan 30, 2014

I tried to reproduce it with different PHP versions but without success. I will close it for now but if anyone still experiences some issues please reopen and send us (hello at piwik.org) - if possible - ftp and piwik credentials so that we are able to reproduce and debug the issue. It seems to be related to a specific configuration.

@anonymous-matomo-user
Copy link

Will send login data and everything needed do your email adress.

@tsteur
Copy link
Member

tsteur commented Feb 6, 2014

@brevis thx for sending the details. I found the cause for your problems and other people having a server at Hetzner.

The problem is caused by the eAccelerator ( http://eaccelerator.net/ ) extension. The related ticket can be found here: eaccelerator/eaccelerator#12 . The ticket is already a year old and eAccelerator seems to be not under active development so we do not expect a fix for this issue soon.

The solution is to disable eAccelerator in PHP.ini:

eaccelerator.enable = 0

Only disabling the optimizer as recommended here eaccelerator/eaccelerator#12 (comment) did not solve the issue for us.

Note: Disabling eAccelerator leads to less performance, we recommend to install and use another PHP accelerator like APC http://en.wikipedia.org/wiki/List_of_PHP_accelerators#Alternative_PHP_Cache_.28APC.29 instead.

@tsteur
Copy link
Member

tsteur commented Feb 6, 2014

In ab6070f: refs #4439 disable eAccelerator if enabled (just disabling optimizing did not work) and display a message in the admin UI. Also disabled eAccelerator during tracking. We might need to move the method to detect eAccelerator to another place, not sure if this is the best one

@mattab
Copy link
Member Author

mattab commented Feb 7, 2014

In 175b624: Refs #4439 inlining the message as to not create new translation for this edge case.

@mattab
Copy link
Member Author

mattab commented Feb 7, 2014

I suggested to eAccelerator that they mark their project as deprecated eaccelerator/eaccelerator#44

@mattab mattab added this to the 2.1 - Piwik 2.1 milestone Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…and using a static method rather than a closure
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…optimizing did not work) and display a message in the admin UI. Also disabled eAccelerator during tracking. We might need to move the method to detect eAccelerator to another place, not sure if this is the best one
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants