Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

2 important problems with osc


akbareshghi

Recommended Posts

Specifications of test machines:

Xampp 1.7.7

Windows 7

Oscommerce 2.2 with installed persian language ,Hejri date and various addons

First problem:

Deprecated: Function ereg_replace() is deprecated in C:\xampp\htdocs\2\includes\application_top.php on line 17

These codes: lines around 17

while (list($key, $value) = each($_GET)){
   $_GET[$key] = ereg_replace('[<>]', '', $value);
   unset($GLOBALS[$key]);
 }

 

Second problem:

Deprecated: Function ereg() is deprecated in C:\xampp\htdocs\2\includes\functions\farsi.php on line 25

These codes: lines around 25

function tep_formathejri($date) {
 if($date == null)
   return null;
 if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $datetime)) {
   return jdate("l، d F، Y", mktime(0,0,0,$datetime[2],$datetime[3],$datetime[1]));
 } else {
   return HEJRI_ERROR;
 }
}

 

Please help me troubleshooting this problem

I customized the OSC commerce of eshopmaster (osCommerce STS Edition v.0.98)

Thanks for replys

Link to comment
Share on other sites

You are using an old oscommerce version, use the new 2.3.1 and you will not have those errors

Link to comment
Share on other sites

you couldtry lookingat this contribution

 

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

 

HTH

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

you couldtry lookingat this contribution

 

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

 

HTH

 

G

 

That contribution does contain the exact fix for the application_top.php file but it won't help with the custom page error. I also expect that additional errors will present themselves as the two initial errors are corrected.

 

 

 

Chris

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...