Warning: file_put_contents(/var/www/html/citydiscovery/app/logs/error.log): Failed to open stream: Permission denied in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 137
Warning (2) : file_put_contents(/var/www/html/citydiscovery/app/logs/error.log): Failed to open stream: Permission denied [in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 137]

Warning: file_put_contents(/var/www/html/citydiscovery/app/logs/error.log): Failed to open stream: Permission denied in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 137
Warning (2) : file_put_contents(/var/www/html/citydiscovery/app/logs/error.log): Failed to open stream: Permission denied [in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 137]

Warning: file_put_contents(/var/www/html/citydiscovery/app/logs/error.log) [function.file-put-contents]: Failed to open stream: Permission denied in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 137
Warning (512) : Unable to emit headers. Headers sent in file=/var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php line=37 [in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 65]

Warning: file_put_contents(/var/www/html/citydiscovery/app/logs/error.log) [function.file-put-contents]: Failed to open stream: Permission denied in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 137
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 159]

Warning: file_put_contents(/var/www/html/citydiscovery/app/logs/error.log) [function.file-put-contents]: Failed to open stream: Permission denied in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 137
Warning (2) : Cannot modify header information - headers already sent by (output started at /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Error/Renderer/HtmlErrorRenderer.php:37) [in /var/www/html/citydiscovery/app/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 192]
Error: Missing Controller

Missing Controller 📋

Cake\Http\Exception\MissingControllerException

Error EventsController could not be found.

In the case you tried to access a plugin controller make sure you added it to your composer file or you use the autoload option for the plugin.

Suggestion Create the class EventsController below in file: src/Controller/EventsController.php

    <?php
    
namespace App\Controller;

    use 
App\Controller\AppController;

    class 
EventsController extends AppController
    
{

    }
CORE/src/Controller/ControllerFactory.php at line 335 (edit)
     * @return \Cake\Http\Exception\MissingControllerException
     */
    protected function missingController(ServerRequest $request): MissingControllerException
    {
        return new MissingControllerException([
            'controller' => $request->getParam('controller'),
            'plugin' => $request->getParam('plugin'),
            'prefix' => $request->getParam('prefix'),
            '_ext' => $request->getParam('_ext'),

If you want to customize this error message, create templates/Error/missing_controller.php