Coola
2 months ago
195
0
Servers

Laravel GCloud App Engine Standard PHP Notice: Symfony\Component\HttpKernel\Exception\NotFoundHttpException in /srv/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteColl

Posted 2 months ago by Coola

I thought I would share something which I noticed and I think this is the best place to post it as it is a problem and a solution. I may myself refer to this in the future but it might help others.

The issue I faced was when I deployed my Laravel project (v7) to Google App Engine (GAE) Standard (php v7.3), the website would show everything fine, but the there would be the following error which shows up in the Cloud console:

PHP Notice: Symfony\Component\HttpKernel\Exception\NotFoundHttpException in /srv/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:43

It turns out the issue was because of favicon. I added the following to my handlers in the app.yaml file to fix it:

handlers: 
- url: /favicon\.ico
  static_files: public/favicon.ico
  upload: public/favicon\.ico

If anyone sees such error maybe this will help them.

Please sign in or create an account to participate in this conversation.