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

管理画面からのリンクが全てNot Foundになる

eyesys > 管理画面からのリンクが全てNot Foundになる @ 2018/7/18 17:18
始めまして、baserCMSを使ってあるサイトを運営していたのですが
先日管理画面にログインしたところ、管理画面からの管理機能リンクが
全てNot Foundになってしまいました。
修正方法をご存じの方の方がおられたら、ご教授いただけませんでしょうか?

-----------------------------------------------------------------------------------------------
■リンク先にて表示されるエラーメッセージ

Not Found
エラー: The request sent to the address '/admin/dashboard/admin/pages/index' was invalid.
-----------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------
■debug.logに記載されていたメッセージ

2018-07-15 11:02:36 Notice: Notice (8): Undefined variable: url in [/home/*****/www/*****/lib/Baser/View/Helper/BcBaserHelper.php, line 1491]
Trace:
BcBaserHelper::getUri() - CORE/Baser/View/Helper/BcBaserHelper.php, line 1491
include - APP/webroot/theme/*****/Pages/index.php, line 29
View::_evaluate() - CORE/Cake/View/View.php, line 954
BcAppView::evaluate() - CORE/Baser/View/BcAppView.php, line 438
BcPageHelper::content() - CORE/Baser/View/Helper/BcPageHelper.php, line 433
include - CORE/Baser/View/Pages/templates/default.php, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 954
View::_render() - CORE/Cake/View/View.php, line 916
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
PagesController::display() - CORE/Baser/Controller/PagesController.php, line 666
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 151

2018-07-15 11:02:36 Notice: Notice (8): Undefined variable: url in [/home/*****/www/*****/lib/Baser/View/Helper/BcBaserHelper.php, line 1483]
Trace:
BcBaserHelper::getUri() - CORE/Baser/View/Helper/BcBaserHelper.php, line 1483
include - APP/webroot/theme/*****/Pages/index.php, line 30
View::_evaluate() - CORE/Cake/View/View.php, line 954
BcAppView::evaluate() - CORE/Baser/View/BcAppView.php, line 438
BcPageHelper::content() - CORE/Baser/View/Helper/BcPageHelper.php, line 433
include - CORE/Baser/View/Pages/templates/default.php, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 954
View::_render() - CORE/Cake/View/View.php, line 916
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
PagesController::display() - CORE/Baser/Controller/PagesController.php, line 666
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 151
-----------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------
■error.logに記載されていたメッセージ
2018-07-16 21:58:49 Warning: Warning (2): Missing argument 1 for BcBaserHelper::getUri(), called in /home/*****/www/*****/app/webroot/theme/*****/Pages/index.php on line

15 and defined in [/home/*****/www/*****/lib/Baser/View/Helper/BcBaserHelper.php, line 1482]
Trace:
BcBaserHelper::getUri() - CORE/Baser/View/Helper/BcBaserHelper.php, line 1482
include - APP/webroot/theme/*****/Pages/index.php, line 15
View::_evaluate() - CORE/Cake/View/View.php, line 954
BcAppView::evaluate() - CORE/Baser/View/BcAppView.php, line 438
BcPageHelper::content() - CORE/Baser/View/Helper/BcPageHelper.php, line 433
include - CORE/Baser/View/Pages/templates/default.php, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 954
View::_render() - CORE/Cake/View/View.php, line 916
View::render() - CORE/Cake/View/View.php, line 473
Controller::render() - CORE/Cake/Controller/Controller.php, line 959
PagesController::display() - CORE/Baser/Controller/PagesController.php, line 666
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
[main] - APP/webroot/index.php, line 151
-----------------------------------------------------------------------------------------------

■使用サーバー:さくらインターネット
■PHPバージョン:PHP 5.6.36 (CGI版)
■データベース バージョン: MySQL 5.5
■BacerCMSバージョン:不明

お手数おかけしますが、何卒ご協力の程、よろしくお願い致します。
tommy6073 > Re: 管理画面からのリンクが全てNot Foundになる @ 2018/7/19 10:25
こんにちは、tommy6073です。

エラーのアドレスを見ると、以前質問のあったこちらの現象と同じ可能性があります:
管理画面からのリンクが「ページがみつかりません。」となる。

こちらに書いてある、以下の作業を試してみてください。

引用:
app/Config/install.phpの中の、Configure::write('BcEnv.sslUrl', '');にBcEnv.siteUrlと同じ値を設定することで正常に動作するようになったようです。

例)
Configure::write('BcEnv.siteUrl', 'https://example.com/');
Configure::write('BcEnv.sslUrl', 'https://example.com/');
eyesys > Re: 管理画面からのリンクが全てNot Foundになる @ 2018/7/19 11:05
tommy6073様、ご回答いただきありがとうございます。

ご教授していただきました内容の通り修正を行ったところ、各ページへのリンクは正常になったのですが
1点だけ問題がありまして、サーバーキャッシュ削除をクリックして実行しようとするとトップページに飛んでしまいます。

リンク先はカーソルを合わせると、*****.com/admin/site_configs/del_cacheと表示されているので、どうやらリダイレクトしているようなのですが
何か原因などは考えられますでしょうか?

ちなみに本サイトはhttpsで見れるようにしているのですが
install.php内の記述は
Configure::write('BcEnv.siteUrl', 'http://*****.com/');
Configure::write('BcEnv.sslUrl', 'http://*****.com/');
とhttpで記述してあるので

例のように
Configure::write('BcEnv.siteUrl', 'https://example.com/');
Configure::write('BcEnv.sslUrl', 'https://example.com/');
とhttps始まりで記述したほうがよろしいのでしょうか?

何度もお尋ねして申し訳ございませんが、何卒よろしくお願いいたします。
tommy6073 > Re: 管理画面からのリンクが全てNot Foundになる @ 2018/7/19 16:17
引用:
https始まりで記述したほうがよろしいのでしょうか?

そうですね。サイトがhttpsで見られるように対応されているのであれば、BcEnv.sslUrlはhttps始まりで記述してください。
また、システム管理でオプションを押して表示される「管理画面SSL設定」で「SSL通信を利用する」の方を選択した状態にしてください(添付画像をご参考ください)。

これらの変更でサーバーキャッシュ削除が正常に動作するようになるかは分かりませんが、ひとまずお試しください。


eyesys > Re: 管理画面からのリンクが全てNot Foundになる @ 2018/7/19 17:47
ご返信いただきまして、ありがとうございます。

BcEnv.sslUrlをhttps始まりに修正したところ、サーバーキャッシュ削除が正常に動作するようになりました。

何度も丁寧にご教授していただき、ありがとうございました。
ログイン
ユーザー名:
パスワード:


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

検索

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

フォーラムガイド


関連リンク

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

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