When I apply a catalog price rule, appears this error: Fatal error: Maximum execution time of 30 seconds exceeded in /app/code/core/Mage/Rule/Model/Condition/Abstract.php on line 301

How can I solve?


This problem is occurring because your maximum execution time is exceeded, So here is the solution you can try,

Increase your Maximum Execution time, So here you have the ways to change it. in value of max exe time 300sec is equal to 5min Just use one of method mention below. To verify your changes done, Create a php file named info.php and copy below code, Upload file to your server, So you can check current time as well.

<?php phpinfo(); ?>

There you can find max_execution_time value.

  1. In .htaccess writephp_value max_execution_time 300
  2. In index.php write ini_set('max_execution_time', 300);
  3. In php.ini write or change max_execution_time = 300

Note: You can increase more time from 300 to 18000 just to confirm if its time related error, If your problem still persists then there will be other bug.

|improve this answer|||||
  • Are there any risks associated with this change? – stsnow Feb 7 '16 at 9:09
  • no there is no risk to do these changes, Also i add few things in post which may help you more. – Adeel Ishfaq Feb 7 '16 at 16:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.