【環境情報】
・baserCMSのバージョン:5.0.18
・レンタルサーバー名:さくらインターネット レンタルサーバースタンダードプラン
・使用テーマ:bc_sample
・PHPスキル(自己評価):E
1,HOME/www/baser5にインストールし、当該フォルダにtest.domain.comを割り当て。
2、環境構築後、HOME/www/baser5にdomain.comを割り当て。
3,CMSの設定URLをdomain.comに更新。
4,tmp、LogフォルダをSSHより削除。bin/cake plugin assets symlink`を実行
5,その後、固定ページ情報から編集を行い、保存ボタンを押すと書きエラーが出る。
なお、URL設定をtest.domain.comに変えてアクセスすると、正常に更新できる。
また、5.1への更新に失敗し動かなくなったため、domain.comにクリーンインストールしてバックアップから復元しても症状の変化無し。再度、4の作業を行うも変化無し。
.envのURLはdomain.comになっている。
どこか見落としなど有りますでしょうか?
Forbidden
The server refuse to browse the page.
The URL or value may not be correct. Please confirm the value.
TIME: 1721530041.237257 (2024-07-21 11:47:21 (+0900))
METHOD: POST
PATH_QUERY: /baser/admin/baser-core/pages/edit/15/content_id:22/parent_id:1
SAKURA Internet Inc.
関係しそうな情報を追記しておきます。
・ブログ、メールフォームは正常に更新できる。
・設定ーユーティリティでツリー構造をチェック→ログを確認するようにとエラーが出る。
ツリー構造をリセットし再度チェック→同様のエラーが出る。
以下デバッグログです。IPは削っています
2024-07-25 10:11:39 debug: Since 5.0.0: Calling findAll
finder with options array is deprecated. Use named arguments instead.
/home/baian/www/baser5/vendor/cakephp/cakephp/src/ORM/Table.php, line: 2645
You can disable all deprecation warnings by setting Error.errorLevel
to E_ALL & ~E_USER_DEPRECATED
. Adding vendor/cakephp/cakephp/src/ORM/Table.php
to Error.ignoredDeprecationPaths
in your config/app.php
config will mute deprecations from that file only.
Request URL: /baser/api/admin/bc-favorite/favorites/index.json
Referer URL:
Client IP:
Trace:
/home/baian/www/baser5/vendor/cakephp/cakephp/src/Core/functions.php /home/baian/www/baser5/vendor/cakephp/cakephp/src/Core/functions.php, line 325
/home/baian/www/baser5/vendor/cakephp/cakephp/src/ORM/Table.php /home/baian/www/baser5/vendor/cakephp/cakephp/src/ORM/Table.php, line 2713
Cake\ORM\Table->invokeFinder() /home/baian/www/baser5/vendor/cakephp/cakephp/src/ORM/Table.php, line 2645
Cake\ORM\Table->callFinder() /home/baian/www/baser5/vendor/cakephp/cakephp/src/ORM/Table.php, line 1294
Cake\ORM\Table->find() /home/baian/www/baser5/vendor/baserproject/baser-core/src/Model/Table/AppTable.php, line 132
BaserCore\Model\Table\AppTable->find() /home/baian/www/baser5/vendor/baserproject/bc-favorite/src/Service/FavoritesService.php, line 74
BcFavorite\Service\FavoritesService->getIndex() /home/baian/www/baser5/vendor/baserproject/bc-favorite/src/Controller/Api/Admin/FavoritesController.php, line 68
BcFavorite\Controller\Api\Admin\FavoritesController->index() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Controller/Controller.php, line 498
Cake\Controller\Controller->invokeAction() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 139
Cake\Controller\ControllerFactory->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Controller/ControllerFactory.php, line 114
Cake\Controller\ControllerFactory->invoke() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/BaseApplication.php, line 332
Cake\Http\BaseApplication->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 86
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/baserproject/baser-core/src/Middleware/BcRedirectSubSiteMiddleware.php, line 74
BaserCore\Middleware\BcRedirectSubSiteMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/baserproject/baser-core/src/Middleware/BcFrontMiddleware.php, line 51
BaserCore\Middleware\BcFrontMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/baserproject/baser-core/src/Middleware/BcAdminMiddleware.php, line 45
BaserCore\Middleware\BcAdminMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Middleware/CsrfProtectionMiddleware.php, line 169
Cake\Http\Middleware\CsrfProtectionMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/authentication/src/Middleware/AuthenticationMiddleware.php, line 87
Authentication\Middleware\AuthenticationMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Middleware/BodyParserMiddleware.php, line 157
Cake\Http\Middleware\BodyParserMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Routing/Middleware/RoutingMiddleware.php, line 118
Cake\Routing\Middleware\RoutingMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/baserproject/baser-core/src/Middleware/BcRequestFilterMiddleware.php, line 75
BaserCore\Middleware\BcRequestFilterMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Routing/Middleware/AssetMiddleware.php, line 78
Cake\Routing\Middleware\AssetMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Error/Middleware/ErrorHandlerMiddleware.php, line 115
Cake\Error\Middleware\ErrorHandlerMiddleware->process() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 82
Cake\Http\Runner->handle() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Runner.php, line 67
Cake\Http\Runner->run() /home/baian/www/baser5/vendor/cakephp/cakephp/src/Http/Server.php, line 103
Cake\Http\Server->run() /home/baian/www/baser5/webroot/index.php, line 42
[main]
WAFが有効になっていたのを見落としていました。
無効にしたところ、無事動作しました。
「いいね!」 1