خطای Serialization of 'JXMLElement' is not allowed در جوملا و ماژول SJ Contact Ajax و راه برطرف کردن آن.
- کافیست در آدرس modules\mod_sj_contact_ajax\mod_sj_contact_ajax.php
کد های زیر را پیدا کنید
$layout = $params->get('layout', 'default');
$cacheid = md5(serialize(array($layout, $module->id)));
$cacheparams = new stdClass;
$cacheparams->cachemode = 'id';
$cacheparams->class = 'ContactAjax';
$cacheparams->method = 'getList';
$cacheparams->methodparams = $params;
$cacheparams->modeparams = $cacheid;
$list = JModuleHelper::moduleCache($module, $params, $cacheparams);
این کد ها را جایگزین کنید
$layout = $params->get('layout', 'default');
//$cacheid = md5(serialize(array($layout, $module->id)));
//$cacheparams = new stdClass;
//$cacheparams->cachemode = 'id';
//$cacheparams->class = 'ContactAjax';
//$cacheparams->method = 'getList';
//$cacheparams->methodparams = $params;
//$cacheparams->modeparams = $cacheid;
$list = ContactAjax::getList($params);
روش دیگر درست کردن ارور Serialization of 'JXMLElement' is not allowed
آدرس زیر را پیدا کنید
/home/user/public_html/libraries/joomla/cache/controller/callback.php
در خط 184 این دستور را پاک کنید.
$this->cache->store(serialize($data), $id);