Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

please help in various errors


Zaynab

Recommended Posts

Posted

hello, how are you??

you have not touched the site and was working properly.

 

and when in admin to see details of an order that came out I found a lot of errors, enter catalog and had the same problem.

 

could please take a look and guide me a bit

www.lokmantec.com

some errors are:

 

Warning: session_is_registered() [function.session-is-registered]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /home/lokman/public_html/catalog/includes/functions/sessions.php on line 111

 

Deprecated: Function session_is_registered() is deprecated in /home/lokman/public_html/catalog/includes/functions/sessions.php on line 111

 

Warning: session_is_registered() [function.session-is-registered]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /home/lokman/public_html/catalog/includes/functions/sessions.php on line 111

 

Deprecated: Function session_is_registered() is deprecated in /home/lokman/public_html/catalog/includes/functions/sessions.php on line 111

 

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /home/lokman/public_html/catalog/product_info.php on line 189

 

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /home/lokman/public_html/catalog/product_info.php on line 189

 

please help me, do not know where to start

thanks

Posted

@@Zaynab

 

Your host have upgraded PHP to a newer version, and you are running a older version off oscommerce. Many old functions has been deprecated. You must update your shop.

 

What version off oscommerce are you running.

Posted

thank you very much for the help.

but I have a question.

I downloaded http://addons.oscommerce.com/info/7394

there are 2 to unzip folders:

1 with archives, I have only to replace them? Can you change the image of the web?

 

2 folder has instructions how to change command manually for each other,

Should I also replace?

know if there is a step by step tutorial?

 

Pardon my ignorance but I'm just an amateur.

 

thank you very much

Posted

@@Zaynab

 

The addon tells you what to do.

The attached file contains the updated files to drop onto a vanilla RC2a site and also contains step by step upgrade instructions as well.

 

The drop on top folder is for a new 2.2rc2a shop without any modification. Otherwise you have to do it manually as instructed in the other read me folder.

Posted

hello.

took days, following the instructions and reemplazadon commands manually, but I see no change.

and in some documents as: * catalog / admin / includes / classes / sessions.php find

is empty, and says Replace with: preg_match ('/'.

$ session-> name. '= ([^ /] +) / i', $ GLOBALS ['REQUEST_URI'], $ regs);

 

where should I put it??

 

It looked easy, but there are details that do not understand why you do not specify

Posted

Hello again, I followed replacing (copy and paste) and yesterday when upgrading:

catalog / admin / includes / functions / compatibility.php

There was an error and now I can not go from admin, and the worst is that I have no ftp data because the web was made by a friend for years, and I used to change from admin.

 

not to do ......

the error is:

Parse error: syntax error, unexpected T_STRING in / home / lokman / public_html / catalog / admin / includes / functions / compatibility.php on line 43

Posted

ftp data I have already, and I solved the last error that would not let me enter admin.

replace all codes on all files, but still the same.

and path, the errors did not match the documents that I modified.

 

so please I need help, I think it is best to error on the error.

While the 1st error is:

Deprecated: Function session_is_registered () is deprecated in / home / lokman / public_html / catalog / admin / includes / functions / sessions.php on line 75

 

and the document is:

 

 

<?php

/*

$Id: sessions.php,v 1.9 2003/06/23 01:20:05 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

if (STORE_SESSIONS == 'mysql') {

if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) {

$SESS_LIFE = 1440;

}

 

function _sess_open($save_path, $session_name) {

return true;

}

 

function _sess_close() {

return true;

}

 

function _sess_read($key) {

$qid = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "' and expiry > '" . time() . "'");

 

$value = tep_db_fetch_array($qid);

if ($value['value']) {

return $value['value'];

}

 

return false;

}

 

function _sess_write($key, $val) {

global $SESS_LIFE;

 

$expiry = time() + $SESS_LIFE;

$value = $val;

 

$qid = tep_db_query("select count(*) as total from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");

$total = tep_db_fetch_array($qid);

 

if ($total['total'] > 0) {

return tep_db_query("update " . TABLE_SESSIONS . " set expiry = '" . tep_db_input($expiry) . "', value = '" . tep_db_input($value) . "' where sesskey = '" . tep_db_input($key) . "'");

} else {

return tep_db_query("insert into " . TABLE_SESSIONS . " values ('" . tep_db_input($key) . "', '" . tep_db_input($expiry) . "', '" . tep_db_input($value) . "')");

}

}

 

function _sess_destroy($key) {

return tep_db_query("delete from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($key) . "'");

}

 

function _sess_gc($maxlifetime) {

tep_db_query("delete from " . TABLE_SESSIONS . " where expiry < '" . time() . "'");

 

return true;

}

 

session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc');

}

 

function tep_session_start() {

return session_start();

}

 

function tep_session_register($variable) {

return session_register($variable);

}

 

function tep_session_is_registered($variable) {

return session_is_registered($variable);

}

 

function tep_session_unregister($variable) {

return session_unregister($variable);

}

 

function tep_session_id($sessid = '') {

if ($sessid != '') {

return session_id($sessid);

} else {

return session_id();

}

}

 

function tep_session_name($name = '') {

if ($name != '') {

return session_name($name);

} else {

return session_name();

}

}

 

function tep_session_close() {

if (function_exists('session_close')) {

return session_close();

}

}

 

function tep_session_destroy() {

return session_destroy();

}

 

function tep_session_save_path($path = '') {

if ($path != '') {

return session_save_path($path);

} else {

return session_save_path();

}

}

?>

 

 

 

 

please someone help me and tell me I should replace there

Archived

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

×
×
  • Create New...