PHP 5.6 Breaks Zend Cache

Permalink
Hi There,

My Hoster announced PHP 5.5 EOL taking Place June 2016. Therefore I changed the php Version for my Concrete5 Sites manually to 5.6.

So far, everything worked, no errors on my site.

Now, one week later, I made some content changes to my site, cleared the cache, and suddendly, the frontend of my page was not working anymore. Instead, I get the following php error:

Catchable fatal error: Object of class BlockRecord could not be converted to string in /home/.../concrete/libraries/3rdparty/Zend/Cache/Core.php on line 361


The Code Line mentioned in the error is the following:

$data = serialize($data);


Other people in the forums have had similiar problems:
https://www.concrete5.org/community/forums/installation/update-concr...
http://www.concrete5.org/community/forums/block_requests/web-page-f...

But their temporary Solution to just comment out that Line cannot be the solution.

Any Idea, why the serialize() Method would not work anymore with php 5.6?

Best Regards
Jan

janwidmer
 
janwidmer replied on at Permalink Reply
janwidmer
Somehow, the last update to the version 5.6.3.3 was not successfully installed (even though, the success message appeared..) and I was still running version 5.6.0.2. Now that I successfully updated to 5.6.3.3, it also works with php version 5.6
studio4graphics replied on at Permalink Reply
Hi Jan,

How do I manually change the PHP version to 5.6?
In 2 weeks my host will change the PHP version, so I like to test if my website's will not break.

Kind regards,
Maarten
janwidmer replied on at Permalink Reply
janwidmer
Hi Maarten,

You need to login in your Hosters Admin Tool and there somewhere, you should be able to change it as a setting. Usually, you can find it on the website settings page..

Best Regards
Jan