bacerCMSのV4への移行完了

何とか終わった。

バージョンアップしたサイトは→Fermo

基本的には「nada icons」ほぼそのままなので、見た目の変更は一切無く、スマホサイトが追加されただけです。
ただ、スマホサイトのブロブ記事がどうしてもスマホサイト用に飛ばなかったので、.htaccessへ追記しました。

RewriteEngine on
RewriteBase /base
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android.*Mobile|Windows.*Phone) [NC]
RewriteRule ^news/archives/(.*)$ s/news/archives/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android.*Mobile|Windows.*Phone) [NC]
RewriteRule ^product/archives/(.*)$ s/product/archives/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

あれ?スマホサイトにコメントが表示されていない🤔
後日対応しよう。

【2019年3月11日9時27分追記】
スマホサイトのコメントは未だ解決できていません。

  • 開発環境(Windows)では出てる。
  • テスト環境(CentOS6, MySQL5.6, PHP5.6)では出ない。
  • 本番環境(ロリポップ, PHP5.6)も出てない。

それと、Androidタブレット端末はスマホサイト表示だったようなので、.htaccessを修正しました。

RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|Windows.*Phone) [NC]
RewriteRule ^news/archives/(.*)$ s/news/archives/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_USER_AGENT} (iPhone|iPod|Android|Windows.*Phone) [NC]

【2019年3月11日16時32分追記】
テスト環境でデバッグモード1でアクセスしたら、

Warning (2): include(/var/www/vhosts/fermo-jp.test/public_html/base/lib/Baser/Plugin/blog/View/Elements/blog_comment.php): failed to open stream: そのようなファイルやディレクトリはありません [CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18]
Code Context
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
include - CORE/Baser/Plugin/Blog/View/Elements/blog_comments.php, line 32
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comments.php, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
Warning (2): include() [<a href='http://php.net/function.include'>function.include</a>]: Failed opening '/var/www/vhosts/fermo-jp.test/public_html/base/lib/Baser/Plugin/blog/View/Elements/blog_comment.php' for inclusion (include_path='/var/www/vhosts/fermo-jp.test/public_html/base/lib:.:/usr/share/pear:/usr/share/php') [CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18]
Code Context
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
include - CORE/Baser/Plugin/Blog/View/Elements/blog_comments.php, line 32
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comments.php, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
Warning (2): include(/var/www/vhosts/fermo-jp.test/public_html/base/lib/Baser/Plugin/blog/View/Elements/blog_comment.php) [<a href='http://php.net/function.include'>function.include</a>]: failed to open stream: そのようなファイルやディレクトリはありません [CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18]
Code Context
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
include - CORE/Baser/Plugin/Blog/View/Elements/blog_comments.php, line 32
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comments.php, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
Warning (2): include() [<a href='http://php.net/function.include'>function.include</a>]: Failed opening '/var/www/vhosts/fermo-jp.test/public_html/base/lib/Baser/Plugin/blog/View/Elements/blog_comment.php' for inclusion (include_path='/var/www/vhosts/fermo-jp.test/public_html/base/lib:.:/usr/share/pear:/usr/share/php') [CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18]
Code Context
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comment.php, line 18
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613
include - CORE/Baser/Plugin/Blog/View/Elements/blog_comments.php, line 32
include - CORE/Baser/Plugin/Blog/View/Elements/smartphone/blog_comments.php, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 971
BcAppView::_evaluate() - CORE/Baser/View/BcAppView.php, line 525
View::_render() - CORE/Cake/View/View.php, line 933
View::_renderElement() - CORE/Cake/View/View.php, line 1224
View::element() - CORE/Cake/View/View.php, line 418
BcBaserHelper::getElement() - CORE/Baser/View/Helper/BcBaserHelper.php, line 576
BcBaserHelper::element() - CORE/Baser/View/Helper/BcBaserHelper.php, line 613

のエラーが出た。
この辺を探っていくか。

【2019年3月11日17時23分追記】
「nada_icons/Elements」に「blog_comment.php」と「smartphone/blog_comment.php」をアップロードしたら表示されました。😄👍

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です