Jump to content

set_time_limit() problem


ttttim
 Share

Recommended Posts

After installation i'm getting the following error while uploading an image

set_time_limit() has been disabled for security reasons

Does anybody have an idea how to solve this?

Link to comment
Share on other sites

  • 2 years later...

Bump, I am seeing this too, and others may also on certain shared hosting environments.
Of course it is not visible when $config->debug = false,  but still I guess this should be optional? 

Warning: set_time_limit() has been disabled for security reasons in /subdomains/staging/wire/core/FileCompiler.php on line 384

 

Link to comment
Share on other sites

You are safe to skip this warning while you are sure you don't have a script that need to run longer than the limit (e.g. a custom cron job which in this case will fail silently). If you don't have lot of modules or your site's size isn't that "big" then you are again safe to ignore it.

 

A small note about this specific warning coming from the FileCompiler.php to try to find out the culprit (imho, in your case, it come from a module) :

Read on https://processwire.com/blog/posts/processwire-3.0.14-updates-file-compiler-fields-and-more/#file-compiler-updates

 

Call to set_time_limit() in ProcessWire 3 :

https://github.com/processwire/processwire/search?q=set_time_limit&type=Code

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...