Swithching to PHP 5.4 makes piwik unusable

Hi

I have installed latest piwik in my cpanel server ,When I switch to php 5.3 , it is unsafe and I get a warning in piwik, when I switch to PHP 5.4 , All of the page is filled with boxes , each throws a similar box with the following text, I searched and found no result, both in google and forum.

I have set in my php to do not display errors and warnings.

Any help would be greatly appreciated
Regards
The error is as below:


 There is an error. Please report the message (Piwik 2.8.0) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: include(): Unable to allocate memory for pool. in /home/myuser/analytics/public_html/vendor/composer/ClassLoader.php on line 382

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/home/myuser/analytics/public_html/vendor/composer/ClassLoader.php:382]
#1 Composer\Autoload\includeFile(...) called at [/home/myuser/analytics/public_html/vendor/composer/ClassLoader.php:382]
#2 Composer\Autoload\includeFile(...) called at [/home/myuser/analytics/public_html/vendor/composer/ClassLoader.php:274]
#3 Composer\Autoload\ClassLoader->loadClass(...) called at [:]
#4 spl_autoload_call(...) called at [/home/myuser/analytics/public_html/plugins/DevicesDetection/Columns/DeviceType.php:27]
#5 Piwik\Plugins\DevicesDetection\Columns\DeviceType->configureSegments(...) called at [/home/myuser/analytics/public_html/core/Columns/Dimension.php:107]
#6 Piwik\Columns\Dimension->getSegments(...) called at [/home/myuser/analytics/public_html/plugins/API/API.php:100]
#7 Piwik\Plugins\API\API->getSegmentsMetadata(...) called at [/home/myuser/analytics/public_html/plugins/SegmentEditor/SegmentSelectorControl.php:42]
#8 Piwik\Plugins\SegmentEditor\SegmentSelectorControl->__construct(...) called at [/home/myuser/analytics/public_html/plugins/SegmentEditor/SegmentEditor.php:50]
#9 Piwik\Plugins\SegmentEditor\SegmentEditor->getSegmentEditorHtml(...) called at [:]
#10 call_user_func_array(...) called at [/home/myuser/analytics/public_html/core/EventDispatcher.php:121]
#11 Piwik\EventDispatcher->postEvent(...) called at [/home/myuser/analytics/public_html/core/Piwik.php:793]
#12 Piwik\Piwik::postEvent(...) called at [/home/myuser/analytics/public_html/core/Twig.php:148]
#13 Piwik\Twig->Piwik\{closure}(...) called at [:]
#14 call_user_func_array(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/30/58/49b5727d52ae483d6e2b0b0354f1229625aa335fe75407e6f1300bd8ecac.php:32]
#15 __TwigTemplate_305849b5727d52ae483d6e2b0b0354f1229625aa335fe75407e6f1300bd8ecac->doDisplay(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:279]
#16 Twig_Template->displayWithErrorHandling(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:253]
#17 Twig_Template->display(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/2c/8c/05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60.php:54]
#18 __TwigTemplate_2c8c05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60->block_content(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:144]
#19 Twig_Template->displayBlock(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/ad/2d/861492d213a0f357f964f53accc3140cbf5a4d29dd1e585acaac11be56e9.php:73]
#20 __TwigTemplate_ad2d861492d213a0f357f964f53accc3140cbf5a4d29dd1e585acaac11be56e9->doDisplay(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:279]
#21 Twig_Template->displayWithErrorHandling(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:253]
#22 Twig_Template->display(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/2c/8c/05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60.php:25]
#23 __TwigTemplate_2c8c05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60->doDisplay(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:279]
#24 Twig_Template->displayWithErrorHandling(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:253]
#25 Twig_Template->display(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:264]
#26 Twig_Template->render(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Environment.php:292]
#27 Twig_Environment->render(...) called at [/home/myuser/analytics/public_html/core/View.php:259]
#28 Piwik\View->renderTwigTemplate(...) called at [/home/myuser/analytics/public_html/core/View.php:253]
#29 Piwik\View->render(...) called at [/home/myuser/analytics/public_html/plugins/CoreHome/Controller.php:177]
#30 Piwik\Plugins\CoreHome\Controller->index(...) called at [:]
#31 call_user_func_array(...) called at [/home/myuser/analytics/public_html/core/FrontController.php:579]
#32 Piwik\FrontController->doDispatch(...) called at [/home/myuser/analytics/public_html/core/FrontController.php:87]
#33 Piwik\FrontController->dispatch(...) called at [/home/myuser/analytics/public_html/core/dispatch.php:34]
#34 require_once(...) called at [/home/myuser/analytics/public_html/index.php:46]


There is an error. Please report the message (Piwik 2.8.0) and full backtrace in the Piwik forums (please do a Search first as it might have been reported already!).

Warning: include(): Unable to allocate memory for pool. in /home/myuser/analytics/public_html/vendor/composer/ClassLoader.php on line 382

Backtrace -->

#0 Piwik\Error::errorHandler(...) called at [/home/myuser/analytics/public_html/vendor/composer/ClassLoader.php:382]
#1 Composer\Autoload\includeFile(...) called at [/home/myuser/analytics/public_html/vendor/composer/ClassLoader.php:382]
#2 Composer\Autoload\includeFile(...) called at [/home/myuser/analytics/public_html/vendor/composer/ClassLoader.php:274]
#3 Composer\Autoload\ClassLoader->loadClass(...) called at [:]
#4 spl_autoload_call(...) called at [/home/myuser/analytics/public_html/plugins/VisitTime/Columns/LocalTime.php:25]
#5 Piwik\Plugins\VisitTime\Columns\LocalTime->configureSegments(...) called at [/home/myuser/analytics/public_html/core/Columns/Dimension.php:107]
#6 Piwik\Columns\Dimension->getSegments(...) called at [/home/myuser/analytics/public_html/plugins/API/API.php:100]
#7 Piwik\Plugins\API\API->getSegmentsMetadata(...) called at [/home/myuser/analytics/public_html/plugins/SegmentEditor/SegmentSelectorControl.php:42]
#8 Piwik\Plugins\SegmentEditor\SegmentSelectorControl->__construct(...) called at [/home/myuser/analytics/public_html/plugins/SegmentEditor/SegmentEditor.php:50]
#9 Piwik\Plugins\SegmentEditor\SegmentEditor->getSegmentEditorHtml(...) called at [:]
#10 call_user_func_array(...) called at [/home/myuser/analytics/public_html/core/EventDispatcher.php:121]
#11 Piwik\EventDispatcher->postEvent(...) called at [/home/myuser/analytics/public_html/core/Piwik.php:793]
#12 Piwik\Piwik::postEvent(...) called at [/home/myuser/analytics/public_html/core/Twig.php:148]
#13 Piwik\Twig->Piwik\{closure}(...) called at [:]
#14 call_user_func_array(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/30/58/49b5727d52ae483d6e2b0b0354f1229625aa335fe75407e6f1300bd8ecac.php:32]
#15 __TwigTemplate_305849b5727d52ae483d6e2b0b0354f1229625aa335fe75407e6f1300bd8ecac->doDisplay(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:279]
#16 Twig_Template->displayWithErrorHandling(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:253]
#17 Twig_Template->display(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/2c/8c/05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60.php:54]
#18 __TwigTemplate_2c8c05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60->block_content(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:144]
#19 Twig_Template->displayBlock(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/ad/2d/861492d213a0f357f964f53accc3140cbf5a4d29dd1e585acaac11be56e9.php:73]
#20 __TwigTemplate_ad2d861492d213a0f357f964f53accc3140cbf5a4d29dd1e585acaac11be56e9->doDisplay(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:279]
#21 Twig_Template->displayWithErrorHandling(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:253]
#22 Twig_Template->display(...) called at [/home/myuser/analytics/public_html/tmp/templates_c/2c/8c/05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60.php:25]
#23 __TwigTemplate_2c8c05d9ab6fd87723602cd86a410ad7f511e13a922438fe9bd1869d65cfda60->doDisplay(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:279]
#24 Twig_Template->displayWithErrorHandling(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:253]
#25 Twig_Template->display(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Template.php:264]
#26 Twig_Template->render(...) called at [/home/myuser/analytics/public_html/vendor/twig/twig/lib/Twig/Environment.php:292]
#27 Twig_Environment->render(...) called at [/home/myuser/analytics/public_html/core/View.php:259]
#28 Piwik\View->renderTwigTemplate(...) called at [/home/myuser/analytics/public_html/core/View.php:253]
#29 Piwik\View->render(...) called at [/home/myuser/analytics/public_html/plugins/CoreHome/Controller.php:177]
#30 Piwik\Plugins\CoreHome\Controller->index(...) called at [:]
#31 call_user_func_array(...) called at [/home/myuser/analytics/public_html/core/FrontController.php:579]
#32 Piwik\FrontController->doDispatch(...) called at [/home/myuser/analytics/public_html/core/FrontController.php:87]
#33 Piwik\FrontController->dispatch(...) called at [/home/myuser/analytics/public_html/core/dispatch.php:34]
#34 require_once(...) called at [/home/myuser/analytics/public_html/index.php:46]

And I get the following error from server with full crash report, the first lines of the report is as follows:

subject:
[abrt] full crash report
abrt_version: 2.0.8
cmdline: /usr/bin/php /home/myuser/analytics/public_html/index.php
executable: /opt/alt/php54/usr/bin/php-cgi
kernel: 2.6.32-531.23.3.lve1.2.66.el6.x86_64
last_occurrence: 1413824561
pid: 491995
pwd: /home/myuser/analytics/public_html
time: Mon 20 Oct 2014 01:02:41 PM EDT
uid: 518
username: myuser

sosreport.tar.xz: Binary file, 5218660 bytes

cgroup:
:2:cpuacct,cpu,cpuset,name=fairsched:/0/518
:1:blkio,name=beancounter:/

please try with PHP 5.5 where this bug should be fixed?

Hi
THANKS for your help
I cannot see any issues after swithcing to PHP 5.5 ,

Some of users install piwik alongside with their other sites in their hosting , and they can choose only one PHP version for their sites. Some users may have to use PHP 5.4 for their other application. So only in these cases ,this is an issue.

So are there any known issues with PHP 5.4?

Thanks
Regards

if you use the PHP 5.4.X the latest version and you have any issue then it’s important to let us know! if it’s an older 5.4.x then it’s first best to update to latest 5.4

Thanks for your great piece of software and your greater support.

I used latest php 5.4 , I have no problem with using php 5.5 , But as it may help , I’ll test thoroughly and update if I get any errors.

Thanks again
Regards

For the record: We are running Debian Wheezy with PHP 5.4.4-14+deb7u14 and have no problems with that. Though, not yet updated to 2.8.x and still running 2.5.0.