■ユーザーズフォーラム リニューアルのお知らせ
新規投稿は新ユーザーズフォーラムにお願いします。

Error: [MissingControllerException] Controller class FontsController could not be found.

manhoo > Error: [MissingControllerException] Controller class FontsController could not be found. @ 2019/2/20 9:16
いつもありがとうございます。
以下のエラーが、error.log に出てきています。
どこ修正すればいいか分かりません、よろしくお願いします。

エラー1
2019-02-20 06:31:33 Error: [MissingControllerException] Controller class FontsController could not be found.
Exception Attributes: array (
  'class' => 'FontsController',
  'plugin' => NULL,
)
Request URL: /fonts/D-Standard.ttf?-64c2hw=
Stack Trace:
#0 /home/virtialler/www/index.php(163): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}


エラー2
2019-02-19 22:30:02 Error: [MissingControllerException] Controller class ThemeController could not be found.
Exception Attributes: array (
  'class' => 'ThemeController',
  'plugin' => NULL,
)
Request URL: /index.php/theme/bg03/js/theme/bg03/js/module.manager.js
Stack Trace:
#0 /home/virtialler/www/index.php(163): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#1 {main}

Request URL: /index.php/theme/bg03/js/theme/bg03/js/startup.js
Request URL: /index.php/theme/bg03/js/theme/bg03/js/baser.min.js
Request URL: /index.php/theme/bg03/css/theme/bg03/css/theme.css
Request URL: /index.php/theme/bg03/css/theme/bg03/css/common.css
Request URL: /index.php/theme/bg03/js/theme/bg03/js/jquery-1.11.1.min.js
Request URL: /index.php/theme/bg03/css/theme/bg03/css/base.css

■ BaserCMSのバージョン:4.1.6
■ サーバー名:さくらレンタルサーバー
■ テーマ:Simple Company 03
■ 設置フォルダ:ROOT
■ データベース:MySQL
■ PHPスキル(自己評価):C

seto > Re: Error: [MissingControllerException] Controller class FontsController could not be found. @ 2019/2/20 12:39
こんにちは

以下の2ファイルが存在していないためエラーになっているようです。
/fonts/D-Standard.ttf?-64c2hw=
/theme/bg03/js/theme/bg03/js/module.manager.js

ファイルを再設置するか、ファイルを呼び出さないようにテーマを修正すると解決します。
manhoo > Re: Error: [MissingControllerException] Controller class FontsController could not be found. @ 2019/2/20 14:08
ありがとうございます。

/fonts/D-Standard.ttf?-64c2hw=
このfontsの意味が分かりません、どこから入手、どこに配置しますでしょうか。

/index.php/theme/bg03/js/theme/bg03/js/module.manager.js
bg03/js/module.manager.jsは既にサーバーに存在します。
よく確認しますと、「/theme/bg03/js」は2回出ています。
「/index.php」が付いていますが、よろしくお願い申し上げます。

■ BaserCMSのバージョン:4.1.6
■ サーバー名:さくらレンタルサーバー
■ テーマ:Simple Company 03
■ 設置フォルダ:ROOT
■ データベース:MySQL
■ PHPスキル(自己評価):C

seto > Re: Error: [MissingControllerException] Controller class FontsController could not be found. @ 2019/2/21 10:19
D-Standard.ttf はテーマのどこかに記載があると思うのですが、使用していないようなら読み込んでる箇所を削除かコメントアウトでいいと思います。
テーマ内で "D-Standard" で全文検索してみてください。

module.manager.js は確かにパスが変ですね。
多分manhooさんが以前投稿した "「index.php」が表示されるエラー" が発生したページからjsを読み込もうとした際に、jsのパスもおかしくなるんだと思います。
これもhtaccessでリダイレクトを書くのが良さそうです。

/index.php/theme/bg03/js/theme/bg03/js/module.manager.js
->
/theme/bg03/js/module.manager.js
manhoo > Re: Error: [MissingControllerException] Controller class FontsController could not be found. @ 2019/2/21 12:34
ありがとうございました。
最初からテーマbg03にFonts/D-Standard.ttfを配置されていないことですね。
コメントアウトとリダイレクトで対応させていただきました。

"「index.php」が表示されるエラー"の件は、時間がある時新しいバージョンで再インストールしてみます。
大変そうですが、ミスがないように祈ります。
またよろしくお願いいたします。

■ BaserCMSのバージョン:4.1.6
■ サーバー名:さくらレンタルサーバー
■ テーマ:Simple Company 03
■ 設置フォルダ:ROOT
■ データベース:MySQL
■ PHPスキル(自己評価):C

ログイン
ユーザー名:
パスワード:


  新規登録 / パスワード紛失

検索

facebook
フォーラムで悩みが解決した場合など、よかったら「いいね!」をポチっとクリックしてください!質問の回答者や開発者の励みになります

フォーラムガイド


関連リンク

オンライン状況
34 人のユーザが現在オンラインです。 (34 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 34