Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
invalid shutdown callback when eAccelerator is enabled #4439
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
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
#0 Piwik\Error::errorHandler(...) called at [:]
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.
@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:
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.
…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