You are viewing the OptimizePress 2.0 Help center. Click here for OptimizePress 3.0 support.
  1. Home
  2. Knowledge Base
  3. Getting Started Questions
  4. Error – Fatal Error Maximum Execution Time

Error – Fatal Error Maximum Execution Time

If you are getting an error similar to:

Fatal error: Maximum execution time of 60 seconds exceeded in …
This is usually because your hosting company need to increase the max_execution_time value on your server
This is basically the time your server allows for PHP functions to complete.  Unfortunately this is outside of the control of the OP options, but there are a few things we can do to fix this….
To fix this, you need to add one line of code into a file within your WordPress site.
 ** NOTE GODADDY USERS – You may need to speak to Godaddy to ask them to increase this for you as we have found the fix below does not often work on their servers **
===

If you are using the Theme version:

Go to Appearance > Editor > and on the right side locate the “framework.php” file and click it.  
Next you need to paste in this code:
ini_set('max_execution_time', 600);
===

If you are using the Plugin version:

Go to Plugins > Editor and paste this line of code into the “optimizepress.php” file:
ini_set('max_execution_time', 600);
If you have problems doing this – we can update this for you.  Send over your site url and admin logins.  Please note that in some circumstances the override within WordPress will not work and in these cases we ask you to contact your hosting company or server administrator to increase this limit

Was this article helpful?

Related Articles

Support Discontinued
As a discontinued platform, OptimizePress 2.0 is no longer officially supported. We recommend upgrading to our new OptimizePress suite. Click the button below to see our latest plans
Upgrade to OptimizePress 3.0