2025-04-21 14:14:20: ERROR DETAILSarray(4) {
["type"]=>
int(1)
["message"]=>
string(1024) "Uncaught PDOException: SQLSTATE[22018]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Conversion failed when converting the nvarchar value 'null' to data type int. in D:\Apps\AIPM-CP2\BN\_base\PhpHelpers\DB.php:103
Stack trace:
#0 D:\Apps\AIPM-CP2\BN\_base\PhpHelpers\DB.php(103): PDOStatement->execute()
#1 D:\Apps\AIPM-CP2\BN\_base\PhpHelpers\DB.php(440): Helpers\DB::executeQuery('SELECT S_MainPh...', Array, false, NULL)
#2 D:\Apps\AIPM-CP2\BN\Screens\Home.pxp(101): Helpers\DB::selectTable('Site', 'S_MainPhoto,S_G...', 'S_ID=?', NULL, Array, false, NULL)
#3 [internal function]: DataService\getImage(Array)
#4 D:\Apps\AIPM-CP2\BN\_base\ServiceBase\DataService.php(66): call_user_func('DataService\\get...', Array)
#5 [internal function]: unknown()
#6 D:\Apps\AIPM-CP2\BN\_base\ServiceBase\DataService.php(2): sg_load('639086E74756B02...')
#7 D:\Apps\AIPM-CP2\BN\Screens\Home.pxp(109): require_once('D:\\Apps\\AIPM-CP...')
#8 [internal function]: unknown()
#9 D:\Apps\AIPM-CP2\BN\Screens\Home.pxp(2): sg_load('6"
["file"]=>
string(43) "D:\Apps\AIPM-CP2\BN\_base\PhpHelpers\DB.php"
["line"]=>
int(173)
}
REQUEST
array(2) {
["sFunctionName"]=>
string(8) "getImage"
["oData"]=>
string(16) "{"iSite":"null"}"
}
COOKIES
array(6) {
["PHPSESSID"]=>
string(26) "e6ufndt4v65hn1j3d06bdfr1ij"
["SU_ID"]=>
string(1) "9"
["sLang"]=>
string(2) "en"
["sAppVersion"]=>
string(17) "2025.04.02.110028"
["iSiteSelected"]=>
string(4) "null"
["sFullUrl"]=>
string(54) "http://aipm-cpall2-bn.enmax.co.th/#/Screens/Home.phtml"
}