Page 1 of 1

Vqmod error

Posted: Tue Sep 09, 2014 4:02 am
by minorcustomcrafts
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

Re: Vqmod error

Posted: Tue Sep 09, 2014 8:29 am
by IP_CAM

Re: Vqmod error

Posted: Tue Sep 09, 2014 10:19 am
by minorcustomcrafts
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.