Search

Thanks,
But unfortunately it did not help
I now get about the same error straight away (every useragent);

Unknown modifier '('

Aha, yep, it would...

Can you paste your user-agent string here? Somehow, your ua string is terminating the regex early...

Ignore that.

Line 58: 'SearchBot'=>'(nuhk)|(googlebot)|(yammybot)|(openbot)|(slurp)|(msnbot)|(ask jeeves/teoma)|(ia_archiver)' needs changing to 'SearchBot'=>'(nuhk)|(googlebot)|(yammybot)|(openbot)|(slurp)|(msnbot)|(ask jeeves\/teoma)|(ia_archiver)'

Notice the escaped slash after ask jeeves. Basically your useragent string isn't in the list, and the last line is ending the regex early and faulting.

Yep... that's it! working now, thank you very much!
I will report this bug on github...

Cool.

Sorry I fixed that ages ago but forgot to push a minor release as I started doing upgrades for a major release. I will push those amends today.

Useragent Details updated to version 1.1.2 on 19th of January 2012

Changelog

  • regex issue causing failure in class.os.php. Sorry it took so long!

Useragent Details updated to version 1.2 on 12th of June 2012

Changelog

  • compatible with Sym2.3
  • add lat/long/country values to param pool
  • added more operating systems to the list

does ipad get seen as mobile = yes or no ? I dont have one to test on.

Try a User Agent Switcher in your browser of choice, or check the code :-)

@jeffleeder, if you need to know when the visitor is using a tablet you could use Device Categorizr in addition to/instead of Useragent Details.

Hi, someone can help me to get this extension working on last symphony? Thanks

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details