Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Illegal string offset 'regex' #6

Closed
henriqueoliveira opened this issue May 18, 2014 · 2 comments
Closed

Error: Illegal string offset 'regex' #6

henriqueoliveira opened this issue May 18, 2014 · 2 comments

Comments

@henriqueoliveira
Copy link

Hi, i just downloaded from Packagist using composer, and when i run the Parse method
like this:

    $deviceDetector = new DeviceDetector($_SERVER['HTTP_USER_AGENT']);
    $deviceDetector->discardBotInformation();
    $deviceDetector->parse();

I get this error, i will disable warning to get it going, but on my dev environment i consider even the warnings.

ErrorException [ Warning ]: Illegal string offset 'regex'
/vagrant/vendor/piwik/device-detector/Parser/OperatingSystem.php [ 149 ]

My HTTP_USER_AGENT is "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.137 Safari/537.36"

Thanks for sharing this library, i hope to get it working

@sgiehl
Copy link
Member

sgiehl commented May 19, 2014

Did you use dev-master or the latest release within composer? Latest stable is a bit outdatet. I will publish an new version within the next few days.

@sgiehl sgiehl closed this as completed in 619aa17 May 23, 2014
@sgiehl
Copy link
Member

sgiehl commented May 23, 2014

There was a problem loading the yml files when using composer. Please reopen if that problem still exsits for you.

sgiehl pushed a commit that referenced this issue May 31, 2015
sgiehl pushed a commit that referenced this issue Aug 31, 2016
…ection

Fixes #5. Added support of B-Line and Isivioo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants