Error

Description

Call to undefined function split()

Source File

/home/amisoft/www/prado/framework/PradoBase.php (448)

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

Stack Trace

#0 /home/amisoft/www/prado/framework/PradoBase.php(469): PradoBase::getUserLanguages()
#1 /home/amisoft/www/prado/framework/Exceptions/TException.php(86): PradoBase::getPreferredLanguage()
#2 /home/amisoft/www/prado/framework/Exceptions/TException.php(66): TException->getErrorMessageFile()
#3 /home/amisoft/www/prado/framework/Exceptions/TException.php(49): TException->translateErrorMessage('[Warning] preg_...')
#4 /home/amisoft/www/prado/framework/Exceptions/TException.php(369): TException->__construct('[Warning] preg_...')
#5 /home/amisoft/www/prado/framework/PradoBase.php(129): TPhpErrorException->__construct(2, 'preg_replace():...', '/home/amisoft/w...', 2012)
#6 [internal function]: PradoBase::phpErrorHandler(2, 'preg_replace():...', '/home/amisoft/w...', 2012, Array)
#7 /home/amisoft/www/prado/framework/3rdParty/geshi/geshi.php(2012): preg_replace('#([^a-zA-Z0-9$_...', ''\\1' . $this->a...', ' Prado::using\\(...')
#8 /home/amisoft/www/prado/framework/3rdParty/geshi/geshi.php(1583): GeSHi->parse_non_string_part(' Prado::using\\(...')
#9 /home/amisoft/www/prado/framework/Web/UI/WebControls/TTextHighlighter.php(140): GeSHi->parse_code()
#10 /home/amisoft/www/prado/framework/Web/UI/WebControls/TTextProcessor.php(83): TTextHighlighter->processText('\r\n// Include TD...')
#11 /home/amisoft/www/prado/framework/Web/UI/WebControls/TWebControl.php(400): TTextProcessor->renderContents(Object(THtmlWriter))
#12 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1541): TWebControl->render(Object(THtmlWriter))
#13 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter))
#14 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1554): TControl->renderChildren(Object(THtmlWriter))
#15 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1541): TControl->render(Object(THtmlWriter))
#16 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter))
#17 /home/amisoft/www/prado/framework/Web/UI/TForm.php(76): TControl->renderChildren(Object(THtmlWriter))
#18 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1541): TForm->render(Object(THtmlWriter))
#19 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter))
#20 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1554): TControl->renderChildren(Object(THtmlWriter))
#21 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1541): TControl->render(Object(THtmlWriter))
#22 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1572): TControl->renderControl(Object(THtmlWriter))
#23 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1554): TControl->renderChildren(Object(THtmlWriter))
#24 /home/amisoft/www/prado/framework/Web/UI/TControl.php(1541): TControl->render(Object(THtmlWriter))
#25 /home/amisoft/www/prado/framework/Web/UI/TPage.php(225): TControl->renderControl(Object(THtmlWriter))
#26 /home/amisoft/www/prado/framework/Web/UI/TPage.php(193): TPage->processNormalRequest(Object(THtmlWriter))
#27 /home/amisoft/www/prado/framework/Web/Services/TPageService.php(472): TPage->run(Object(THtmlWriter))
#28 /home/amisoft/www/prado/framework/Web/Services/TPageService.php(418): TPageService->runPage(Object(TPage), Array)
#29 /home/amisoft/www/prado/framework/TApplication.php(1066): TPageService->run()
#30 /home/amisoft/www/prado/framework/TApplication.php(376): TApplication->runService()
#31 /home/amisoft/www/prado/blog-tutorial/index.php(16): TApplication->run()
#32 {main}
2023-02-09 04:43 Apache PRADO/3.1.0