TPhpErrorException

Description

[Warning] mktime() expects parameter 6 to be long, string given (@line 98 in file /var/www/engine/Kernel/String.php).

Source File

/var/www/engine/Kernel/String.php (98)

0087:     /**     
0088:      * Returns date formated time by given timestamp.
0089:      * 
0090:      * @param int $timestamp
0091:      * @param string $format
0092:      * @return string
0093:      */
0094:     public function formatTimestamp($timestamp, $format)
0095:     {
0096:         $d = preg_split('/( )|(-)|(:)/', $timestamp);
0097:         
0098: return date($format, mktime($d[3], $d[4], $d[5], $d[1], $d[2], $d[0]));
0099: } 0100: 0101: /** 0102: * Returns just the file extension from a filename. 0103: * 0104: * @param string $fileName 0105: * @return string 0106: */ 0107: function GetFileExtention($fileName) { 0108: $ext = strstr($fileName,"."); 0109: 0110: return $ext;

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'mktime() expect...', '/var/www/engine...', 98, Array)
#1 /var/www/engine/Kernel/String.php(98): mktime(0, 0, 0, 0, 0, '')
#2 [internal function]: String->formatTimestamp(NULL, 'd.m.Y')
#3 /var/www/engine/Kernel/Loader.php(50): call_user_func_array(Array, Array)
#4 /var/www/protected/Pages/News/Item.php(77): Loader->__call('formatTimestamp', Array)
#5 /var/www/protected/Pages/News/Item.php(77): Loader->formatTimestamp(NULL, 'd.m.Y')
#6 /var/www/protected/Pages/News/Item.php(27): Item->setData()
#7 /var/www/framework/Web/UI/TControl.php(1270): Item->onInit(NULL)
#8 /var/www/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(NULL)
#9 /var/www/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#10 /var/www/framework/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#11 /var/www/framework/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#12 /var/www/framework/Web/Services/TPageService.php(498): TPage->run(Object(THtmlWriter))
#13 /var/www/framework/Web/Services/TPageService.php(444): TPageService->runPage(Object(Item), Array)
#14 /var/www/framework/TApplication.php(1095): TPageService->run()
#15 /var/www/framework/TApplication.php(382): TApplication->runService()
#16 /var/www/index.php(240): TApplication->run()
#17 {main}
2017-11-22 06:29 Apache/2.2.16 PRADO/3.1.7