Error

Description

Call to undefined function split()

Source File

/users/mcgay.com/htdocs/prado/framework/PradoBase.php (456)

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

Stack Trace

#0 /users/mcgay.com/htdocs/prado/framework/PradoBase.php(477): PradoBase::getUserLanguages()
#1 /users/mcgay.com/htdocs/prado/framework/Exceptions/TException.php(84): PradoBase::getPreferredLanguage()
#2 /users/mcgay.com/htdocs/prado/framework/Exceptions/TException.php(66): TException->getErrorMessageFile()
#3 /users/mcgay.com/htdocs/prado/framework/Exceptions/TException.php(49): TException->translateErrorMessage('[Warning] count...')
#4 /users/mcgay.com/htdocs/prado/framework/Exceptions/TException.php(367): TException->__construct('[Warning] count...')
#5 /users/mcgay.com/htdocs/prado/framework/PradoBase.php(136): TPhpErrorException->__construct(2, 'count(): Parame...', '/users/mcgay.co...', 223)
#6 /users/mcgay.com/htdocs/prado/framework/Data/Common/Mysql/TMysqlMetaData.php(223): PradoBase::phpErrorHandler(2, 'count(): Parame...', '/users/mcgay.co...', 223, Array)
#7 /users/mcgay.com/htdocs/prado/framework/Data/Common/Mysql/TMysqlMetaData.php(193): TMysqlMetaData->getIsView(NULL, 'general_config')
#8 /users/mcgay.com/htdocs/prado/framework/Data/Common/Mysql/TMysqlMetaData.php(54): TMysqlMetaData->createNewTableInfo('general_config')
#9 /users/mcgay.com/htdocs/prado/framework/Data/Common/TDbMetaData.php(93): TMysqlMetaData->createTableInfo('general_config')
#10 /users/mcgay.com/htdocs/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(121): TDbMetaData->getTableInfo('general_config')
#11 /users/mcgay.com/htdocs/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(93): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'general_config')
#12 /users/mcgay.com/htdocs/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecordGateway->getRecordTableInfo(Object(GeneralRecord))
#13 /users/mcgay.com/htdocs/prado/framework/Data/ActiveRecord/TActiveRecordGateway.php(198): TActiveRecordGateway->getCommand(Object(GeneralRecord))
#14 /users/mcgay.com/htdocs/prado/framework/Data/ActiveRecord/TActiveRecord.php(612): TActiveRecordGateway->findRecordByPK(Object(GeneralRecord), '1')
#15 /users/mcgay.com/htdocs/protected/pages/Home.php(9): TActiveRecord->findByPk('1')
#16 /users/mcgay.com/htdocs/prado/framework/Web/UI/TPage.php(199): Home->onPreInit(NULL)
#17 /users/mcgay.com/htdocs/prado/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#18 /users/mcgay.com/htdocs/prado/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#19 /users/mcgay.com/htdocs/prado/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#20 /users/mcgay.com/htdocs/prado/framework/TApplication.php(1091): TPageService->run()
#21 /users/mcgay.com/htdocs/prado/framework/TApplication.php(382): TApplication->runService()
#22 /users/mcgay.com/htdocs/index.php(21): TApplication->run()
#23 {main}
2019-08-18 16:17 Apache/2.4.18 (Ubuntu) PRADO/3.1.3