1

我将一个站点从本地移动到实时服务器。它在本地服务器上运行良好,但在实时服务器上导致页面崩溃。我已经清除了缓存。本地服务器和实时服务器上的一切都很好,除了实时服务器上的单页崩溃并出现错误

“发生内部错误。请联系您的系统管理员。”

当我检查以下消息中orangehrm.log的日志文件时symfony/log

2015 年 5 月 14 日星期四 12:29:13 PM GST,102 [1376] 错误 filter.ExceptionCatcherFilter - 未捕获的异常:异常 'sfRenderException' 带有消息'模板“ViewRequestSuccess.php”不存在或在“这里应该是目录”中不可读名称但它是空的(这是为了提及错误点而添加的)”。在 /var/zpanel/hostdata/some_app_name/public_html/hrm_something_com/symfony/cache/orangehrm/prod/config/config_core_compile.yml.php:2029
堆栈跟踪:
#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' , 大批)
#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), '成功')
#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 {主要}

我在上面的错误消息中添加了这一行,以在此处提及错误点。 这里应该是目录名,但它是空的(这是为了提到错误点而添加的)

在花了很多时间调试之后,我发现在实时服务器上,它没有显示目录名称,即目录变量为空。谁能帮助我应该在哪里更改设置/配置或可能的原因是什么。

4

1 回答 1

0

我假设旧服务器和新服务器的绝对路径不同。如果是这种情况,以下步骤将解决问题。

  1. 删除/oranghrm/installation/path/symfony/cache目录中的内容。
  2. 在命令行中,将目录更改为/oranghrm/installation/path/symfony/
  3. 运行命令php symfony cc
  4. 确保 http 服务器对/oranghrm/installation/path/symfony/cache,/oranghrm/installation/path/symfony/logs和 /oranghrm/installation/path/lib/confs 目录具有写入权限。
于 2016-10-06T13:04:45.617 回答