Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Moodle 4.2 : Backups (CLI and GUI) not working (htmlspecialchars error message))

$
0
0
by Jens Prymelski.  

Hi again,

further investigations have identified a plug-in as the reason of the error.
It causes, that in one case an array is provided to the htmlspecialchars() function in the backup/util/xml/xml_writer.class.php.

Further information (for those who are interested):
In this special case, a hotfix was possible, as a temporary solution, by catching this specific error within the function xml_safe_text_content function:

protected function xml_safe_text_content($content) {
if (gettype($content) === 'array') {
   $content = implode('', $content);
}

...
}


Thank you both for your help.

Have a nice day.

Greetings,
Jens

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>