lennerd / VipxBotDetectBundle

This bundle adds a detector service to Symfony for detecting different crawlers and spiders.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some preg_match errors

smilesrg opened this issue · comments

I'm getting such errors in the log:

[2016-02-11 21:45:53] user_agents.DEBUG: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0 (FlipboardProxy/1.1; +http://flipboard.com/browserproxy)' [] []
[2016-02-11 21:45:53] user_agents.DEBUG: '52.21.123.187' [] []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: missing ) at offset 10 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: nothing to repeat at offset 0 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: missing ) at offset 24 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: unmatched parentheses at offset 6 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: nothing to repeat at offset 0 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: nothing to repeat at offset 0 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []
[2016-02-11 21:45:53] scream.WARNING: preg_match(): Compilation failed: missing ) at offset 17 {"type":2,"file":"/home/sergii.smirnov/public_html/trim/vendor/vipx/bot-detect/Vipx/BotDetect/Metadata/Metadata.php","line":117,"scream":0} []

Looks like one of our RegExp has an invalid format. Do you can find out which RegExp is used in this case?

Any progress with this?