Articles in this section
Category / Section

Workflow stops executing after a certain number of steps

2 mins read
Updated:

Overview

FlowMattic workflows are designed to run indefinitely, but there might be instances where workflows stop executing after a certain number of steps. Here are a few common reasons that may cause this behaviour:

  1. Action Step Error: An error in an action step can halt the workflow.
  2. Filter Module Condition Not Met: If a filter condition is not satisfied, the workflow will stop executing further steps.
  3. PHP Memory or Execution Time Limits: Reaching the PHP memory limit or execution time limit can stop the workflow.
  4. PHP Max Input Vars Limit: Exceeding the PHP max input vars limit can also interrupt the workflow.

Steps to Troubleshoot Workflow Stoppage

1. Check the Debug Log

To identify errors or warnings causing the workflow to stop, enable debugging in your WordPress installation:

  1. Edit your wp-config.php file.

  2. Add the following lines of code:

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    
  3. This will create a debug.log file in the wp-content directory, where you can review errors and warnings.

2. Verify Filter Module Conditions

If you’re using a Filter module, ensure that the filter conditions are correctly set and being met. If not, adjust the conditions to align with your workflow requirements.

3. Increase PHP Memory and Execution Time Limits

If the workflow stops due to memory or execution time constraints, update your php.ini file with the following recommended values:

memory_limit = 512M
max_execution_time = 300
4. Increase PHP Max Input Vars Limit

If the max input vars limit is causing the issue, modify your php.ini file to increase the limit. Recommended value:

max_input_vars = 5000

Note: These values are recommendations only, and not requirements. Adjust them based on your server configuration and specific workflow needs.

Additional Tips

  • After making changes to the php.ini file, restart your web server to apply the new settings.
  • Consult your hosting provider if you’re unable to modify server configurations directly.

Further Assistance

If the above steps do not resolve the issue, contact FlowMattic support for expert assistance. Provide them with relevant details, including the debug log and any specific configurations in your workflow.

By following these steps, you can effectively troubleshoot and resolve issues causing your workflow to stop after several steps.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Access denied
Access denied