- This topic has 26 replies, 3 voices, and was last updated 6 months, 3 weeks ago by Tom.
April 29, 2019 at 12:05 am #882807Brad
I have tried to import Blogg from the site library but I am getting 400 error. I have tried a couple of times now but same thing happens. I saw that another customer had the same thing and he hosted with Namecheap EasyWP, I am as well.
Was there any solution found that you might be aware of?
I have no other plugins (except for Akismet) and no content on the initial install.
BradGeneratePress 2.2.2GP Premium 1.8.1April 29, 2019 at 8:44 am #883379TomLead DeveloperLead Developer
The 400 error is usually a server error regarding AJAX in your Dashboard. When you try the import and get the error, right click the page and click “Inspect”. Are there any red errors in the “Console” area?June 26, 2019 at 5:28 am #941619Andrew
When I attempt to import from the site library, I am receiving the same 400 error. When I check the console, it reads “Failed to load resource: the server responded with a status of 400 ()”.
I am hosted on wp-engine. Do you have any suggestions?
GeneratePress Version: 2.3.2
GP Premium 1.8.3
AndrewJune 26, 2019 at 9:04 am #942041TomLead DeveloperLead Developer
Can you make sure your server is able to communicate with
gpsites.co? You can ask WP Engine support to check this for you.June 26, 2019 at 9:51 am #942103Andrew
Is there an IP WPE can whitelist?June 26, 2019 at 11:32 am #942190Andrew
I just wanted to close the loop on this one. I believe the problem was related to server-side caching. When I toggled the object cache and cleared the page cache, the import completed as expected.
Thanks for the assist.
AndrewJune 26, 2019 at 1:15 pm #942278TomLead DeveloperLead DeveloperJanuary 12, 2020 at 7:51 am #1129775amarpreet
I tried clearing both the page cache and object cache it is still not working. Same error.
Anything else. ?January 12, 2020 at 10:32 am #1129864DavidStaffCustomer Support
have you performed this check:
https://generatepress.com/forums/topic/400-error-when-importing-from-site-library/#post-942041January 13, 2020 at 7:54 am #1130701amarpreet
Yes, David I have done all of these steps even without creating a support ticket here. These are available on the support forum all the time.
May I know what next ?January 13, 2020 at 9:20 am #1130813TomLead DeveloperLead Developer
An error 400 is a security error (no permission), meaning your server isn’t accepting data from our Library.
1. Your site isn’t blocking communication with gpsites.co
2. Your site doesn’t have caching enabled (at the server or WP level)
Then you might have other security precautions in place on your server. You may need to check with your hosting to see if there’s anything else that might be getting in the way.January 13, 2020 at 9:11 pm #1131247amarpreet
I will check again with hositng ( A2 Hosting ) on these questions. However hosting company is very clear that this issue with the GP.
Will come back to you on this.January 14, 2020 at 7:50 am #1131876TomLead DeveloperLead Developer
They’re not wrong, the issue is definitely being caused by the import process. However, it’s not something that happens to most of our users, as the actual permission error comes from the server configuration.
Can you confirm whether it happens during step 1 (options import) or step 2 (content import)?
Let me know 🙂January 14, 2020 at 8:47 am #1131972amarpreet
This is coming during step 1 only.January 14, 2020 at 4:12 pm #1132331TomLead DeveloperLead Developer
So this means your server won’t even download the
options.jsonfile from our
gpsites.coserver. It’s definitely a firewall on your server preventing the files from being downloaded. Your hosting support should be able to allow our server to bypass the firewall, even temporarily while you import the site you want to use.
- You must be logged in to reply to this topic.