Code Context }
$output = date('Y-m-d H:i:s') . ' ' . ucfirst($type) . ': ' . $message . "\n";
return file_put_contents($filename, $output, FILE_APPEND);
$type = 'error'
$message = '[MissingControllerException] Controller class UploadsController could not be found.
Exception Attributes: array (
'class' => 'UploadsController',
'plugin' => NULL,
)
Request URL: /uploads/content/Content_95.pdf
Stack Trace:
#0 /home/applicat/public_html/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}'
$debugTypes = array(
(int) 0 => 'notice',
(int) 1 => 'info',
(int) 2 => 'debug'
)
$filename = '/home/applicat/public_html/app/tmp/logs/error.log'
$output = '2024-11-21 13:45:45 Error: [MissingControllerException] Controller class UploadsController could not be found.
Exception Attributes: array (
'class' => 'UploadsController',
'plugin' => NULL,
)
Request URL: /uploads/content/Content_95.pdf
Stack Trace:
#0 /home/applicat/public_html/app/webroot/index.php(109): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}
'
file_put_contents - [internal], line ??
FileLog::write() - CORE/Cake/Log/Engine/FileLog.php, line 87
CakeLog::write() - CORE/Cake/Log/CakeLog.php, line 453
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 114
[main] - [internal], line ??