エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Smartyを3.1.27から3.1.28アプデにしたらFatal error: Uncaught --> Smarty: Unable to load template file 〇〇.tpl'' <-- が出た話 - まさかリスト
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Smartyを3.1.27から3.1.28アプデにしたらFatal error: Uncaught --> Smarty: Unable to load template file 〇〇.tpl'' <-- が出た話 - まさかリスト
Smartyを3.1.27から3.1.28アプデにしたら Fatal error: Uncaught --> Smarty: Unable to load template ... Smartyを3.1.27から3.1.28アプデにしたら Fatal error: Uncaught --> Smarty: Unable to load template file 'index.tpl' <--が出て困りました。 原因 クラス変数に値を直接代入していた。 $smarty->template_dir = '/templates'; $smarty->compile_dir = '/templates_c'; 解決策 $smarty->setCompileDir('/templates_c'); $smarty->setTemplateDir('/templates'); 感謝 Smarty 3系では「$cache_dir/$compile_dir/$config_dir/$plugins_dir/$template_dir」のクラス変数に値を直接代入してはいけない!? |