Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: set_time_limit(): Cannot set time limit in safe mode


sufi

Recommended Posts

Posted

Warning: set_time_limit(): Cannot set time limit in safe mode in /var/www/vhosts/oyasi.com/httpdocs/install/includes/functions/general.php on line 47

Posted

In that file, change this code:

 

////

// Sets timeout for the current script.

// Cant be used in safe mode.

function osc_set_time_limit($limit) {

if (!get_cfg_var('safe_mode')) {

set_time_limit($limit);

}

}

 

to this code:

 

////

// Sets timeout for the current script.

// Cant be used in safe mode.

// function osc_set_time_limit($limit) {

// if (!get_cfg_var('safe_mode')) {

// set_time_limit($limit);

// }

// }

 

Vger

  • 1 month later...
Posted
In that file, change this code:

 

////

// Sets timeout for the current script.

// Cant be used in safe mode.

function osc_set_time_limit($limit) {

if (!get_cfg_var('safe_mode')) {

set_time_limit($limit);

}

}

 

to this code:

 

////

// Sets timeout for the current script.

// Cant be used in safe mode.

// function osc_set_time_limit($limit) {

// if (!get_cfg_var('safe_mode')) {

// set_time_limit($limit);

// }

// }

 

Vger

 

 

 

 

Hi

 

If i follow that i get a failure in newsletters.php

 

 

Fatal error: Call to undefined function tep_set_time_limit() in /usr/home/web/web154948/admin/newsletters.php on line 282

 

 

 

what can i do to that now?

 

 

Best regards

Brian

Best regards

Brian

Posted

Try changing this

function osc_set_time_limit($limit) {
if (!get_cfg_var('safe_mode')) {
set_time_limit($limit);
}
}

to this

function osc_set_time_limit($limit) {
//if (!get_cfg_var('safe_mode')) {
//set_time_limit($limit);
}
}

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...