Workflow stops executing after a certain number of steps
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:
- Action Step Error: An error in an action step can halt the workflow.
- Filter Module Condition Not Met: If a filter condition is not satisfied, the workflow will stop executing further steps.
- PHP Memory or Execution Time Limits: Reaching the PHP memory limit or execution time limit can stop the workflow.
- 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:
-
Edit your
wp-config.php
file. -
Add the following lines of code:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );
-
This will create a
debug.log
file in thewp-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.