Exception Caught: PDOException:SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'This Is Not SQL' at line 1
( ! ) Warning: file_put_contents(/var/www/html/php7cookbook/source/chapter13/logs/20261121.log): Failed to open stream: No such file or directory in /var/www/html/php7cookbook/source/Application/Error/Handler.php on line 23
Call Stack
#TimeMemoryFunctionLocation
10.0036460000Application\Error\Handler->exceptionHandler( $ex = class PDOException { protected $message = 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'This Is Not SQL\' at line 1'; private string ${Exception}string = ''; protected $code = '42000'; protected string $file = '/var/www/html/php7cookbook/source/Application/Error/ThrowsException.php'; protected int $line = 23; private array ${Exception}trace = [0 => [...], 1 => [...]]; private ?Throwable ${Exception}previous = NULL; public ?array $errorInfo = [0 => '42000', 1 => 1064, 2 => 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'This Is Not SQL\' at line 1'] } ).../Handler.php:0
20.0037460512file_put_contents( $filename = '/var/www/html/php7cookbook/source/chapter13/logs/20261121.log', $data = 'EXCEPTION: 2026-11-21 15:25:30 : PDOException : SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'This Is Not SQL\' at line 1\n', $flags = 8 ).../Handler.php:30
30.0038460960Application\Error\Handler->errorHandler( $errno = 2, $errstr = 'file_put_contents(/var/www/html/php7cookbook/source/chapter13/logs/20261121.log): Failed to open stream: No such file or directory', $errfile = '/var/www/html/php7cookbook/source/Application/Error/Handler.php', $errline = 30 ).../Handler.php:30
40.0038461280file_put_contents( $filename = '/var/www/html/php7cookbook/source/chapter13/logs/20261121.log', $data = 'ERROR : 2026-11-21 15:25:30 : 2 : file_put_contents(/var/www/html/php7cookbook/source/chapter13/logs/20261121.log): Failed to open stream: No such file or directory : /var/www/html/php7cookbook/source/Application/Error/Handler.php : 30\n', $flags = 8 ).../Handler.php:23