Simplicityの特徴 › フォーラム › Simplicity2に関する話題何でも › PHP7.3変更にともなうPCサイトの表示崩れ
- このトピックは空です。
-
投稿者投稿
-
-
2024年7月20日 4:10 PM #62435
司 真
ゲスト初めまして、2年近くsimplicity2を利用させていただいております。
https://tukasamakoto.com/(利用中のブログ)
最近、サーバーからPHPを7.1(CGI版)から7.3(CGI版)に変更したところ、不具合が発生しました。
具体的には、PCサイトの表示が崩れて、画像などが全く表示されなくなりました。
PHP7.1での表示は以下のようになっています。
https://gyazo.com/3e19e8074083fcf95688ae3faf310e81
PHP7.3に変更すると以下のように崩れてしまいます
https://gyazo.com/6f7beaeb943387ee919ce46583db76fc
サーバー(ロリポップサーバー)の方に相談したところ、プラグインに原因がある可能性があるということで
PHP Compatibility Checkerを導入して、PHP7.3に適性のないプラグインはないか調べました。
警告がついたプラグインは、動作を停止させています。そして、simplicity2の親テーマにも、警告が7つ、ついていました。子テーマは「互換性あり」のみの表示でした。
simplicity2は、バージョン2.8.6.1でダウンロードしなおしましたが、警告の内容は変わりませんでした。警告の詳細は以下のようになっていました。
FILE: /home/users/1/main.jp-5285a9a951b8d2b9/web/wp-content/themes/simplicity2/before-main.php
———————————————————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————————————————————————-
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————————————————————————————————————————-FILE: /home/users/1/main.jp-5285a9a951b8d2b9/web/wp-content/themes/simplicity2/lib/thread.php
———————————————————————————————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
———————————————————————————————————————————————————————————-
1 | WARNING | No PHP code was found in this file and short open tags are not allowed by this install of PHP. This file may be using short open tags but PHP does not allow them.
———————————————————————————————————————————————————————————-FILE: /home/users/1/main.jp-5285a9a951b8d2b9/web/wp-content/themes/simplicity2/lib/php-html-css-js-minifier.php
——————————————————————————————————————————————————————-
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
-
-
投稿者投稿
- このトピックに返信するにはログインが必要です。