Warning (2): file_put_contents(/var/www/nihonbuyo_association_hp/logs/error.log): failed to open stream: Permission denied [CORE/src/Log/Engine/FileLog.php, line 131]

Warning: file_put_contents(/var/www/nihonbuyo_association_hp/logs/error.log) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Warning (2): file_put_contents(/var/www/nihonbuyo_association_hp/logs/error.log) [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied [CORE/src/Log/Engine/FileLog.php, line 131]
Warning (512): Unable to emit headers. Headers sent in file=/var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Error/Debugger.php line=970 [CORE/src/Http/ResponseEmitter.php, line 71]

Warning: file_put_contents(/var/www/nihonbuyo_association_hp/logs/error.log) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 168]

Warning: file_put_contents(/var/www/nihonbuyo_association_hp/logs/error.log) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Error/Debugger.php:970) [CORE/src/Http/ResponseEmitter.php, line 197]

Warning: file_put_contents(/var/www/nihonbuyo_association_hp/logs/error.log) [function.file-put-contents]: failed to open stream: Permission denied in /var/www/nihonbuyo_association_hp/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Error: Missing Controller

Missing Controller 📋

Cake\Http\Exception\MissingControllerException
Toggle Vendor Stack Frames

Error ImgController could not be found.

     * @return \Cake\Http\Exception\MissingControllerException
     */
    protected function missingController(ServerRequest $request)
    {
        return new MissingControllerException([
            'class' => $request->getParam('controller'),
            'plugin' => $request->getParam('plugin'),
            'prefix' => $request->getParam('prefix'),
            '_ext' => $request->getParam('_ext'),

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 ImgController below in file: src/Controller/ImgController.php

    <?php
    
namespace App\Controller;

    use 
App\Controller\AppController;

    class 
ImgController extends AppController
    
{

    }

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