If you’re using the popular Divi page builder to create your website, you might run into the error message “this file should not be imported in this context” when trying to import exported pages. This error can be frustrating and confusing, but fortunately, there is a relatively simple fix that can help you get your pages imported successfully.
One possible cause of this error is an issue with the maximum allowed upload file size in PHP. When you try to import a page, the file you’re uploading may be larger than the maximum size allowed by your server’s PHP settings. This can trigger the error message and prevent your page from being imported.
The Fix for “This file should not be imported in this context”
To fix this issue, you’ll need to check the maximum upload file size in your PHP settings. Ensure that it is set high enough to accommodate the file you’re trying to upload. Here’s how to do it:
- Log in to your website’s hosting control panel or cPanel.
- Look for the “PHP Settings” or “Select PHP Version” section.
- Select the version of PHP that your website is using.
- Look for the “upload_max_filesize” and “post_max_size” settings.
- Increase the values of these settings to a higher value than the size of the file you’re trying to upload.
- Save your changes and try importing your page again.
It’s important to note that changing your PHP settings can have an impact on your website’s performance. It’s a good idea to only increase the values as much as you need to in order to import your page. You can also consider reverting the values back to their original settings once you’ve successfully imported your page.
In addition to checking your PHP settings, there are a few other things you can try. For example, you can try exporting your page again to ensure that the file is not corrupted or incomplete. You can also try clearing your browser cache and cookies, as this can sometimes resolve issues with importing pages.
If you’re encountering the error message “this file should not be imported in this context” when importing pages into Divi, it’s possible that the maximum allowed upload file size in PHP needs to be increased. By following the steps outlined above, you should be able to resolve this issue and successfully import your pages into Divi.
You can find out more about Divi page builder on their website.