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();
Related
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');
I am sorry to bother everyone today with this. I have inherited a Laravel based website and came across an issue this morning. The public facing front end seems to be fine. But when I go into the admin backend I am getting an error 500. I am not so efficient with Composer and Artisan so I don't want to do to much without some guidance. I don't know what information you will need from me. I am running Laravel 5.2 on Ubunto 16.04.
I tried generating a new key and clearing caches. The staging site that is setup seems to be running fine. It is just out of date since we are updating the data weekly.
I have checked the logs. The latest entry is:
ErrorException:
The MAC is invalid.
(View: /var/www/d3multisport.com/resources/views/layouts/admin.blade.php)
(View: /var/www/d3multisport.com/resources/views/layouts/admin.blade.php) in /var/www/d3multisport.com/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php:48
Stack trace: #0 /var/www/d3multisport.com/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php(44): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
...
#72 /var/www/d3multisport.com/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
If anyone can help it would be greatly appreciated.
Kevin
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!
having some issues trying to upgrade to Laravel 5.2 from the previous latest version.
On composer update or any artisan class I get the follow error ...
Class validator does not exist
Can not work out whats going on at all.
Any ideas?
Many thanks!
Turns out Whoops was catching a HttpResponseException of which the upgrade docs do say could cause issues. So removed Whoops as problem solved.
Getting this error when clicking the edit button for a record in phpmyadmin
Method Not Implemented
GET to /_pma/tbl_change.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Could this be a problem with "mod_security" and if so, what is "mod_security" and how could we fix it?
If not, what could be causing this problem?
Thanks!
Try installing the newest version of phpMyAdmin on your server. If you are running it via XAMPP, also download the newest version of it. I had the same problem and that solved it for me.