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

Apache Error 500 in case of Detected browser engine was not found in $availableEngines #8289

Closed
anchalaggarwal opened this issue Jul 8, 2015 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anchalaggarwal
Copy link

Hi,
Recently I have been getting error 502 while importing logs in piwik using log-import.
In apache error logs, only thing written was "Detected browser engine was not found in $availableEngines".
On further debug, I found the same is an exception thrown in the below code file
vendor/piwik/device-detector/Parser/Client/Browser/Engine.php
On logging the engine received by Engine.php, it came out to be Edge which is missing in the array $availableEngines. protected static $availableEngines = array( 'WebKit', 'Blink', 'Trident', 'Text-based', 'Dillo', 'iCab', 'Presto', 'Gecko', 'KHTML', 'NetFront', );
Adding 'Edge' to the array has resolved the issue.
This looks like a bug since in yaml and regex, Edge is defined.

@mattab
Copy link
Member

mattab commented Jul 9, 2015

Hi @anchalaggarwal

Do you know by any chance the log file line that can reproduce this bug? it would be great to be able to reproduce such problem so we could fix it. thanks for sending more info if possible.

ping @sgiehl

@sgiehl
Copy link
Member

sgiehl commented Jul 11, 2015

That's an error in device detector. I'll fix that.

@sgiehl
Copy link
Member

sgiehl commented Jul 11, 2015

fixed in matomo-org/device-detector@9847259

@sgiehl sgiehl closed this as completed Jul 11, 2015
@sgiehl sgiehl added the Bug For errors / faults / flaws / inconsistencies etc. label Jul 11, 2015
@mattab mattab added this to the 2.14.1 milestone Jul 12, 2015
@mattab
Copy link
Member

mattab commented Jul 12, 2015

Thanks @sgiehl 👍 could you update Device detector used in Piwik so we have the fix in 2.14.1?

@sgiehl
Copy link
Member

sgiehl commented Jul 12, 2015 via email

@mattab
Copy link
Member

mattab commented Jul 12, 2015 via email

@anchalaggarwal
Copy link
Author

Hi @mattab, thanks for accepting the bug and its solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants