PHP Fatal Error: Maximum Execution time exceeded

If you're seeing an error in your log:

1PHP Fatal error: Maximum execution time of 240 seconds exceeded in </path/to/any_file.php> on line xx

Then you may need to edit your php.ini and update the variable 'maximum_execution_time'. Don't forget to restart your web service.

If issue persist, then overrides is being done in code. Search it as follows and fix accordingly:

1grep -Ri max_execution_time ./*