Warning: Undefined array key "HTTP_CF_CONNECTING_IP" in /var/www/new/php/Controllers/WikiController.php on line 138
\Illuminate\Database\QueryException::__set_state(array( 'message' => 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column \'ip\' cannot be null (SQL: insert into `visitors` (`ip`, `page`, `type`, `updated_at`, `created_at`) values (?, 42, visit, 2024-11-09 19:49:46, 2024-11-09 19:49:46))', 'string' => '', 'code' => '23000', 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 712, 'trace' => array ( 0 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 672, 'function' => 'runQueryCallback', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 1 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 490, 'function' => 'run', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 2 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 454, 'function' => 'statement', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 3 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Query/Processors/Processor.php', 'line' => 32, 'function' => 'insert', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 4 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Query/Builder.php', 'line' => 3028, 'function' => 'processInsertGetId', 'class' => 'Illuminate\\Database\\Query\\Processors\\Processor', 'type' => '->', ), 5 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Builder.php', 'line' => 1657, 'function' => 'insertGetId', 'class' => 'Illuminate\\Database\\Query\\Builder', 'type' => '->', ), 6 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 1188, 'function' => '__call', 'class' => 'Illuminate\\Database\\Eloquent\\Builder', 'type' => '->', ), 7 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 1153, 'function' => 'insertAndSetId', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 8 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 994, 'function' => 'performInsert', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 9 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Builder.php', 'line' => 495, 'function' => 'save', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 10 => array ( 'file' => '/var/www/new/vendor/illuminate/support/helpers.php', 'line' => 263, 'function' => 'Illuminate\\Database\\Eloquent\\{closure}', 'class' => 'Illuminate\\Database\\Eloquent\\Builder', 'type' => '->', ), 11 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Builder.php', 'line' => 494, 'function' => 'tap', ), 12 => array ( 'file' => '/var/www/new/vendor/illuminate/support/Traits/ForwardsCalls.php', 'line' => 23, 'function' => 'firstOrCreate', 'class' => 'Illuminate\\Database\\Eloquent\\Builder', 'type' => '->', ), 13 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 2132, 'function' => 'forwardCallTo', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 14 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 2144, 'function' => '__call', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 15 => array ( 'file' => '/var/www/new/php/Controllers/WikiController.php', 'line' => 99, 'function' => '__callStatic', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '::', ), 16 => array ( 'function' => 'page', 'class' => 'App\\Controllers\\WikiController', 'type' => '->', ), 17 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phpcontainer/src/Container.php', 'line' => 184, 'function' => 'call_user_func_array', ), 18 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phprouter/src/Dispatching/Caller.php', 'line' => 111, 'function' => 'call', 'class' => 'MiladRahimi\\PhpContainer\\Container', 'type' => '->', ), 19 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phprouter/src/Dispatching/Caller.php', 'line' => 58, 'function' => 'call', 'class' => 'MiladRahimi\\PhpRouter\\Dispatching\\Caller', 'type' => '->', ), 20 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phprouter/src/Router.php', 'line' => 151, 'function' => 'stack', 'class' => 'MiladRahimi\\PhpRouter\\Dispatching\\Caller', 'type' => '->', ), 21 => array ( 'file' => '/var/www/new/public/index.php', 'line' => 162, 'function' => 'dispatch', 'class' => 'MiladRahimi\\PhpRouter\\Router', 'type' => '->', ), ), 'previous' => \PDOException::__set_state(array( 'message' => 'SQLSTATE[23000]: Integrity constraint violation: 1048 Column \'ip\' cannot be null', 'string' => '', 'code' => '23000', 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 501, 'trace' => array ( 0 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 501, 'function' => 'execute', 'class' => 'PDOStatement', 'type' => '->', ), 1 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 705, 'function' => 'Illuminate\\Database\\{closure}', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 2 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 672, 'function' => 'runQueryCallback', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 3 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 490, 'function' => 'run', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 4 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Connection.php', 'line' => 454, 'function' => 'statement', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 5 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Query/Processors/Processor.php', 'line' => 32, 'function' => 'insert', 'class' => 'Illuminate\\Database\\Connection', 'type' => '->', ), 6 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Query/Builder.php', 'line' => 3028, 'function' => 'processInsertGetId', 'class' => 'Illuminate\\Database\\Query\\Processors\\Processor', 'type' => '->', ), 7 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Builder.php', 'line' => 1657, 'function' => 'insertGetId', 'class' => 'Illuminate\\Database\\Query\\Builder', 'type' => '->', ), 8 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 1188, 'function' => '__call', 'class' => 'Illuminate\\Database\\Eloquent\\Builder', 'type' => '->', ), 9 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 1153, 'function' => 'insertAndSetId', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 10 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 994, 'function' => 'performInsert', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 11 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Builder.php', 'line' => 495, 'function' => 'save', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 12 => array ( 'file' => '/var/www/new/vendor/illuminate/support/helpers.php', 'line' => 263, 'function' => 'Illuminate\\Database\\Eloquent\\{closure}', 'class' => 'Illuminate\\Database\\Eloquent\\Builder', 'type' => '->', ), 13 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Builder.php', 'line' => 494, 'function' => 'tap', ), 14 => array ( 'file' => '/var/www/new/vendor/illuminate/support/Traits/ForwardsCalls.php', 'line' => 23, 'function' => 'firstOrCreate', 'class' => 'Illuminate\\Database\\Eloquent\\Builder', 'type' => '->', ), 15 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 2132, 'function' => 'forwardCallTo', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 16 => array ( 'file' => '/var/www/new/vendor/illuminate/database/Eloquent/Model.php', 'line' => 2144, 'function' => '__call', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '->', ), 17 => array ( 'file' => '/var/www/new/php/Controllers/WikiController.php', 'line' => 99, 'function' => '__callStatic', 'class' => 'Illuminate\\Database\\Eloquent\\Model', 'type' => '::', ), 18 => array ( 'function' => 'page', 'class' => 'App\\Controllers\\WikiController', 'type' => '->', ), 19 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phpcontainer/src/Container.php', 'line' => 184, 'function' => 'call_user_func_array', ), 20 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phprouter/src/Dispatching/Caller.php', 'line' => 111, 'function' => 'call', 'class' => 'MiladRahimi\\PhpContainer\\Container', 'type' => '->', ), 21 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phprouter/src/Dispatching/Caller.php', 'line' => 58, 'function' => 'call', 'class' => 'MiladRahimi\\PhpRouter\\Dispatching\\Caller', 'type' => '->', ), 22 => array ( 'file' => '/var/www/new/vendor/miladrahimi/phprouter/src/Router.php', 'line' => 151, 'function' => 'stack', 'class' => 'MiladRahimi\\PhpRouter\\Dispatching\\Caller', 'type' => '->', ), 23 => array ( 'file' => '/var/www/new/public/index.php', 'line' => 162, 'function' => 'dispatch', 'class' => 'MiladRahimi\\PhpRouter\\Router', 'type' => '->', ), ), 'previous' => NULL, 'errorInfo' => array ( 0 => '23000', 1 => 1048, 2 => 'Column \'ip\' cannot be null', ), )), 'errorInfo' => array ( 0 => '23000', 1 => 1048, 2 => 'Column \'ip\' cannot be null', ), 'sql' => 'insert into `visitors` (`ip`, `page`, `type`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?)', 'bindings' => array ( 0 => NULL, 1 => '42', 2 => 'visit', 3 => '2024-11-09 19:49:46', 4 => '2024-11-09 19:49:46', ), ))
Warning: http_response_code(): Cannot set response code - headers already sent (output started at /var/www/new/public/index.php:168) in /var/www/new/vendor/miladrahimi/phprouter/src/Publisher/HttpPublisher.php on line 23
Internal error.