Warning: Declaration of ActiveRecord\DateTime::setTime($hour, $minute, $second = NULL) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in /home/thepos.xyz/khata/vendor/php-activerecord/php-activerecord/lib/DateTime.php on line 0
Whoops! There was an error.
3. Whoops\Exception\ErrorException
…/­core/­classes/­Router.php286
2. Whoops\Run handleError
<#unknown>0
1. header
…/­core/­classes/­Router.php286
0. Router run
…/­index.php7

Whoops \ Exception \ ErrorException (E_WARNING) Whoops\Exception\ErrorException thrown with message "Cannot modify header information - headers already sent by (output started at /home/thepos.xyz/khata/vendor/php-activerecord/php-activerecord/lib/DateTime.php:0)" Stacktrace: #3 Whoops\Exception\ErrorException in /home/thepos.xyz/khata/core/classes/Router.php:286 #2 Whoops\Run:handleError in <#unknown>:0 #1 header in /home/thepos.xyz/khata/core/classes/Router.php:286 #0 Router:run in /home/thepos.xyz/khata/index.php:7

Cannot modify header information - headers already sent by (output started at /home/thepos.xyz/khata/vendor/php-activerecord/php-activerecord/lib/DateTime.php:0)

/home/thepos.xyz/khata/core/classes/Router.php
	}
 
	public function run(){
		$match = $this->match();
		if( $match && is_callable( $match['target'] ) ) {
			call_user_func_array( $match['target'], $match['params'] );
		} else {
			header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
			echo Json::encode(['error' => 'invalid api call please contact provider']);
		}
<#unknown>
/home/thepos.xyz/khata/core/classes/Router.php
	}
 
	public function run(){
		$match = $this->match();
		if( $match && is_callable( $match['target'] ) ) {
			call_user_func_array( $match['target'], $match['params'] );
		} else {
			header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
			echo Json::encode(['error' => 'invalid api call please contact provider']);
		}
/home/thepos.xyz/khata/index.php
<?php
 
define("SYSTEM_PATH", __dir__."/");
 
require_once SYSTEM_PATH."core/init.php";
 
$app->run();
 
Key Value
PATH /bin:/usr/bin
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_COOKIE PHPSESSID=8t92d2uqd88uafhr4hcv8q3a65
HTTP_HOST www.khata.thepos.xyz
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
DOCUMENT_ROOT /home/thepos.xyz/khata
REMOTE_ADDR 216.73.216.119
REMOTE_PORT 45839
SERVER_ADDR 51.15.178.130
SERVER_NAME www.khata.thepos.xyz
SERVER_ADMIN info.hostinglo@gmail.com
SERVER_PORT 443
REQUEST_URI /sitemap.xml
REDIRECT_URL /sitemap.xml
HTTPS on
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
LSWS_EDITION Openlitespeed 1.8.3
X-LSCACHE on,crawler
SCRIPT_FILENAME /home/thepos.xyz/khata/index.php
QUERY_STRING
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1766389356.8202
REQUEST_TIME 1766389356
empty
empty
empty
Key Value
PHPSESSID 8t92d2uqd88uafhr4hcv8q3a65
empty
empty
0. Whoops\Handler\PrettyPageHandler