• Resolved Paulo Estevão

    (@pauloestevaons)


    Hi! I’m trying to import an xml file, but I get the error “Please verify that the file you are uploading is a valid XML file.”. I’ve already done the test with several xml files, including some with 3 lines, very simple, but it won’t.
    I’ve searched and haven’t found a solution. can you help me?
    PHP version: 7.4
    Log:

    [19-Jan-2023 14:49:50 UTC] PHP Warning: DOMXPath::query(): Invalid expression in /Users/pauloestevao/Projetos BitBucket/Provenda/provenda/wp-content/plugins/wp-all-import/controllers/admin/settings.php on line 738
    [19-Jan-2023 14:49:50 UTC] PHP Warning: DOMXPath::query(): Invalid expression in /Users/pauloestevao/Projetos BitBucket/Provenda/provenda/wp-content/plugins/wp-all-import/controllers/admin/settings.php on line 738
    [19-Jan-2023 14:49:50 UTC] PHP Warning: DOMXPath::query(): Invalid expression in /Users/pauloestevao/Projetos BitBucket/Provenda/provenda/wp-content/plugins/wp-all-import/controllers/admin/settings.php on line 738

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @pauloestevaons,

    It’s difficult to advise on this without seeing the XML file, but it sounds like it’s not defining the encoding correctly, or the encoding is wrong. Please try adding this to your child theme’s functions.php file (or in a code snippets plugin) and then attempt to upload the file again:

    add_filter( 'is_xml_preprocess_enabled', 'wpai_is_xml_preprocess_enabled', 10, 1 );
    function wpai_is_xml_preprocess_enabled( $is_enabled ) {
        return false;
    }

    If that doesn’t help, please contact us at http://www.wpallimport.com/support/ and include a copy of the XML file so that we can run tests with it.

Viewing 1 replies (of 1 total)
  • The topic ‘Erro de importação XML’ is closed to new replies.