1

サイトをローカルからライブ サーバーに移動しました。ローカル サーバーでは問題なく動作していますが、ライブ サーバーではページ クラッシュが発生します。キャッシュをクリアしました。ライブサーバーでエラーが発生した単一ページのクラッシュを除いて、ローカルサーバーでもライブサーバーでもすべて問題ありません

「内部エラーが発生しました。システム管理者に連絡してください。」

次のメッセージorangehrm.log内のログファイルを確認すると表示されますsymfony/log

2015 年 5 月 14 日木曜日 12:29:13 PM GST,102 [1376] エラー filter.ExceptionCatcherFilter - キャッチされない例外: 例外 'sfRenderException' とメッセージ 'The template "ViewRequestSuccess.php" does not exist or is unreadable in "HERE SHOULD BE DIRECTORY" NAME BUT IT IS EMPTY (これはエラー ポイントに言及するために追加されています)".' /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('パフォーマンス', '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 に答える