Title: PHP Warning: set_time_limit()
Last modified: August 2, 2023

---

# PHP Warning: set_time_limit()

 *  Resolved [Maakmeesters](https://wordpress.org/support/users/maakmeesters/)
 * (@maakmeesters)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-warning-set_time_limit/)
 * Hello,
   I’ve been experiencing Internal Server Error messages in the admin area
   for some time now
 * (The server encountered an internal error or misconfiguration and was unable 
   to complete your request.
 * Please contact the server administrator at [support@one.com](https://wordpress.org/support/topic/php-warning-set_time_limit/support@one.com?output_format=md)
   to inform them of the time this error occurred, and the actions you performed
   just before this error.
 * More information about this error may be available in the server error log).
 * These occur on all kinds of pages within the webshop. When having the logs viewed,
   this error message appears there:
 * PHP Warning: set_time_limit(): Cannot set max execution time limit due to system
   policy in /customers/8/4/a/…/httpd.www/wp-content/plugins/activecampaign-for-
   woocommerce/includes/orders/historical/trait-activecampaign-for-woocommerce-historical-
   utilities.php on line 65
 * Would like to hear how to resolve this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-set_time_limit%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-warning-set_time_limit/#post-16941685)
 * I’ve helped analyzing the issue on this website and would like to add, that this
   error occurs on multiple pages, it works after one or more refreshes, but repeats
   at a next attempt. The function is called in a file that should be unrelated 
   to the pages that are called, so it looks like it’s called too often. I wouldn’t
   know why set_time_limit(1800) should be called on every page load in the dashboard.
 * Besides that, it looks like a restriction on the server, but calling the function
   fails, while only the existence of the function is checked.
 * The biggest question is why this function is called at all.
 *  Plugin Author [ActiveCampaign](https://wordpress.org/support/users/acteamintegrations/)
 * (@acteamintegrations)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-warning-set_time_limit/#post-16957407)
 * This is being removed from the plugin once it passes testing. It was used to 
   extend the sync process which was being cut to 30 seconds or less on some WP 
   hosting sites. Since the sync process was moved to a cron this is no longer needed.
   We weren’t aware customers were experiencing errors with this. In future if you
   do face any issues like this, especially if the plugin is causing a fatal error,
   please contact ActiveCampaign support.
 *  Thread Starter [Maakmeesters](https://wordpress.org/support/users/maakmeesters/)
 * (@maakmeesters)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-warning-set_time_limit/#post-16958274)
 * Thanks for the reply, hopefully the update will come soon and the issue will 
   be resolved!
 *  Plugin Author [ActiveCampaign](https://wordpress.org/support/users/acteamintegrations/)
 * (@acteamintegrations)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-warning-set_time_limit/#post-16960961)
 * Version 2.4.0 was just released and removes the calls that use the set_time_limit
   function. I’ll mark this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Warning: set_time_limit()’ is closed to new replies.

 * ![](https://ps.w.org/activecampaign-for-woocommerce/assets/icon-256x256.png?rev
   =1925389)
 * [ActiveCampaign for WooCommerce](https://wordpress.org/plugins/activecampaign-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/activecampaign-for-woocommerce/reviews/)

## Tags

 * [server-error](https://wordpress.org/support/topic-tag/server-error/)

 * 4 replies
 * 3 participants
 * Last reply from: [ActiveCampaign](https://wordpress.org/support/users/acteamintegrations/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-warning-set_time_limit/#post-16960961)
 * Status: resolved