Hi Guys I am getting an error
2011-09-20 6:41:30 - PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier '2' in /store/vqmod/vqcache/vq-catalog_controller_common_header.php on line 135
Line 134 - 136 reads: $state1 = $objDOM->getElementsByTagName("regionName");
$state = strtolower($state1->item(0)->nodeValue);
$state = ucwords($state);
Is this a Vqmod Error?
2011-09-20 6:41:30 - PHP Warning: preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier '2' in /store/vqmod/vqcache/vq-catalog_controller_common_header.php on line 135
Line 134 - 136 reads: $state1 = $objDOM->getElementsByTagName("regionName");
$state = strtolower($state1->item(0)->nodeValue);
$state = ucwords($state);
Is this a Vqmod Error?
not so hard just rename then all with a _ at the end like mod.xml_ then reload the page rename the back one at a time till the error shows up and you'll know which one it is.Ozfarmer wrote:Hi UK thanks for that, I have a lot of Modsso I guess it would be very hard to isolate that then?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I am having almost the same issue.
preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier '2' in /home/xxxxx/public_html/opencartstuff.com/vqmod/vqcache/vq-catalog_controller_common_header.php on line 139
this is line 139 in vq-catalog_controller_common_header.php:
any idea?
preg_match() [<a href='function.preg-match'>function.preg-match</a>]: Unknown modifier '2' in /home/xxxxx/public_html/opencartstuff.com/vqmod/vqcache/vq-catalog_controller_common_header.php on line 139
this is line 139 in vq-catalog_controller_common_header.php:
Code: Select all
$user_os = strtolower($http_user_agent);
foreach($osList as $os=>$match) {
if (preg_match('/' . $match . '/i', $user_os)) { // line 139
break;
} else {
$os = "Not Detected";
}
}
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
where is the $user_os value coming from ?
Is it empty or undefined therefore causing the error ?
Is it empty or undefined therefore causing the error ?
I believe it's coming from the Who's online module but I am not sure
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
Thanks Simon and Qphoria, located the Vqmod error, was coming from the Visitor Tracking Vqmod, disabled that and all's good. Any chance I can push my luck and get some help with this? http://forum.opencart.com/viewtopic.php?f=20&t=41301 

whoevers mod it is, the fix is pretty simple. you just need to change line 139 to
which will avoid the issue
Code: Select all
if (preg_match('/' . preg_quote($match, '/') . '/i', $user_os)) {
I'll try and report back in a day. Thank you jayJAY6390 wrote:whoevers mod it is, the fix is pretty simple. you just need to change line 139 towhich will avoid the issueCode: Select all
if (preg_match('/' . preg_quote($match, '/') . '/i', $user_os)) {
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
Code: Select all
2011-09-29 7:05:22 - PHP Warning: require_once(/home/xxxx/public_html/opencartstuff.com/) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/xxxx/public_html/opencartstuff.com/vqmod/vqcache/vq2-system_engine_front.php on line 43
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
Thanks jay, will do that.
Do I just replace vqmod.php with the 2.1.0 one?
Do I just replace vqmod.php with the 2.1.0 one?
ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com
Who is online
Users browsing this forum: No registered users and 7 guests