Site logo

[Resolved] 400 error importing from Site Library – not using EasyEngine

Home Forums Support [Resolved] 400 error importing from Site Library – not using EasyEngine

Home Forums Support 400 error importing from Site Library – not using EasyEngine

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1506652
    Clifford

    I tried importing Vacation from Site Library but got a 400 error: https://share.getcloudapp.com/E0urXEWn
    JS console showed it happening on admin-ajax.php

    I am on WPMU DEV hosting and don’t have EasyEngine.

    Unsure if one or both of these WP_DEBUG_LOG messages is related:

    PHP Notice: Only variables should be passed by reference in /wp-content/object-cache.php on line 317

    PHP Notice: wp_cache_flush() used, this is broadly not recommended. Called in /wp-content/plugins/gp-premium/sites/libs/wxr-importer/WXRImporter.php line 552 in /wp-content/object-cache.php on line 322

    Is there a way to manually download then upload/import?

    #1506742
    Leo
    Staff
    Customer Support

    Hi there,

    Do you have any server cache or plugin cache activated?

    Can you quickly disable all plugins to see if that somehow helps with the issue?

    Thanks 🙂

    #1506775
    Clifford

    I didn’t have any caching plugins.

    I had all these active at the first attempt (when creating the support ticket): https://share.getcloudapp.com/L1uQDJrW

    I deactivated all but GP’s and the one you can’t deactivate on their hosting: https://share.getcloudapp.com/DOu9lx6r

    BTW, I had ALL activated but upon attempting the import some got disabled: https://share.getcloudapp.com/E0urXnEm – if that’s not a bug, no worries on my end, just FYI.

    #1508171
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This error is because of caching (and it’s even referencing object-cache.php).

    Does your hosting have any built-in server caching (I’m assuming they do)? If so, is it possible to disable it temporarily while you use the importer?

    #1508201
    Clifford

    With their support, I can confirm adding this line to wp-config.php (temporarily) makes it work:

    define( 'WPMUDEV_HOSTING_OBJECT_CACHE_ENABLED', false );

    I’m a bit surprised, but I’m glad it was easy. And tyvm for your help.

    #1508277
    Tom
    Lead Developer
    Lead Developer

    Glad that worked – thanks for sharing the code 🙂

    #1508531
    Clifford

    OK, so that was actually just half of the battle – upon importing working, then the site wouldn’t load (plus no PHP or JS errors).

    With WPMU DEV’s support, we figured out the “225170” rule from their WAF needed to be disabled.

    1min demo video: https://share.getcloudapp.com/geuqPE0y

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