No results found. Try again with different words?

Search must be at least 3 characters.

    How to Fix 5XX Error While Importing Flow/Step Templates?

    If you are importing the ready-made templates of Flow OR a Step and getting an error message? Then this article will help you to solve it.

    Are you getting an error similar to the following OR having 5XX (500. 501, 502, 503, etc)

    Error: 500 Allowed memory size of XXXXXXXX bytes exhausted (tried to allocate XXXXX bytes)

    This error can be seen on the error notification popup or in the debug.log file.

    This can happen if any of the following is true:

    • There is an issue with plugins on the site (Plugin conflicts / PHP error)
    • There is an issue with the hosting (Resources such as old PHP version / exhausted resources)

    Let’s take a look at how this can be fixed:

     Step 1: Avoid Conflicts

    Deactivate all plugins except CartFlows, CartFlows PRO, and WooCommerce to get rid of any possible issues with other plugins. And try importing the template again.

    Did it work? Awesome!

    If not, let’s continue to the next step:

    Step 2: Check WP Debug Log

    Enable WordPress debugging mode by installing the WP Debugging plugin and try importing a ready-made template. This plugin will provide log files to get an idea of what might be causing the issue.

    Still no luck? Let’s move on.

     Step 3: Update the PHP Version

    WordPress works with PHP versions as old as PHP 5.6. However, all PHP versions before PHP 7.3 are end-of-life (EOL), meaning they no longer receive updates. Because of this, your site may be exposed to security vulnerabilities.

    Moreover, old PHP versions slow down the website and cause other issues.

    To check the PHP version of your website, follow below few steps:

    • Step 1: Navigate to the tools menu of WordPress
    • Step 2: Click on the Site Health menu
    • Step 3: Click on the Server tab.

    We recommend getting on the latest possible PHP version, or at least 7.3.

     Step 4: Increase Resources Set by Host

    In many cases, the template import can fail because of the limits set by the server’s PHP configuration.

    Your website needs a certain amount of resources to function properly. Depending on the activities on your website and all the plugins running, there may be just not enough resources left for the successful template import. In this case, we would suggest modifying your PHP configuration to the following recommended values (values are approximate):

    memory_limit = 512M
    max_execution_time = 900
    max_input_time = 900
    post_max_size = 256M
    upload_max_filesize = 720M

    These settings will ensure that there are enough resources on your website, even if you’re, for example, running some highly demanding plugins. Thus, you can also try increasing your values gradually and checking if you can import your template successfully with those settings.

    For many non-techie users, this might feel daunting, and checking the log files process will differ from host to host. So it is always better to get it done by someone who knows it well.

    So feel free to get in touch with your hosting company, and they will be happy to do it for you.

    Here is an email that you can send:

    Hello,
    
    I’m trying to import a CartFlows ready-made flow/step template from the plugin: https://wordpress.org/plugins/cartflows/. 
    
    It appears that my website is getting a 500 – Internal Server Error. Is it possible for you to:
    
    1) Enable WordPress debugging mode
    
    2) Check the log files
    
    3) Share the file with me?
    
    Also the plugin documentation mentioned recommended PHP configuration to be used. Could you please apply the following values for my website:
    
    PHP Version: 7.3 or latest possible
    memory_limit = 512M
    max_execution_time = 900
    max_input_time = 900
    post_max_size = 256M
    upload_max_filesize = 720M
    
    Can you help me with this?
    
    Thanks in advance.

    Still no luck? Please feel free to get in touch with our support, and we will be happy to take a look.

    Was this article helpful?
    Did not find a solution? We are here to help you succeed.

    Related Docs

    Try CartFlows Risk-Free for 14 Days

    You are protected by our no questions asked refund policy.

    Download is Just A Click Away!

    Enter your email address and be the first to learn about updates and new features.