I upgraded my php version in WSL to 7.4 and I am running an application built with laravel-5.5.
When I run php artisan
in the command line I got this error
In Client.php line 1551:
Undefined variable: version
There are many $version available where do I find this Client.php this error talking about?
There is no log record in the log about this.
Thanks
The Laravel HTTP client allows you to define "macros", which can serve as a fluent, expressive mechanism to configure common request paths and headers when interacting with services throughout your application.
For getting the IP Address we have to include use Illuminate\Http\Request; in the controller and then add the code of the below pre tag. It will give the IP address of the network. $clientIP = \Request::ip(); dd($clientIP);
PHP-HTTP is the next step in standardizing HTTP interaction for PHP packages. It builds on top of PSR-7, which defines interfaces for HTTP requests and responses. The HTTPlug HTTP client interface has been standardized in PSR-18 to define synchronous HTTP requests.
To get the MAC address, pass the parameter 'getmac' which returns the MAC address of the client. 'getmac' is a CMD command to get the MAC address. To get the MAC address, we use exec() function. $macAddr = exec('getmac');
To do solve this temporarily I did this
return $version ?? '0.0.0';
on
vendor\sentry\sentry\lib\Raven\Client.php:1551
and change $path{0}
to $path[0]
on vendor\sentry\sentry\lib\Raven\Client.php:331
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With