Class Escaper not found!


(nishant.eylog) #1

Hi Guys,

I am trying to migrate Yii 1.1 based application which was running on php 5.6 to php 7.2. I am getting the following error with the following stack trace. Can anyone please help?

2019/12/20 16:22:00 [error] [exception.Error] Error: Class ‘Escaper’ not found in /usr/share/nginx/html/eylog-php7/eyMan/framework/web/helpers/CJavaScript.php:33
Stack trace:
#0 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/helpers/CJavaScript.php(97): CJavaScript::quote(‘showAnim’)
#1 /usr/share/nginx/html/eylog-php7/eyMan/framework/zii/widgets/jui/CJuiDatePicker.php(110): CJavaScript::encode(Array)
#2 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CBaseController.php(182): CJuiDatePicker->run()
#3 /usr/share/nginx/html/eylog-php7/eyMan/protected/views/reports/availabilityChart.php(92): CBaseController->widget(‘zii.widgets.jui…’, Array)
#4 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CBaseController.php(126): require(’/usr/share/ngin…’)
#5 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CBaseController.php(95): CBaseController->renderInternal(’/usr/share/ngin…’, Array, true)
#6 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CController.php(872): CBaseController->renderFile(’/usr/share/ngin…’, Array, true)
#7 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CController.php(785): CController->renderPartial(‘availabilityCha…’, Array, true)
#8 /usr/share/nginx/html/eylog-php7/eyMan/protected/controllers/ReportsController.php(11371): CController->render(‘availabilityCha…’, Array)
#9 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/actions/CInlineAction.php(49): ReportsController->actionAvailabilityChart()
#10 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#11 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/filters/CFilterChain.php(134): CController->runAction(Object(CInlineAction))
#12 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/filters/CFilter.php(40): CFilterChain->run()
#13 /usr/share/nginx/html/eylog-php7/eyMan/protected/modules/rights/components/RController.php(36): CFilter->filter(Object(CFilterChain))
#14 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/filters/CInlineFilter.php(58): RController->filterRights(Object(CFilterChain))
#15 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(Object(CFilterChain))
#16 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CController.php(291): CFilterChain->run()
#17 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#18 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CWebApplication.php(282): CController->run(‘availabilityCha…’)
#19 /usr/share/nginx/html/eylog-php7/eyMan/framework/web/CWebApplication.php(141): CWebApplication->runController(‘reports/availab…’)
#20 /usr/share/nginx/html/eylog-php7/eyMan/framework/base/CApplication.php(185): CWebApplication->processRequest()
#21 /usr/share/nginx/html/eylog-php7/eyMan/index.php(45): CApplication->run()
#22 {main}