Support » Plugin: iThemes Security (formerly Better WP Security) » Failed to load external entity

  • Hi,

    we use this PHP Script to include an extension

    	$sxe = simplexml_load_file('');
    	if ($sxe === false) {
    		echo "Laden des XML fehlgeschlagen\n";
    		foreach(libxml_get_errors() as $error) {
    			echo "\t", $error->message;

    and get this error “failed to load external entity”.

    When we deactivate your plugin everything works fine.
    What have we to change to get this solved?

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Sounds like a PHP configuration issue. So perhaps an idea to provide some context like PHP version and PHP settings.

    Or even better, provide a reproducable testcase.

    To prevent any confusion, I’m not iThemes.

    MATT M



    Can you try toggling the PHP options at the bottom of System Tweaks to see if it helps to address the issue?




    we use PHP 7.3.

    we also disable the checkboxes for the plugin options

    – Disable PHP in Uploads
    – Disable PHP in Plugins
    – Disable PHP in Themes

    … but the issue still exist.

    To open the XML file in browser directly is possible.

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.