Getting Started

Deployment Deployment - Diagnose Migrations Staging

Site Management

Backups Client Reporting Passwords Plugin Automation Plugin Management - Global Plugins & Themes - Diagnose Plugins & Themes - General Plugins & Themes - Git Plugins & Themes - Logs Must Install White Label WordPress Updates

Caching & Performance

Caching Caching - Blogs/Articles Caching - Diagnose Caching - Git Caching - WooCommerce Redis Optimize & Scale

Security

Security Security - Firewall

SMTP, CDN & DNS

SMTP SendGrid CDN CDN - AWS CDN - Cloudflare CDN - Diagnose Domains & DNS

Server & Tools

Analytics & Logs CRON Jobs Database Debug Tool Git Monitoring PHP Settings Redirects SEO Tools Server Errors sFTP SSL

Staq Billing

Staq Billing > Account Staq Billing > Client Staq Billing > Setup

Media

Media Media - Diagnose Media - Optimize

Accounts & Billing

Accounts & Billing

General

WordPress Hosting Website Diagnose Troubleshoot - Other

Troubleshooting Import Process Errors in WordPress


On this page

    When running an import process in WordPress, you may encounter errors or timeouts that interrupt the operation. This guide addresses common scenarios—issues with the WP All Import Pro plugin, timeouts caused by external factors like Cloudflare, and additional steps to debug and optimize the import process.

    WP All Import Pro: Import Terminated

    Issue:

    You see the following error while using WP All Import Pro:

    Your server terminated the import process. Ask your host to check your server’s error log. They will be able to determine why your server is terminating the import process.

    Solution:

    Increase Records per Iteration inside WP All Import Pro plugin:

    • When setting up your import, in Step 4 open Configure Advanced Settings.
    • Adjust the records per iteration to a higher value, such as 120 from the default of 20:

     

    Enable Debugging and check Error Logs:

    • Go to the site’s Staq Panel.
    • Click Debug and enable the Enable WP_DEBUG option.
    • Re-run the import and check for additional error messages.
    • Review the server error logs from the Staq Panel for further details.

    Monitor AJAX Requests:

    • Open your browser’s developer console (usually accessible via F12 or right-click > Inspect).
    • Monitor the Network tab for AJAX requests and identify any errors that occur during the import process

    File Size

    • When you enable the Staq debugging feature, inside the WordPress tab, do you see 403 errors? If so, this could relate to the file size. Consider reducing the file size or consider increasing the file size inside PHP Config by following the steps below.

    Optimize Server Configuration for Import Processes

    To further improve the success rate of imports, adjust your site’s server configurations in the Staq Panel:

    Max Execution Timeout:

    • By default, Staq sets the timeout to 30 seconds.
    • Navigate to Advanced > PHP Config in the Staq Panel and increase it to 45 seconds, 1 minute, 3 minutes, 5 minutes, or 10 minutes based on your import requirements.

    Memory Limit:

    • If the debug logs indicate insufficient memory, increase the memory limit to the next size up.
    • This is also configured under Advanced > PHP Config.

    Max Post Size:

    • The default is 25MB, but it can be increased up to 500MB.
    • Adjust this setting under Advanced > PHP Config for imports involving larger files.

    Max File Upload:

    • The default is 25MB, but it can be increased up to 1GB.

    Timeout issue with Cloudflare

    Issue:

    Import processes, regardless of the plugin used, fail or time out. This is often due to external factors like Cloudflare.

    Solution:

    • If you are using Cloudflare as a proxy for your site, keep in mind that:
      • Default Timeout: Cloudflare has a timeout of 100 seconds for all requests. Any process exceeding this limit will fail.
      • Resolution Options:
        • Disable Cloudflare temporarily to allow the import process to complete.
        • If Cloudflare must remain enabled, consider upgrading to their Enterprise plan, which allows for increased timeout limits.

    Additional Troubleshooting Steps

    If the import process fails or stalls, try these additional measures:

    Wait and Retry: Allow the import process to finish before making changes. If it fails, try again.

    Monitor and Debug: Use the developer console to monitor AJAX requests for errors during the import.

    Adjust Plugin and Server Settings: Increase the number of records per iteration in the plugin settings and adjust server configurations like Max Execution Timeout and Memory Limit.

    Conclusion

    Whether you’re using WP All Import Pro or encountering general timeout issues, leveraging debugging tools, monitoring AJAX requests, and optimizing server configurations can significantly improve the success rate of import processes. For further assistance, consult your hosting provider or plugin support team.

    Need some help?

    We all do sometimes. Please reach out to our support team by dropping us a support ticket. We will respond fast.