Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cant backup


nm2002

Recommended Posts

I was tring Database Backup in admin and I got this error:

 

Warning: set_time_limit(): Cannot set time limit in safe mode in /home/virtual/site54/fst/var/www/html/admin/includes/functions/general.php on line 733

 

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site54/fst/var/www/html/admin/includes/functions/general.php:733) in /home/virtual/site54/fst/var/www/html/admin/includes/functions/general.php on line 18

 

 

This is file genreal.php-----starting at line 1

 

<?php

/*

$Id: general.php,v 1.160 2003/07/12 08:32:47 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

////

// Redirect to another page or site

function tep_redirect($url) {

global $logger;

 

header('Location: ' . $url);<<<<<<<<<<<<<<<<<<<<<<18 line<<<

 

if (STORE_PAGE_PARSE_TIME == 'true') {

if (!is_object($logger)) $logger = new logger;

$logger->timer_stop();

}

 

exit;

}

 

 

 

 

 

function tep_set_specials_status($specials_id, $status) {

if ($status == '1') {

return tep_db_query("update " . TABLE_SPECIALS . " set status = '1', expires_date = NULL, date_status_change = NULL where specials_id = '" . (int)$specials_id . "'");

} elseif ($status == '0') {

return tep_db_query("update " . TABLE_SPECIALS . " set status = '0', date_status_change = now() where specials_id = '" . (int)$specials_id . "'");

} else {

return -1;

}

}

 

////

// Sets timeout for the current script.

// Cant be used in safe mode.

function tep_set_time_limit($limit) {

if (!get_cfg_var('safe_mode')) {

set_time_limit($limit);<<<<<<<<<<<<<<<<<<<<<<<733

}

}

 

////

Link to comment
Share on other sites

Sounds like your host has safe mode on....

You can backup the database yourself by logging into your phpmyadmin if you can't find a fix for that.

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

Link to comment
Share on other sites

  • 4 weeks later...

I have the same error message.

 

But: When I press the "back"-button on your browser I return to the backup-page and there are a green line at the top telling me backup was sucess and it is :-) So... it is only anoing, not critical.

 

See if the same aply for you...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...