Answer the question
In order to leave comments, you need to log in
Why did I get the error "Error: 0 - Serialization of 'SimpleXMLElement' is not allowed"?
Learning to develop websites. Here's the project thrown in. So, when I put the -"Sj contact" component on the site filled with content, an error occurs: Error: 0 - Serialization of 'SimpleXMLElement' is not allowed . And when I put on the same clean template, the error does not crash and everything works as it should. Where should I go and what should I do? I really need this component, I don't know what to do... Deadline tomorrow...
test2.vip-photo.com.ua/index.php/ru/joomla-3 (menu item: contacts)
Answer the question
In order to leave comments, you need to log in
This error occurs when stupid people don't understand what SimpleXML returns. And it returns not a string, but an object. Then people try to serialize this object and stumble upon this error. Specifically, in your case, you need to look where the serialize function is used in the template and prescribe before its parameter (string) to cast the object to the string type. To understand in more detail where this error occurs, it is advisable to enable the display of all php errors in the Joomla settings.
It is also advised everywhere to replace it in the
libraries/cms/form/rule/captcha.php file
on the
$captcha = JCaptcha::getInstance($plugin, array('namespace' => (string) $namespace));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question