Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in language.php


slw250@yahoo.com

Recommended Posts

I am getting an error message

 

Function eregi() is = deprecated in = /home/alh247/public_html/alh247admin/includes/classes/language.php on = line 87

 

this error message cause error_log file increase every day. I just clean 5.7 GB error log. Is there anybody can help me to resolve it.

 

Thanks

Link to comment
Share on other sites

Is that the only error, or just a representative one? If it's the only error, did you overlook this line when converting an older version of osC? The osC 2.3.3 version of the line is

if (preg_match('/^(' . $value . ')(;q=[0-9]\\.[0-9])?$/i', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {

1. eregi becomes preg_match

2. add delimiters around regular expression / / in this case

3. add 'i' flag after second delimiter

 

On the other hand, if it's just one of many such errors, you've got a lot of work ahead of you to convert all the deprecated PHP functions. It might be easier to drop your old 2.2-based store and install a copy of 2.3.3.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...