Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Depracation Problem in Language.php


Imagepaper

Recommended Posts

Posted

Good Afternoon Everyone,

 

I am attempting to connect to my catalog, and I am receiving the following error:

 

Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\public\catalog\includes\classes\language.php on line 87

 

This has happened over and over, and I have already attempted to remove the deprecated file from the php file, to no success.

 

There were other errors I have taken care of, but this one still persists.

 

Please advise! All help is greatly appreciated!

 

Thanks,

Danny

Imagepaper

Posted

Good Afternoon Everyone,

 

I am attempting to connect to my catalog, and I am receiving the following error:

 

Deprecated: Function eregi() is deprecated in C:\xampp\htdocs\public\catalog\includes\classes\language.php on line 87

 

This has happened over and over, and I have already attempted to remove the deprecated file from the php file, to no success.

 

There were other errors I have taken care of, but this one still persists.

 

Please advise! All help is greatly appreciated!

 

Thanks,

Danny

Imagepaper

 

the function eregi needs replacing, search google on osc forum ereg and you will find the souktions to this problem.

Getting better with mods but no programmer am I.

Posted

the function eregi needs replacing, search google on osc forum ereg and you will find the souktions to this problem.

 

Thanks for the help, still in a jam though.

 

I attempted to replace it with preg_match.

 

See below:

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

 

Comes back with the following Error:

 

Parse error: syntax error, unexpected '(' in C:\xampp\htdocs\public\catalog\includes\classes\language.php on line 87

 

Please advise.

 

I apologize, as I am not experianced in this field.

 

Therefore, I truly appreciate all your help!

 

Thanks again,

Danny

Posted

You have an werror in the line you have entered,

 

go back to forum and check that you have followed the instructions properly/ check that there was no later amendments to the thread saying the code was slighlty wrong and the code should actuall be..... The answers there keep looking.

Getting better with mods but no programmer am I.

Posted

You have an werror in the line you have entered,

 

go back to forum and check that you have followed the instructions properly/ check that there was no later amendments to the thread saying the code was slighlty wrong and the code should actuall be..... The answers there keep looking.

 

I found the syntax error.

 

Currently my line 87 reads as:

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

 

The error I receive now is:

Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\xampp\htdocs\public\catalog\includes\classes\language.php on line 87

 

I have searched the site, and most of the responses are in relation to preg_match are used in other php files, and seem to be relative to the instance they are used.

 

If you can please help me resolve this issue, I'd be extremely grateful.

 

I feel if I can get past this point, I will be golden.

 

Thanks,

Danny

Archived

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

×
×
  • Create New...