( ! ) Warning: file_put_contents(/var/www/dsw2-upgrade/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 /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php on line 142
Call Stack
#TimeMemoryFunctionLocation
10.0746725120Cake\Error\ExceptionTrap->handleException( $exception = class Error { protected $message = 'Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found'; private string $string = ''; protected $code = 0; protected string $file = '/var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php'; protected int $line = 17; private array $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...]]; private ?Throwable $previous = NULL } ).../ExceptionTrap.php:0
20.0746725120Cake\Error\ExceptionTrap->logException( $exception = class Error { protected $message = 'Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found'; private string $string = ''; protected $code = 0; protected string $file = '/var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php'; protected int $line = 17; private array $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...]]; private ?Throwable $previous = NULL }, $request = NULL ).../ExceptionTrap.php:239
30.0759750224Cake\Error\ErrorLogger->logException( $exception = class Error { protected $message = 'Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found'; private string $string = ''; protected $code = 0; protected string $file = '/var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php'; protected int $line = 17; private array $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...]]; private ?Throwable $previous = NULL }, $request = NULL, $includeTrace = TRUE ).../ExceptionTrap.php:367
40.0761753032Cake\Log\Log::error( $message = '[Error] Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found in /var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php on line 17\nStack Trace:\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:578\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:432\n- /var/www/dsw2-upgrade/src/Application.php:105\n- /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Http/Server.php:92\n- /var/www/dsw2-upgrade/webroot/index.php:40\n- [main]:\n', $context = ??? ).../ErrorLogger.php:99
50.0761753032Cake\Log\Log::write( $level = 'error', $message = '[Error] Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found in /var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php on line 17\nStack Trace:\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:578\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:432\n- /var/www/dsw2-upgrade/src/Application.php:105\n- /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Http/Server.php:92\n- /var/www/dsw2-upgrade/webroot/index.php:40\n- [main]:\n', $context = [] ).../Log.php:461
60.0826849992Cake\Log\Engine\FileLog->log( $level = 'error', $message = '[Error] Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found in /var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php on line 17\nStack Trace:\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:578\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:432\n- /var/www/dsw2-upgrade/src/Application.php:105\n- /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Http/Server.php:92\n- /var/www/dsw2-upgrade/webroot/index.php:40\n- [main]:\n', $context = ['scope' => []] ).../Log.php:392
70.0830851656file_put_contents( $filename = '/var/www/dsw2-upgrade/logs/error.log', $data = '2025-12-06 03:16:30 error: [Error] Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found in /var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php on line 17\nStack Trace:\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:578\n- /var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:432\n- /var/www/dsw2-upgrade/src/Application.php:105\n- /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Http/Server.php:92\n- /var/www/dsw2-upgrade/webroot/index.php:40\n- [main]:\n\n', $flags = 8 ).../FileLog.php:142
80.0830852024Cake\Error\ErrorTrap->handleError( $code = 2, $description = 'file_put_contents(/var/www/dsw2-upgrade/logs/error.log) [<a href=\'https://secure.php.net/function.file-put-contents\'>function.file-put-contents</a>]: Failed to open stream: Permission denied', $file = '/var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php', $line = 142 ).../FileLog.php:142
90.0847881208Cake\Error\ErrorTrap->logError( $error = class Cake\Error\PhpError { private $code = 2; private $message = 'file_put_contents(/var/www/dsw2-upgrade/logs/error.log) [<a href=\'https://secure.php.net/function.file-put-contents\'>function.file-put-contents</a>]: Failed to open stream: Permission denied'; private $file = '/var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php'; private $line = 142; private $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...]]; private $levelMap = [4 => 'error', 1 => 'error', 16 => 'error', 64 => 'error', 256 => 'error', 2 => 'warning', 512 => 'warning', 128 => 'warning', 4096 => 'warning', 8 => 'notice', 1024 => 'notice', 2048 => 'strict', 8192 => 'deprecated', 16384 => 'deprecated']; private $logMap = ['error' => 3, 'warning' => 4, 'notice' => 5, 'strict' => 5, 'deprecated' => 5] } ).../ErrorTrap.php:142
100.0848881680Cake\Error\ErrorLogger->logError( $error = class Cake\Error\PhpError { private $code = 2; private $message = 'file_put_contents(/var/www/dsw2-upgrade/logs/error.log) [<a href=\'https://secure.php.net/function.file-put-contents\'>function.file-put-contents</a>]: Failed to open stream: Permission denied'; private $file = '/var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php'; private $line = 142; private $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...], 5 => [...], 6 => [...], 7 => [...]]; private $levelMap = [4 => 'error', 1 => 'error', 16 => 'error', 64 => 'error', 256 => 'error', 2 => 'warning', 512 => 'warning', 128 => 'warning', 4096 => 'warning', 8 => 'notice', 1024 => 'notice', 2048 => 'strict', 8192 => 'deprecated', 16384 => 'deprecated']; private $logMap = ['error' => 3, 'warning' => 4, 'notice' => 5, 'strict' => 5, 'deprecated' => 5] }, $request = NULL, $includeTrace = TRUE ).../ErrorTrap.php:171
110.0848883080Cake\Log\Log::write( $level = 'warning', $message = 'file_put_contents(/var/www/dsw2-upgrade/logs/error.log) [<a href=\'https://secure.php.net/function.file-put-contents\'>function.file-put-contents</a>]: Failed to open stream: Permission denied\nTrace:\n/var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 142\nCake\\Log\\Engine\\FileLog->log() /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Log.php, line 392\nCake\\Log\\Log::write() /var/www/dsw2-upgrade/vendor/cakephp'..., $context = ??? ).../ErrorLogger.php:78
120.0848883672Cake\Log\Engine\FileLog->log( $level = 'warning', $message = 'file_put_contents(/var/www/dsw2-upgrade/logs/error.log) [<a href=\'https://secure.php.net/function.file-put-contents\'>function.file-put-contents</a>]: Failed to open stream: Permission denied\nTrace:\n/var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 142\nCake\\Log\\Engine\\FileLog->log() /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Log.php, line 392\nCake\\Log\\Log::write() /var/www/dsw2-upgrade/vendor/cakephp'..., $context = ['scope' => []] ).../Log.php:392
130.0849886808file_put_contents( $filename = '/var/www/dsw2-upgrade/logs/error.log', $data = '2025-12-06 03:16:30 warning: file_put_contents(/var/www/dsw2-upgrade/logs/error.log) [<a href=\'https://secure.php.net/function.file-put-contents\'>function.file-put-contents</a>]: Failed to open stream: Permission denied\nTrace:\n/var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Engine/FileLog.php, line 142\nCake\\Log\\Engine\\FileLog->log() /var/www/dsw2-upgrade/vendor/cakephp/cakephp/src/Log/Log.php, line 392\nCake\\Log\\Log::write() /var/ww'..., $flags = 8 ).../FileLog.php:142

( ! ) Fatal error: Declaration of App\View\Helper\FormHelper::control($fieldName, array $options = []) must be compatible with Cake\View\Helper\FormHelper::control(string $fieldName, array $options = []): string in /var/www/dsw2-upgrade/src/View/Helper/FormHelper.php on line 8
Call Stack
#TimeMemoryFunctionLocation
10.0746725120Cake\Error\ExceptionTrap->handleException( $exception = class Error { protected $message = 'Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found'; private string $string = ''; protected $code = 0; protected string $file = '/var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php'; protected int $line = 17; private array $trace = [0 => [...], 1 => [...], 2 => [...], 3 => [...], 4 => [...]]; private ?Throwable $previous = NULL } ).../ExceptionTrap.php:0
20.0964960680Cake\Error\Renderer\WebExceptionRenderer->render( ).../ExceptionTrap.php:250
30.0988950712Cake\Error\Renderer\WebExceptionRenderer->_outputMessage( $template = 'error' ).../WebExceptionRenderer.php:303
40.0988950712Cake\Controller\Controller->render( $template = 'error', $layout = ??? ).../WebExceptionRenderer.php:432
50.1008952184Cake\Controller\Controller->createView( $viewClass = NULL ).../Controller.php:788
60.1008952216Cake\View\ViewBuilder->build( $vars = [], $request = class Cake\Http\ServerRequest { protected $params = ['plugin' => NULL, 'controller' => NULL, 'action' => NULL, '_ext' => NULL, 'pass' => [...]]; protected $data = []; protected $query = []; protected $cookies = []; protected $_environment = ['USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'dsw2-upgrade.solr.cz', 'PATH_INFO' => '', 'SCRIPT_FILENAME' => '/var/www/dsw2-upgrade/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'dsw2-upgrade.solr.cz', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '37.205.14.31', 'REMOTE_USER' => '', 'REMOTE_PORT' => '23790', 'REMOTE_ADDR' => '216.73.216.60', 'SERVER_SOFTWARE' => 'nginx/1.18.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'DOCUMENT_ROOT' => '/var/www/dsw2-upgrade/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1764987390.223911, 'REQUEST_TIME' => 1764987390, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => NULL]; protected $base = ''; protected $webroot = '/'; public $trustProxy = FALSE; protected $trustedProxies = []; protected $_detectorCache = ['ajax' => FALSE]; protected $stream = class Laminas\Diactoros\PhpInputStream { protected $resource = resource(24) of type (stream); protected $stream = 'php://input'; private string $cache = ''; private bool $reachedEof = FALSE }; protected $uri = class Cake\Http\Uri { private $base = ''; private $webroot = '/'; private $uri = class Laminas\Diactoros\Uri { ... } }; protected $session = class Cake\Http\Session { protected $_engine = class Cake\Http\Session\CacheSession { ... }; protected $_started = NULL; protected $_lifetime = 36288000; protected $_isCLI = FALSE; protected $headerSentInfo = NULL }; protected $flash = class Cake\Http\FlashMessage { protected $_defaultConfig = [...]; protected $session = class Cake\Http\Session { ... }; protected $_config = [...]; protected $_configInitialized = TRUE }; protected $attributes = ['isAjax' => FALSE]; protected $emulatedAttributes = [0 => 'session', 1 => 'flash', 2 => 'webroot', 3 => 'base', 4 => 'params', 5 => 'here']; protected $uploadedFiles = []; protected $protocol = NULL; protected $requestTarget = NULL }, $response = class Cake\Http\Response { public $status = 500; public $contentType = 'text/html'; public $headers = ['Content-Type' => [...]]; public $file = NULL; public $fileRange = []; public $cookies = class Cake\Http\Cookie\CookieCollection { protected $cookies = [...] }; public $cacheDirectives = []; public $body = '' }, $events = class Cake\Event\EventManager { public $_listeners = ['Controller.startup' => '1 listener(s)', 'Controller.beforeRender' => '2 listener(s)', 'Controller.initialize' => '1 listener(s)', 'Controller.beforeRedirect' => '1 listener(s)', 'Controller.shutdown' => '1 listener(s)']; public $_isGlobal = FALSE; public $_trackEvents = FALSE; public $_generalManager = '(object) EventManager'; public $_dispatchedEvents = NULL } ).../ViewVarsTrait.php:71
70.1026953976Cake\View\View->__construct( $request = class Cake\Http\ServerRequest { protected $params = ['plugin' => NULL, 'controller' => NULL, 'action' => NULL, '_ext' => NULL, 'pass' => [...]]; protected $data = []; protected $query = []; protected $cookies = []; protected $_environment = ['USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'dsw2-upgrade.solr.cz', 'PATH_INFO' => '', 'SCRIPT_FILENAME' => '/var/www/dsw2-upgrade/webroot/index.php', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'dsw2-upgrade.solr.cz', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '37.205.14.31', 'REMOTE_USER' => '', 'REMOTE_PORT' => '23790', 'REMOTE_ADDR' => '216.73.216.60', 'SERVER_SOFTWARE' => 'nginx/1.18.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'DOCUMENT_ROOT' => '/var/www/dsw2-upgrade/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1764987390.223911, 'REQUEST_TIME' => 1764987390, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => NULL]; protected $base = ''; protected $webroot = '/'; public $trustProxy = FALSE; protected $trustedProxies = []; protected $_detectorCache = ['ajax' => FALSE]; protected $stream = class Laminas\Diactoros\PhpInputStream { protected $resource = resource(24) of type (stream); protected $stream = 'php://input'; private string $cache = ''; private bool $reachedEof = FALSE }; protected $uri = class Cake\Http\Uri { private $base = ''; private $webroot = '/'; private $uri = class Laminas\Diactoros\Uri { ... } }; protected $session = class Cake\Http\Session { protected $_engine = class Cake\Http\Session\CacheSession { ... }; protected $_started = NULL; protected $_lifetime = 36288000; protected $_isCLI = FALSE; protected $headerSentInfo = NULL }; protected $flash = class Cake\Http\FlashMessage { protected $_defaultConfig = [...]; protected $session = class Cake\Http\Session { ... }; protected $_config = [...]; protected $_configInitialized = TRUE }; protected $attributes = ['isAjax' => FALSE]; protected $emulatedAttributes = [0 => 'session', 1 => 'flash', 2 => 'webroot', 3 => 'base', 4 => 'params', 5 => 'here']; protected $uploadedFiles = []; protected $protocol = NULL; protected $requestTarget = NULL }, $response = class Cake\Http\Response { public $status = 500; public $contentType = 'text/html'; public $headers = ['Content-Type' => [...]]; public $file = NULL; public $fileRange = []; public $cookies = class Cake\Http\Cookie\CookieCollection { protected $cookies = [...] }; public $cacheDirectives = []; public $body = '' }, $eventManager = class Cake\Event\EventManager { public $_listeners = ['Controller.startup' => '1 listener(s)', 'Controller.beforeRender' => '2 listener(s)', 'Controller.initialize' => '1 listener(s)', 'Controller.beforeRedirect' => '1 listener(s)', 'Controller.shutdown' => '1 listener(s)']; public $_isGlobal = FALSE; public $_trackEvents = FALSE; public $_generalManager = '(object) EventManager'; public $_dispatchedEvents = NULL }, $viewOptions = ['name' => 'Error', 'templatePath' => 'Error', 'template' => 'error', 'plugin' => NULL, 'theme' => NULL, 'layout' => NULL, 'autoLayout' => TRUE, 'layoutPath' => NULL, 'helpers' => [], 'viewVars' => ['message' => 'Class "ErrorEmail\\Middleware\\ErrorHandlerMiddleware" not found', 'url' => '/', 'error' => class Error { ... }, 'exceptions' => [...], 'code' => 500, 'trace' => [...], 'file' => '/var/www/dsw2-upgrade/src/Middleware/ErrorHandlerMiddleware.php', 'line' => 17], 'serialize' => [0 => 'message', 1 => 'url', 2 => 'code', 3 => 'file', 4 => 'line']] ).../ViewBuilder.php:604
80.1027954448App\View\AppView->initialize( ).../View.php:361
90.1027954448Cake\View\View->loadHelper( $name = 'Form', $config = ['templates' => 'bootstrap_form', 'className' => 'App\\View\\Helper\\FormHelper'] ).../AppView.php:74
100.1032954576Cake\Core\ObjectRegistry->load( $name = 'Form', $config = ['templates' => 'bootstrap_form', 'className' => 'App\\View\\Helper\\FormHelper'] ).../View.php:1280
110.1032954576Cake\View\HelperRegistry->_resolveClassName( $class = 'App\\View\\Helper\\FormHelper' ).../ObjectRegistry.php:100
120.1032954576Cake\Core\App::className( $class = 'App\\View\\Helper\\FormHelper', $type = 'View/Helper', $suffix = 'Helper' ).../HelperRegistry.php:117
130.1032954576class_exists( $class = 'App\\View\\Helper\\FormHelper' ).../App.php:58
140.1032954664Composer\Autoload\ClassLoader->loadClass( $class = 'App\\View\\Helper\\FormHelper' ).../App.php:58
150.1034954776Composer\Autoload\ClassLoader::Composer\Autoload\{closure:/var/www/dsw2-upgrade/vendor/composer/ClassLoader.php:577-579}( $file = '/var/www/dsw2-upgrade/vendor/composer/../../src/View/Helper/FormHelper.php' ).../ClassLoader.php:432
160.1034955184include( '/var/www/dsw2-upgrade/src/View/Helper/FormHelper.php ).../ClassLoader.php:578