Archived topic
400 error importing from Site Library - not using EasyEngine
6 replies · Started by Clifford on October 27, 2020
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?
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 :)
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.
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?
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.
Glad that worked - thanks for sharing the code :)
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