Error

Description

Call to undefined function split()

Source File

/var/www/html/ceramellipapiani2/framework/PradoBase.php (451)

0440:     {
0441:         static $languages=null;
0442:         if($languages===null)
0443:         {
0444:             if(!isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
0445:                 $languages[0]='en';
0446:             else
0447:             {
0448:                 $languages=array();
0449:                 foreach(explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']) as $language)
0450:                 {
0451: $array=split(';q=',trim($language));
0452: $languages[trim($array[0])]=isset($array[1])?(float)$array[1]:1.0; 0453: } 0454: arsort($languages); 0455: $languages=array_keys($languages); 0456: if(empty($languages)) 0457: $languages[0]='en'; 0458: } 0459: } 0460: return $languages; 0461: } 0462: 0463: /**

Stack Trace

#0 /var/www/html/ceramellipapiani2/framework/PradoBase.php(472): PradoBase::getUserLanguages()
#1 /var/www/html/ceramellipapiani2/framework/Exceptions/TException.php(84): PradoBase::getPreferredLanguage()
#2 /var/www/html/ceramellipapiani2/framework/Exceptions/TException.php(66): TException->getErrorMessageFile()
#3 /var/www/html/ceramellipapiani2/framework/Exceptions/TException.php(49): TException->translateErrorMessage('[Warning] count...')
#4 /var/www/html/ceramellipapiani2/framework/Exceptions/TException.php(367): TException->__construct('[Warning] count...')
#5 /var/www/html/ceramellipapiani2/framework/PradoBase.php(131): TPhpErrorException->__construct(2, 'count(): Parame...', '/var/www/html/c...', 223)
#6 /var/www/html/ceramellipapiani2/framework/Data/Common/Mysql/TMysqlMetaData.php(223): PradoBase::phpErrorHandler(2, 'count(): Parame...', '/var/www/html/c...', 223, Array)
#7 /var/www/html/ceramellipapiani2/framework/Data/Common/Mysql/TMysqlMetaData.php(193): TMysqlMetaData->getIsView(NULL, 'contenuti')
#8 /var/www/html/ceramellipapiani2/framework/Data/Common/Mysql/TMysqlMetaData.php(54): TMysqlMetaData->createNewTableInfo('contenuti')
#9 /var/www/html/ceramellipapiani2/framework/Data/Common/TDbMetaData.php(93): TMysqlMetaData->createTableInfo('contenuti')
#10 /var/www/html/ceramellipapiani2/framework/Data/ActiveRecord/TActiveRecordGateway.php(121): TDbMetaData->getTableInfo('contenuti')
#11 /var/www/html/ceramellipapiani2/framework/Data/ActiveRecord/TActiveRecordGateway.php(93): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'contenuti')
#12 /var/www/html/ceramellipapiani2/framework/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecordGateway->getRecordTableInfo(Object(RecContenuto))
#13 /var/www/html/ceramellipapiani2/framework/Data/ActiveRecord/TActiveRecordGateway.php(236): TActiveRecordGateway->getCommand(Object(RecContenuto))
#14 /var/www/html/ceramellipapiani2/framework/Data/ActiveRecord/TActiveRecord.php(653): TActiveRecordGateway->findRecordBySql(Object(RecContenuto), Object(TActiveRecordCriteria))
#15 /var/www/html/ceramellipapiani2/protected/pages/MyPage.php(64): TActiveRecord->findBySql('SELECT IdConten...')
#16 /var/www/html/ceramellipapiani2/protected/pages/MyPage.php(36): MyPage->readContents('MyPage')
#17 /var/www/html/ceramellipapiani2/protected/pages/Famiglia.php(20): MyPage->onInit(NULL)
#18 /var/www/html/ceramellipapiani2/framework/Web/UI/TControl.php(1270): Famiglia->onInit(NULL)
#19 /var/www/html/ceramellipapiani2/framework/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Famiglia))
#20 /var/www/html/ceramellipapiani2/framework/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#21 /var/www/html/ceramellipapiani2/framework/Web/UI/TPage.php(202): TTemplateControl->initRecursive()
#22 /var/www/html/ceramellipapiani2/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#23 /var/www/html/ceramellipapiani2/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#24 /var/www/html/ceramellipapiani2/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Famiglia), Array)
#25 /var/www/html/ceramellipapiani2/framework/TApplication.php(1095): TPageService->run()
#26 /var/www/html/ceramellipapiani2/framework/TApplication.php(382): TApplication->runService()
#27 /var/www/html/ceramellipapiani2/index.php(21): TApplication->run()
#28 {main}
2020-10-29 09:35 Apache/2.4.38 (Debian) PRADO/3.1.4