Post by minorcustomcrafts » Tue Sep 09, 2014 4:02 am

I am working on a shop for my brother. I have a clean install but I have an error in my error log and I am not understanding what I need to type to fix it.

I have disabled all extensions.

Open cart version 1.5.6.4
Vqmod version 2.2.1

Error:

PHP Unknown: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/nebraska/public_html/shop/vqmod/vqmod.php on line 313

Here is what is on that line:

$modFilePath = preg_replace('/([^*]+)/e', 'preg_quote("$1", "~")', $modFilePath);

Thank you for any assistance.
Trisha

Trisha
http://www.minorcustomcrafts.com



Posts

Joined
Tue Jan 01, 2013 9:17 am
Location - Lincoln, Nebraska

Post by IP_CAM » Tue Sep 09, 2014 8:29 am


My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by minorcustomcrafts » Tue Sep 09, 2014 10:19 am

Thank you so much. I just went ahead and replaced the above code with:

$modFilePath = preg_replace_callback('/([^*]+)/', function ($m) { return preg_quote($m[1], "~"); }, $modFilePath);

And it worked. I had done a search on the error and could not find it. Thanks again. I really appreciate it.

Trisha
http://www.minorcustomcrafts.com



Posts

Joined
Tue Jan 01, 2013 9:17 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 1 guest