• Hi,

    we use this PHP Script to include an extension

    	libxml_use_internal_errors(true);
    	$sxe = simplexml_load_file('https://www.domain.com/path-to-file/filename.xml');
    	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
    Marc

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.

    Hi,

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

    Thanks,

    Matt

    Thread Starter Marc Troendle

    (@mtnetcontrolde)

    Hi,

    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
    Marc

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Failed to load external entity’ is closed to new replies.