TraceWatch Website Statistics

Google Web TraceWatch.com

Error while adding User Agents

Anything About TraceWatch

Error while adding User Agents

Postby maxotek » Sun Mar 21, 2010 1:59 pm

I receive an error while trying to add or edit User Agents.

you have an error in your pattern
File: /twatch/lib/Entity.php Line: 1365
Unknown modifier '/'
debug url: rec/rec_user_agents.php?a=change&i=1167&n=OOZBOT&p=%2FOOZBOT%5C%2F%2Fi
TwatchPatternedObject::getParamsData( [unknown] )
TwatchUserAgent::fromParams( [unknown], false )


This one turns up when I click on Apply (even without making any changes) on an existing User Agent which has a valid Regex pattern.
maxotek
 
Posts: 2
Joined: Sun Mar 21, 2010 1:50 pm

Re: Error while adding User Agents

Postby arash » Thu Mar 25, 2010 10:03 am

What version of TraceWatch are you using? using the latest version (0.332) I don't get the error message you are getting even when going directly to your debug url I get "nothing to change" message not an error. hopefully if you upgrade to latest version the error message will go away.
arash
Site Admin
Site Admin
 
Posts: 385
Joined: Thu Oct 08, 2009 2:09 pm

Re: Error while adding User Agents

Postby jeffw » Sun May 02, 2010 10:50 am

The same thing is happening to me, using 0.332 freshly installed for someone a couple of days ago. First happened when I tried to enter the simple pattern /spbot\//i then afterwards (because I was now puzzled) I clicked Apply on some existing patterns without making any changes and got the same error. For example:

you have an error in your pattern
File: /***/lib/Entity.php Line: 1365
Unknown modifier '/'
debug url: rec/rec_user_agents.php?a=change&i=1166&n=Butterfly&p=%2FButterfly%5C%2F%2Fi


It's the same for anything that has a \//i or \// at the end of the pattern.

The server is running PHP 5.2.9 and MySQL 4.1.22-standard.
Last edited by jeffw on Sat May 15, 2010 12:01 pm, edited 1 time in total.
jeffw
 
Posts: 60
Joined: Wed Dec 16, 2009 2:15 pm

Re: Error while adding User Agents

Postby maxotek » Sat May 15, 2010 3:58 am

I am using version 0.332.

you have an error in your pattern
File: /***/twatch/lib/Entity.php Line: 1365
Unknown modifier '|'
debug url: rec/rec_user_agents.php?a=change&i=7&n=Konqueror&p=%2F%5E(%3F%3AKonqueror%5C%2F%7CMozilla%5C%2F.%2B%5C(.%2BKonqueror.%2B%5C))%2Fi
TwatchPatternedObject::getParamsData( [unknown] )
TwatchUserAgent::fromParams( [unknown], false )


I get this error when trying "Apply Changes" to the in built Konqueror User-Agent, (again without any change to the existing pattern).

What is the full Debug URL?
maxotek
 
Posts: 2
Joined: Sun Mar 21, 2010 1:50 pm

Re: Error while adding User Agents

Postby jeffw » Fri May 28, 2010 11:41 am

I'm still struggling with this. It's not recognising the regex characters properly. It's driving me round the bend :)
jeffw
 
Posts: 60
Joined: Wed Dec 16, 2009 2:15 pm

Adding Search Engines problem

Postby Mathieu » Thu Jun 03, 2010 9:10 pm

Hello,

When i try to add a Search Engines i receive this error each time:

you have an error in your pattern
File: /home/XXXXXXXXXX/public_html/twatch/lib/Entity.php Line: 1365
Unknown modifier '\'
debug url: rec/rec_search_engines.php?a=add&n=biba&p=%2F%5Ehttp%5C%3A%5C%2F%5C%2F.%2B%5C.biba%5C.com%5C%2F.%2B%5C%3F.*(%3F%3C%3D%26%7C%5C%3F)q%3D(%3FP%3Ckeyword%3E%5B%5E%26%5D%2B)%2Fi
TwatchPatternedObject::getParamsData( [unknown] )
TwatchSearchEngine::fromParams( [unknown], true )

For the test i used the same informations that for the bing search engine and only changed the name by biba :

/^http\:\/\/.+\.biba\.com\/.+\?.*(?<=&|\?)q=(?P<keyword>[^&]+)/i

Where is the error ? Or is a bug...

Mathieu

I use TraceWatch 0.332 on firefox 3.63 on, IE 8.0.6001.18904
Last edited by Mathieu on Tue Jun 08, 2010 2:44 pm, edited 1 time in total.
Mathieu
 
Posts: 4
Joined: Thu Jun 03, 2010 9:06 pm

Re: Error while adding User Agents

Postby arash » Sun Jun 06, 2010 8:57 am

This is odd, I can't recreate that error message on any of my own twatch installations, maybe it's a browser/javascript problem. What browser and which version are you using?
arash
Site Admin
Site Admin
 
Posts: 385
Joined: Thu Oct 08, 2009 2:09 pm

Re: Error while adding User Agents

Postby jeffw » Sun Jun 06, 2010 10:01 am

For me it happens with both Safari 4.0.5 (6531.22.7) and Firefox 3.6.3 with Mac OS X 10.6.3.
jeffw
 
Posts: 60
Joined: Wed Dec 16, 2009 2:15 pm

Re: Error while adding User Agents

Postby jeffw » Tue Jun 08, 2010 12:04 pm

It also happens with Opera 10.53, iCab 4.7.0, and the new Safari 5.0 (6533.16).

I don't know if this will help:

If I enter the pattern /^plop\//i it complains Unknown modifier '/'.

If I enter the pattern /^plop\/i it is happy and adds that user agent, but the actual pattern it enters is /^plop\\/i (note the extra backslash added by TraceWatch) and it matches the user agent string plop\.

If I enter the pattern /^plop.com/i it is happy, adds that user agent and matches the user agent string plop.com.

If I enter the pattern /^plop\.com/i it is happy, adds that user agent and matches the user agent string plop\com but not the user agent string plop.com.
jeffw
 
Posts: 60
Joined: Wed Dec 16, 2009 2:15 pm

Re: Error while adding User Agents

Postby Mathieu » Tue Jun 08, 2010 2:46 pm

arash wrote:This is odd, I can't recreate that error message on any of my own twatch installations, maybe it's a browser/javascript problem. What browser and which version are you using?


I use TraceWatch 0.332 on firefox 3.63 on, IE 8.0.6001.18904
Mathieu
 
Posts: 4
Joined: Thu Jun 03, 2010 9:06 pm

Next

Return to General Talk

cron