sentry throw error on laravel 5.1 - laravel-5

I have use Laravel 5.1 with "jenssegers/raven": "^1.4"
When I run composer self-update on server then found error page isn’t working
Error log is:
PHP message: PHP Fatal error: Uncaught exception 'ErrorException' with message 'preg_match() expects parameter 2 to be string, object given' in /var/www/html/www.something.com/vendor/sentry/sentry/lib/Raven/SanitizeDataProcessor.php:54
Kindly help me, how to resolve this issue. I appreciate all response.

It looks like you're using an unofficial version of Sentry's old raven client.
You should upgrade to the latest Sentry Laravel client, as we're moving off raven. If you continue to have problems, email us!

Related

Laravel unable to get HTTP_X_SHOPIFY_HMAC_SHA256 header from shopify

I've been following the documentation for the webhook verification to get our app verified and keep getting error saying Undefined index: HTTP_X_SHOPIFY_HMAC_SHA256
Tried getting it using laravel builtin function $request->header('HTTP_X_SHOPIFY_HMAC_SHA256') and also $_SERVER['HTTP_X_SHOPIFY_HMAC_SHA256'] but both are still returning the same error.
Can anyone point me to a solution to this, been stuck with this problem for a week now.
Thanks

ErrorException - Trying to access array offset on value of type null in ServiceProvider.php line 84 in Lumen

I am new to Lumen so I just downloaded and installed a fresh lumen setup but unfortunately as soon as I hit postman it sends me above error. I have read many posts all says to use isset() i did so but still error persists therefore i request to help me.
Composer update also does not work.
Thanks!
It seems to be an issue between your version of PHP and Lumen 5.*
I found something here https://github.com/DarkaOnLine/SwaggerLume/issues/82
This worked for me
// in bootstrap/app.php
$app->configure('view');

Laravel upgrade 5.5 Error "Method getPath does not exist."

I have upgraded Laravel from 5.2 to 5.5. All seems ok except one error Method getPath does not exist.. I can't see any trace hence unable to figure out why and where it is throwing this error. This is not coming everytime but sometimes.
Any help will be appreciated.
Change
Route::getCurrentRoute()->getRoute();
To
Route::getCurrentRoute()->uri();

500 internal server error in Laravel 5.2

I have created a new Laravel project. But when I run the command php artisan serve in the browser I am getting an 500 internal server error with no error log from Laravel even if debug mode is set to true. Please suggest.
Found similar issue on laracasts:-
[SOLVED] [L5] New: Can't display errors, 500 internal server error
It's been fixed by enabling write permission to storage folder.
Hope this helps.

Laravel 5.2 view in register a provider

i have installed the chat package:
https://github.com/dazzz1er/confer
Unfortunately i get an error when i try to publish it. Here is the error:
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Support\Facades\View::composer()
Thanks !
As correctly pointed out by #curious_coder confer is not compatible with Laravel 5.2 yet. Please keep an on the open Laravel 5.2 issue on Github and/or ask the author of this package for updates.

Resources