Warning (2): file_put_contents(/home/www/darkplanet/tmp//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: file_put_contents(/home/www/darkplanet/tmp//logs/error.log) [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in /home/www/darkplanet/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Call Stack
#TimeMemoryFunctionLocation
10.0001396176{main}( ).../index.php:0
20.0021685024Cake\Http\Server->run( ).../index.php:40
30.0082897024Cake\Http\Runner->run( ).../Server.php:90
40.0082897024Cake\Http\Runner->handle( ).../Runner.php:58
50.0082897024Cake\Error\Middleware\ErrorHandlerMiddleware->process( ).../Runner.php:73
60.01131233104Cake\Error\Middleware\ErrorHandlerMiddleware->handleException( ).../ErrorHandlerMiddleware.php:125
70.12053294408Cake\Error\ErrorHandler->logException( ).../ErrorHandlerMiddleware.php:143
80.12083296392Cake\Error\ErrorLogger->log( ).../BaseErrorHandler.php:338
90.12103297928Cake\Log\Log::error( ).../ErrorLogger.php:91
100.12103297928Cake\Log\Log::write( ).../Log.php:459
110.12153307352Cake\Log\Engine\FileLog->log( ).../Log.php:390
120.12163308984file_put_contents ( ).../FileLog.php:131
130.12163310944Cake\Error\ErrorHandler->handleError( ).../FileLog.php:131
140.13253313488Cake\Error\ErrorHandler->_logError( ).../BaseErrorHandler.php:188
150.13363315872Cake\Error\ErrorLogger->logMessage( ).../BaseErrorHandler.php:322
160.13363317408Cake\Log\Log::write( ).../ErrorLogger.php:69
170.13363318160Cake\Log\Engine\FileLog->log( ).../Log.php:390
180.13373319776file_put_contents ( ).../FileLog.php:131
Warning (512): Unable to emit headers. Headers sent in file=/home/www/darkplanet/vendor/cakephp/cakephp/src/Error/Debugger.php line=954 [CORE/src/Http/ResponseEmitter.php, line 71]

( ! ) Warning: file_put_contents(/home/www/darkplanet/tmp//logs/error.log) [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in /home/www/darkplanet/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Call Stack
#TimeMemoryFunctionLocation
10.0001396176{main}( ).../index.php:0
20.13443307184Cake\Http\Server->emit( ).../index.php:40
30.13463308624Cake\Http\ResponseEmitter->emit( ).../Server.php:130
40.13463308928trigger_error ( ).../ResponseEmitter.php:71
50.13463310632Cake\Error\ErrorHandler->handleError( ).../ResponseEmitter.php:71
60.19883320688Cake\Error\ErrorHandler->_logError( ).../BaseErrorHandler.php:188
70.19923321704Cake\Error\ErrorLogger->logMessage( ).../BaseErrorHandler.php:322
80.19923322344Cake\Log\Log::write( ).../ErrorLogger.php:69
90.19933323096Cake\Log\Engine\FileLog->log( ).../Log.php:390
100.19933323816file_put_contents ( ).../FileLog.php:131
Warning (2): Cannot modify header information - headers already sent by (output started at /home/www/darkplanet/vendor/cakephp/cakephp/src/Error/Debugger.php:954) [CORE/src/Http/ResponseEmitter.php, line 168]

( ! ) Warning: file_put_contents(/home/www/darkplanet/tmp//logs/error.log) [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in /home/www/darkplanet/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Call Stack
#TimeMemoryFunctionLocation
10.0001396176{main}( ).../index.php:0
20.13443307184Cake\Http\Server->emit( ).../index.php:40
30.13463308624Cake\Http\ResponseEmitter->emit( ).../Server.php:130
40.19963318192Cake\Http\ResponseEmitter->emitStatusLine( ).../ResponseEmitter.php:74
50.19963318512header ( ).../ResponseEmitter.php:168
60.19963320216Cake\Error\ErrorHandler->handleError( ).../ResponseEmitter.php:168
70.30823321328Cake\Error\ErrorHandler->_logError( ).../BaseErrorHandler.php:188
80.30873322664Cake\Error\ErrorLogger->logMessage( ).../BaseErrorHandler.php:322
90.30873323432Cake\Log\Log::write( ).../ErrorLogger.php:69
100.30883324184Cake\Log\Engine\FileLog->log( ).../Log.php:390
110.30883325032file_put_contents ( ).../FileLog.php:131
Warning (2): Cannot modify header information - headers already sent by (output started at /home/www/darkplanet/vendor/cakephp/cakephp/src/Error/Debugger.php:954) [CORE/src/Http/ResponseEmitter.php, line 201]

( ! ) Warning: file_put_contents(/home/www/darkplanet/tmp//logs/error.log) [<a href='https://secure.php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in /home/www/darkplanet/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 131
Call Stack
#TimeMemoryFunctionLocation
10.0001396176{main}( ).../index.php:0
20.13443307184Cake\Http\Server->emit( ).../index.php:40
30.13463308624Cake\Http\ResponseEmitter->emit( ).../Server.php:130
40.30913318512Cake\Http\ResponseEmitter->emitHeaders( ).../ResponseEmitter.php:75
50.30913318888header ( ).../ResponseEmitter.php:201
60.30913320592Cake\Error\ErrorHandler->handleError( ).../ResponseEmitter.php:201
70.45103321384Cake\Error\ErrorHandler->_logError( ).../BaseErrorHandler.php:188
80.45143322720Cake\Error\ErrorLogger->logMessage( ).../BaseErrorHandler.php:322
90.45153323488Cake\Log\Log::write( ).../ErrorLogger.php:69
100.45153324240Cake\Log\Engine\FileLog->log( ).../Log.php:390
110.45153325088file_put_contents ( ).../FileLog.php:131
Error: Missing Controller

Missing Controller 📋

Cake\Http\Exception\MissingControllerException
Toggle Vendor Stack Frames

Error ImgController could not be found.

     * @return void
     */
    protected function missingController(ServerRequest $request): void
    {
        throw 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