Sunday, April 25, 2010

OS Commerce Instalation

OS Commerce Instalation
After installing OS Commerce in local system got the following error or message:

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

The line 87 : if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) {
88: $this->language = $this->catalog_languages[$key];
89: break 2;
}

Solutions:

edit in \includes\classes\language.php

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

No comments:

Post a Comment