Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Coola's avatar
Level 1

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

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.

0 likes
0 replies

Please or to participate in this conversation.