Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


sunrise99

Recommended Posts

Error:

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

 

Solution:

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);

}

}

 

Into 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);

// }

// }

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...