Post by Ozfarmer » Tue Sep 20, 2011 3:44 pm

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?

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by uksitebuilder » Tue Sep 20, 2011 5:22 pm

No, it is a problem with what ever mod you have installed.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Ozfarmer » Wed Sep 21, 2011 8:40 am

Hi UK thanks for that, I have a lot of Mods :) so I guess it would be very hard to isolate that then?

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by Xsecrets » Wed Sep 21, 2011 8:49 am

Ozfarmer wrote:Hi UK thanks for that, I have a lot of Mods :) so I guess it would be very hard to isolate that then?
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.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by uksitebuilder » Wed Sep 21, 2011 4:20 pm

dont forget to clear your vqmod/vqcache too

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Qphoria » Wed Sep 21, 2011 7:03 pm

uksitebuilder wrote:dont forget to clear your vqmod/vqcache too
if the xml file is removed, it will regenerate it without the mods anyway so it won't matter.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by uksitebuilder » Wed Sep 21, 2011 8:31 pm

Is that the same if use cache is set to true?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Qphoria » Wed Sep 21, 2011 9:17 pm

uksitebuilder wrote:Is that the same if use cache is set to true?
In vQmod 1.x useCache requires the xml file to exist for it to use the cached version.. I assume 2.0 does this as well. If the xml file is removed... it won't even look for the cache file

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Maansy » Wed Sep 21, 2011 9:49 pm

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:

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";
									}
									}
any idea?

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by uksitebuilder » Wed Sep 21, 2011 9:58 pm

where is the $user_os value coming from ?

Is it empty or undefined therefore causing the error ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Maansy » Wed Sep 21, 2011 10:07 pm

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


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by Ozfarmer » Fri Sep 23, 2011 10:08 am

Thanks all, I will try that when I get a few spare hours.

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by Ozfarmer » Sat Sep 24, 2011 1:15 pm

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 O0

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by JAY6390 » Tue Sep 27, 2011 10:43 pm

whoevers mod it is, the fix is pretty simple. you just need to change line 139 to

Code: Select all

                              if (preg_match('/' . preg_quote($match, '/') . '/i', $user_os)) { 
which will avoid the issue

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Maansy » Wed Sep 28, 2011 4:54 am

JAY6390 wrote:whoevers mod it is, the fix is pretty simple. you just need to change line 139 to

Code: Select all

                              if (preg_match('/' . preg_quote($match, '/') . '/i', $user_os)) { 
which will avoid the issue
I'll try and report back in a day. Thank you jay

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by Ozfarmer » Wed Sep 28, 2011 4:51 pm

Hey, Jade Thanks Man! That seems to have solved my issue to. I know FA about Vqmod but should that that line be changed permanently?

Paul

Active Member

Posts

Joined
Wed Aug 17, 2011 7:08 pm
Location - Australia

Post by JAY6390 » Wed Sep 28, 2011 5:06 pm

yes it should be changed by the developer really so all releases have the preg quote in it

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Maansy » Fri Sep 30, 2011 3:27 am

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
Any idea?

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am


Post by JAY6390 » Fri Sep 30, 2011 3:29 am

That was a bug in 2.0.0
Try 2.1.0 and let me know if you still get the same problem

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by Maansy » Fri Sep 30, 2011 3:36 am

Thanks jay, will do that.
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


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am

Who is online

Users browsing this forum: No registered users and 7 guests