OrangeHRM Symfony(1.4) site moved from local to live server causing a page crash -
i moved site local live server. working fine on local server causing page crash on live server. have cleared cache. fine on local server , on live server except single page crash on live server error
"an internal error occurred. please contact system administrator."
when check logfile orangehrm.log
inside symfony/log
following message appears
thu 14 may 2015 12:29:13 pm gst,102 [1376] error filter.exceptioncatcherfilter - uncaught exception: exception 'sfrenderexception' message 'the template "viewrequestsuccess.php" not exist or unreadable in "here should directory name empty(this added mention error point)".' in /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php:2029 stack trace: #0 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(3908): sfview->prerendercheck() #1 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(979): sfphpview->render() #2 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(966): sfexecutionfilter->executeview('performance', 'viewrequest', 'success', array) #3 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(934): sfexecutionfilter->handleview(object(sffilterchain), object(performanceactions), 'success') #4 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): sfexecutionfilter->execute(object(sffilterchain)) #5 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/lib/vendor/symfony/lib/filter/sfcommonfilter.class.php(29): sffilterchain->execute() #6 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): sfcommonfilter->execute(object(sffilterchain)) #7 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/plugins/orangehrmcoreplugin/lib/filter/orangehrmpostexecutionfilter.php(22): sffilterchain->execute() #8 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): orangehrmpostexecutionfilter->execute(object(sffilterchain)) #9 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/apps/orangehrm/lib/filter/modulefilter.php(56): sffilterchain->execute() #10 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): modulefilter->execute(object(sffilterchain)) #11 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/plugins/orangehrmcoreplugin/lib/authorization/filter/ohrmauthorizationfilter.php(97): sffilterchain->execute() #12 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): ohrmauthorizationfilter->execute(object(sffilterchain)) #13 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/apps/orangehrm/lib/filter/sessioninfofetcherfilter.php(67): sffilterchain->execute() #14 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): sessioninfofetcherfilter->execute(object(sffilterchain)) #15 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/apps/orangehrm/lib/filter/orangei18nfilter.php(58): sffilterchain->execute() #16 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): orangei18nfilter->execute(object(sffilterchain)) #17 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/apps/orangehrm/lib/filter/exceptioncatcherfilter.php(26): sffilterchain->execute() #18 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): exceptioncatcherfilter->execute(object(sffilterchain)) #19 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/lib/vendor/symfony/lib/filter/sfbasicsecurityfilter.class.php(72): sffilterchain->execute() #20 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): sfbasicsecurityfilter->execute(object(sffilterchain)) #21 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(995): sffilterchain->execute() #22 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(1031): sfrenderingfilter->execute(object(sffilterchain)) #23 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(665): sffilterchain->execute() #24 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php(2352): sfcontroller->forward('performance', 'viewrequest') #25 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/lib/vendor/symfony/lib/util/sfcontext.class.php(170): sffrontwebcontroller->dispatch() #26 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/web/index.php(22): sfcontext->dispatch() #27 {main}
i have added line in above error message mention error point here. here should directory name empty(this added mention error point)
after spending lot of time on debugging, found out on live server, not showing directory name i.e directory variable empty. can should change setting/config or can possible reason this.
i assume absolute paths of old server , new server different. if case, following steps resolve problem.
- delete content in
/oranghrm/installation/path/symfony/cache
directory. - in command line, change directory
/oranghrm/installation/path/symfony/
- run command
php symfony cc
- make sure http server has write access
/oranghrm/installation/path/symfony/cache
,/oranghrm/installation/path/symfony/logs
, /oranghrm/installation/path/lib/confs directories.
Comments
Post a Comment