Title: set_time_limit() error
Last modified: August 21, 2016

---

# set_time_limit() error

 *  Resolved [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/set_time_limit-error-1/)
 * Hi, after upgrading to version 0.40 I get the following error:
    `Warning: set_time_limit()
   has been disabled for security reasons in /.../wp-content/plugins/efficient-related-
   posts/efficient-related-posts.php on line 337` triggering a “headers already 
   sent” error.
 * [http://wordpress.org/plugins/efficient-related-posts/](http://wordpress.org/plugins/efficient-related-posts/)

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

 *  Plugin Author [Aaron D. Campbell](https://wordpress.org/support/users/aaroncampbell/)
 * (@aaroncampbell)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/set_time_limit-error-1/#post-4095264)
 * Hey Chris, if your site has very many posts/tags, you won’t be able to process
   all the relations without extending out the time limit there. You also shouldn’t
   have display_errors on for a production site (log them, but don’t display them).
   Having said that, I can suppress the warning so that you don’t get a headers 
   sent error. The fix will be in the next release whenever that is (0.4.2 or maybe
   0.5.0 depending), but you can download a zip with the fix included here: [https://github.com/OpenRange/efficient-related-posts/archive/master.zip](https://github.com/OpenRange/efficient-related-posts/archive/master.zip)
 *  Thread Starter [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/set_time_limit-error-1/#post-4095265)
 * Thank you! (Unfortunately on all shared hosting sites that I use I cannot change
   display_errors.)
 *  Plugin Author [Aaron D. Campbell](https://wordpress.org/support/users/aaroncampbell/)
 * (@aaroncampbell)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/set_time_limit-error-1/#post-4095266)
 * What shared host do you use? Usually they have it OFF by default and you have
   to turn it ON.
 *  [Michal N.](https://wordpress.org/support/users/michal-n/)
 * (@michal-n)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/set_time_limit-error-1/#post-4095330)
 * Hi Im same problem with version 0.4.1. . Can You help me?
 * Warning: set_time_limit() has been disabled for security reasons in …../www/wp-
   content/plugins/efficient-related-posts**/efficient-related-posts.php on line
   337**
 * Warning: **Cannot modify header** information – headers already sent by (output
   started at …/www/wp-content/plugins/efficient-related-posts/efficient-related-
   posts.php:337) in /data/web/virtuals/64498/virtual/www/wp-admin/**post.php** 
   on line 235
 * Warning: Cannot modify header information – headers already sent by (output started
   at …./www/wp-content/plugins/efficient-related-posts/efficient-related-posts.
   php:337) in /data/web/virtuals/64498/virtual/www/wp-includes/**pluggable.php**
   on line 1121
    This warning info is after save post.
 *  [Michal N.](https://wordpress.org/support/users/michal-n/)
 * (@michal-n)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/set_time_limit-error-1/#post-4095331)
 * I have **311 posts **and **97 tags**. [http://www.k-domu.cz/](http://www.k-domu.cz/)

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

The topic ‘set_time_limit() error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/efficient-related-posts.svg)
 * [Efficient Related Posts](https://wordpress.org/plugins/efficient-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/efficient-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/efficient-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/efficient-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/efficient-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/efficient-related-posts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Michal N.](https://wordpress.org/support/users/michal-n/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/set_time_limit-error-1/#post-4095331)
 * Status: resolved