-
Notifications
You must be signed in to change notification settings - Fork 595
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
UAParser\Parser::parse() must be of the type string, null given #490
Comments
I get the same error |
I thing There is an issue in the package that needs fixing to be able to work. The error occur when "composer dump-autoload" run. so I edited the pragmarx\tracker\src\Support\UserAgentParser.php and edit the construct method. here my code
after that i run "composer dump-autoload" my self |
I change my code into this
if (!$userAgent) {
|
So did this happen by a recent update? Cause editing vendor files can't really be more then a temp fix imo 😅 |
I faced this issue while configuration caching. Thanks @dikutandi |
I am still facing the same issue. I have the latest update but the error persists after running |
Same issue. Just had the package installed on Laravel version 6.0. |
same here. laravel 7 |
|
Describe the bug
Whenever I try to do anything, including starting the server locally, I get:
In Parser.php line 35:
Argument 1 passed to UAParser\Parser::parse() must be of the type string, null given, called in D
:\Projects*****\vendor\pragmarx\tracker\src\Support\UserAgentParser.php on line 25
Removing the package, obviously, removes the error. But nothing else I have done (reinstall, clear cache, add package to non-discover, etc) has worked.
This literally started overnight with no configuration changes or packages updated, so I'm at a loss as to what to do. Any help would be greatly appreciated.
System
The text was updated successfully, but these errors were encountered: