• Resolved Eric_WVGG

    (@cowboy_x)


    I encountered an error when using the WordPress Importer to suck in some content from an XML file. (https://www.ads-software.com/extend/plugins/wordpress-importer/)

    On line 64 of class.MCB.php…
    if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')) :
    …?the $_SERVER[‘HTTP_X_REQUESTED_WITH’] doesn’t make sense. You can’t evaluate a variable that isn’t set.

    I imagine it should read…

    if(!wp_is_post_revision($post_id) && !wp_is_post_autosave($post_id) && (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')) :

    Thank you for a great tool, I’ve built countless sites with it.

    https://www.ads-software.com/extend/plugins/multiple-content-blocks/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘crashes out in WordPress Importer’ is closed to new replies.