bhanu2217 Posted October 4, 2010 Posted October 4, 2010 I am using wamp server on windows 7 I am getting following error Deprecated: Function eregi() is deprecated when i open the catalog Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Warning: I am able to write to the configuration file: C:/wamp/www/jewels/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. I checked the file, it has read and write permission Version: osCommerce Online Merchant v2.2 Release Candidate 2a Php: 5.3.0 mySQL: 5.1.36
germ Posted October 4, 2010 Posted October 4, 2010 Use Windowz explorer to make the config file "read only". That solves that problem. If you search the forum there are many posts about how to fix the deprecated function error. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
bhanu2217 Posted October 4, 2010 Author Posted October 4, 2010 Use Windowz explorer to make the config file "read only". That solves that problem. If you search the forum there are many posts about how to fix the deprecated function error. If i do this. This error gets resolved Warning: I am able to write to the configuration file: C:/wamp/www/jewels/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file but i am still getting following errors Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87 Deprecated: Function eregi() is deprecated in C:\wamp\www\jewels\catalog\includes\classes\language.php on line 87
Guest Posted October 4, 2010 Posted October 4, 2010 That is what he said. If you put : deprecated function in the search box and hit enter you will find a lot of info. There is also a contribution for this that takes care of most "deprecated errors" , just use the search box
Guest Posted October 6, 2010 Posted October 6, 2010 Hi The contri that solves this is called : osCommerce_RC2a_PHP_5.3 If you type this in search it will pop up. Rob
bhanu2217 Posted October 7, 2010 Author Posted October 7, 2010 I can't really seem to find what is the best solution for this problem. I am ASP.NET developer trying out PHP for change. How do i get rid of deprecated errors? I also tried alpha 3 release if in that i get deprecated errors If you can post some link it will be gr8. Thanks
web-project Posted October 7, 2010 Posted October 7, 2010 simply read the following topic: http://www.oscommerce.com/forums/topic/341737-function-ereg-replace-is-deprecated/ so many times this issue has been discussed. Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here! 8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself. Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues. Any issues with oscommerce, I am here to help you.
bhanu2217 Posted October 8, 2010 Author Posted October 8, 2010 I am still stuck up. I opened the file language.php and went to line 87 where it gives the error if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) { i replaced eregi with preg_match then i started getting these warnings. Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87 Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\wamp\www\osc\includes\classes\language.php on line 87
MrPhil Posted October 8, 2010 Posted October 8, 2010 Trim the damned list down to one entry and tell us (if necessary) that it repeated N times, rather than listing the whole thing! Your error is that you screwed up the edit on line 87. preg_match's first argument needs delimiters around the pattern, such as /. You didn't add them. If this is the original line: if (eregi('^(' . $value . ')(;q=[0-9]\\.[0-9])?$', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) { it needs to be changed to if (preg_match('/^(' . $value . ')(;q=[0-9]\\.[0-9])?$/i', $this->browser_languages[$i]) && isset($this->catalog_languages[$key])) { This assumes that the $value string doesn't contain any slashes / itself. If it does, choose another delimiter such as # or ! that will not appear in the pattern.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.