set_time_limit() error #20

Closed
sarangandk opened this Issue Nov 27, 2013 · 6 comments

Comments

Projects
None yet
3 participants
@sarangandk

pro error

Please see the screenshot about the error. This error pops up everytime I click the clear cache button.

@raamdev

This comment has been minimized.

Show comment Hide comment
@raamdev

raamdev Nov 27, 2013

Member

This is likely happening because the set_time_limit() function has been disabled in your servers' php.ini file. Could you check with your web host to see if set_time_limit() is disabled?

Member

raamdev commented Nov 27, 2013

This is likely happening because the set_time_limit() function has been disabled in your servers' php.ini file. Could you check with your web host to see if set_time_limit() is disabled?

@sarangandk

This comment has been minimized.

Show comment Hide comment
@sarangandk

sarangandk Nov 27, 2013

This is standard at host settings and we don't have access to php.ini..

This is standard at host settings and we don't have access to php.ini..

@sarangandk sarangandk closed this Nov 27, 2013

@sarangandk sarangandk reopened this Nov 27, 2013

@raamdev

This comment has been minimized.

Show comment Hide comment
@raamdev

raamdev Nov 27, 2013

Member

Yes, the PHP configuration is something that your web host has access to and they can disable certain functions, including set_time_limit().

You can check if that function has been disabled by your web host by creating a PHP file and adding the following to it:

<?php
    phpinfo();
?>

Upload that file to your site and then open it with your browser. You should get all the PHP configuration. Do a search for "set_time_limit" and see if something like this shows up:

screen shot 2013-11-27 at 6 04 30 pm

Member

raamdev commented Nov 27, 2013

Yes, the PHP configuration is something that your web host has access to and they can disable certain functions, including set_time_limit().

You can check if that function has been disabled by your web host by creating a PHP file and adding the following to it:

<?php
    phpinfo();
?>

Upload that file to your site and then open it with your browser. You should get all the PHP configuration. Do a search for "set_time_limit" and see if something like this shows up:

screen shot 2013-11-27 at 6 04 30 pm

@ghost ghost assigned raamdev Nov 27, 2013

@jaswrks

This comment has been minimized.

Show comment Hide comment
@jaswrks

jaswrks Nov 27, 2013

Member

@raamdev It might be worth our time to suppress these errors on set_time_limit() by preceding them with an @ sign. Example @set_time_limit(), just to prevent errors in the case of hosts that don't support it.

Then again, if set_time_limit() won't work, you're losing some functionality, so it seems like bringing this to the attention of a site owner by producing an error could be the way to go. Your call, just thought I would share that it's possible to prevent these error messages; if we want them to be.

Member

jaswrks commented Nov 27, 2013

@raamdev It might be worth our time to suppress these errors on set_time_limit() by preceding them with an @ sign. Example @set_time_limit(), just to prevent errors in the case of hosts that don't support it.

Then again, if set_time_limit() won't work, you're losing some functionality, so it seems like bringing this to the attention of a site owner by producing an error could be the way to go. Your call, just thought I would share that it's possible to prevent these error messages; if we want them to be.

@sarangandk

This comment has been minimized.

Show comment Hide comment
@sarangandk

sarangandk Nov 28, 2013

This is the phpinfo file for my host http://www.one.com/
http://nerudal.com/phpinfo.php

Also in their support page they wrote that they are running PHP in safemode and disabled set_time_limit() function:

http://www.one.com/en/support/faq/what-is-php-safe-mode-and-open-basedir

This is the phpinfo file for my host http://www.one.com/
http://nerudal.com/phpinfo.php

Also in their support page they wrote that they are running PHP in safemode and disabled set_time_limit() function:

http://www.one.com/en/support/faq/what-is-php-safe-mode-and-open-basedir

@raamdev raamdev closed this in df7d42a Dec 5, 2013

@raamdev

This comment has been minimized.

Show comment Hide comment
@raamdev

raamdev Dec 5, 2013

Member

The errors are being suppressed for now and this change will be released in the next maintenance release so those warnings don't keep bugging users.

Suppressing the errors really isn't the right way to handle this, so in future maintenance release I will handle this better by showing a warning to users upon plugin activation when they have set_time_limit() disabled in their PHP configuration.

Member

raamdev commented Dec 5, 2013

The errors are being suppressed for now and this change will be released in the next maintenance release so those warnings don't keep bugging users.

Suppressing the errors really isn't the right way to handle this, so in future maintenance release I will handle this better by showing a warning to users upon plugin activation when they have set_time_limit() disabled in their PHP configuration.

@raamdev raamdev removed their assignment Apr 28, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment