?
avatar Vo1ody
Vo1ody
26 Sep 2017

Steps to reproduce the issue

I use SJ_Contact_Ajax extension on my website.
The problem resolved in Joomla 3.7.5 by comment or delete the line
$this->cache->store(serialize($data), $id);
in /home/user/public_html/libraries/joomla/cache/controller/callback.php
but in Joomla 3.8.0 this file was removed.

Expected result

Working FrontEnd extensions that using ajax and serialize method.

Actual result

Error 0 Serialization of 'SimpleXMLElement' is not allowed

System information (as much as possible)

PHP Version | 7.0.23
Web-server | Apache
 

Additional comments

avatar Vo1ody Vo1ody - open - 26 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 26 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Sep 2017
avatar mbabker
mbabker - comment - 26 Sep 2017

That fix completely disables the cache system on your site, it's not a good fix.

You need to contact the extension developer and ask them to update their extension. They are trying to use the cache and store data with an incompatible object.

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Sep 2017
Category com_cache
avatar joomla-cms-bot joomla-cms-bot - change - 27 Sep 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 27 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Sep 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-09-27 05:06:45
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 27 Sep 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Sep 2017

closed as no Core Issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18130.

avatar creativeideashun
creativeideashun - comment - 2 Oct 2017

Hy,

I located the ominous line here:
0:/public_html/libraries/src/Cache/Controller/CallbackController.php

I changed from:
$this->cache->store(serialize($data), $id);

To:
$this->cache->store($data, $id);

And it works fine.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18130.

avatar ms8277
ms8277 - comment - 8 Feb 2018

@creativeideashun Removing or committing $this->cache->store(serialize($data), $id); without adding $this->cache->store($data, $id); will do it, because adding the second line will cause another issue with unserialize() function within the same file

Add a Comment

Login with GitHub to post a comment