TPhpErrorException

Description

[Unknown Error] Function split() is deprecated (@line 451 in file /var/www/PRADO3.1.1/framework/PradoBase.php).

Source File

/var/www/PRADO3.1.1/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 [internal function]: PradoBase::phpErrorHandler(8192, 'Function split(...', '/var/www/PRADO3...', 451, Array)
#1 /var/www/PRADO3.1.1/framework/PradoBase.php(451): split()
#2 /var/www/PRADO3.1.1/framework/PradoBase.php(472): PradoBase::getUserLanguages()
#3 /var/www/PRADO3.1.1/framework/Exceptions/TException.php(84): PradoBase::getPreferredLanguage()
#4 /var/www/PRADO3.1.1/framework/Exceptions/TException.php(66): TException->getErrorMessageFile()
#5 /var/www/PRADO3.1.1/framework/Exceptions/TException.php(49): TException->translateErrorMessage('dbcommand_query...')
#6 /var/www/PRADO3.1.1/framework/Data/TDbCommand.php(230): TException->__construct('dbcommand_query...', 'SQLSTATE[HY000]...', 'SHOW FULL FIELD...')
#7 /var/www/PRADO3.1.1/framework/Data/Common/Mysql/TMysqlMetaData.php(56): TDbCommand->query()
#8 /var/www/PRADO3.1.1/framework/Data/Common/TDbMetaData.php(93): TMysqlMetaData->createTableInfo('menus')
#9 /var/www/PRADO3.1.1/framework/Data/ActiveRecord/TActiveRecordGateway.php(109): TDbMetaData->getTableInfo('menus')
#10 /var/www/PRADO3.1.1/framework/Data/ActiveRecord/TActiveRecordGateway.php(81): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'menus')
#11 /var/www/PRADO3.1.1/framework/Data/ActiveRecord/TActiveRecordGateway.php(126): TActiveRecordGateway->getRecordTableInfo(Object(menus))
#12 /var/www/PRADO3.1.1/framework/Data/ActiveRecord/TActiveRecordGateway.php(212): TActiveRecordGateway->getCommand(Object(menus))
#13 /var/www/PRADO3.1.1/framework/Data/ActiveRecord/TActiveRecord.php(434): TActiveRecordGateway->findRecordsByCriteria(Object(menus), Object(TActiveRecordCriteria))
#14 /home/WWW/wwwvoith/protected/pages/Home.php(27): TActiveRecord->find('id = '0'')
#15 /var/www/PRADO3.1.1/framework/Web/UI/TControl.php(1286): Home->onLoad(NULL)
#16 /var/www/PRADO3.1.1/framework/Web/UI/TPage.php(210): TControl->loadRecursive()
#17 /var/www/PRADO3.1.1/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#18 /var/www/PRADO3.1.1/framework/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#19 /var/www/PRADO3.1.1/framework/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#20 /var/www/PRADO3.1.1/framework/TApplication.php(1066): TPageService->run()
#21 /var/www/PRADO3.1.1/framework/TApplication.php(376): TApplication->runService()
#22 /home/WWW/wwwvoith/index.php(21): TApplication->run()
#23 {main}
2014-09-16 02:52 Apache PRADO/3.1.1