Log Entries not understandable

Request URL: /entwicklung/garten-der-vielfalt-eroeffnet
Client IP: 66.249.66.196
2024-08-05 20:42:41 error: [Cake\Http\Exception\MissingControllerException] Controller class LeuteImProjekt could not be found. in /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php on line 338
Stack Trace:

  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php:75
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/BaseApplication.php:320
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:86
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php:166
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:82
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php:157
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:82
  • /var/www/web489/html/latotal/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php:124
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:82
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php:189
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:82
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php:68
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:82
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php:149
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:82
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Runner.php:67
  • /var/www/web489/html/latotal/vendor/cakephp/cakephp/src/Http/Server.php:99
  • /var/www/web489/html/latotal/webroot/index.php:40
  • [main]:

There are a lot of entries like the above on the protuction server error log.
But all URL are not part of this implementation. Some look as coming out of a joomla system, which was active since one month ago. On this subdomain I inserted a emty html-file. How can this happen?

Those are “normal” error log entries which happen if an unknown / not mapped URL is accessed.

In your example though, it seems that somewhere in your app you have mapped /entwicklung/garten-der-vielfalt-eroeffnet to the LeuteImProjektController.

If you don’t care about these kind of 404 errors in your error.log you can disable this via adding the following config to your config/app_local.php

    'Error' => [
        'skipLog' => [
            \Cake\Datasource\Exception\InvalidPrimaryKeyException::class,
            \Cake\Datasource\Exception\RecordNotFoundException::class,
            \Cake\Http\Exception\NotFoundException::class,
            \Cake\Routing\Exception\MissingRouteException::class,
            \Cake\Http\Exception\MissingControllerException::class,
        ],
    ],

as you can see you can adjust which exceptions should not be logged. In your case you only need the MissingControllerException, but there are probably other exceptions you don’t care about.

1 Like