Addressed a bug in WordPress 5.4 and a custom post on HPB that prevented the block editor from working

⌛Time it takes to read this article: 5 minutesFixed HPB (Homepage Builder) theme program to address issues with Block Editor not available with WordPress 5.4 bug fixes and custom posts. Jetpack's Site Health also addressed the "imagick not installed" warning.

Fix old script of Facebook "Like button" on HPB20 / Deal with plug-ins that stopped working after upgrading WP & PHP (Native Emoji, RSS Image Feed)

⌛Time it takes to read this article: 4 minutesWe will explain how to fix the old script of the homepage builder's Facebook "Like" button and how to deal with plugins (Native Emoji, RSS Image Feed, Crayon Syntax Highlighter) that stopped working after upgrading WordPress & PHP.

Give up to Xperia and change model to Galaxy S9+ & correct dates of images and videos in SD card

⌛Time it takes to read this article: 2 minutesWe will explain in detail the migration process, such as correcting the date of images and videos on the SD card when you change your model from the Xperia Z5 to the Galaxy S9+. It also touches on my impressions of actually using the Galaxy S9+.

500 error in WordPress Super Cache plug-in update

⌛Time it takes to read this article: < 1 minutes当Webサイトのキャッシュを行うための有名なWordPressプラグイン「WP Super Cache」を最新版にアップグレードしたら、内部サーバーエラー(HTTP 500 Internal Server Error)が発生し、サイトがダウンしました。 原因の究明と復旧に3時間以上掛かってしまいました😰 原因ですが、以下の二つが考えられます。 1. PHPのバージョンが古い 以前、WordPressプラグイン「WordPress Related Posts」を更新した際、同様のエラーが発生しました。 ネットで調べたところ、WordPress Related PostsはPHP5.4以上でないとエラーが起こるそうです。 残念ながら、ここのレンタルサーバのPHPのバージョンは、Version 5.3.3なので、動作不可という事になります。 結局、このプラグインは停止させ、代わりのプラグイン「WordPress Popular Posts」を入れています。 2. WP Super Cacheの更新前にキャッシュを停止しなかった キャッシュ系のプラグインの更新に関しては、普段はキャッシュを停止してから、更新処理をすべきと考えます。 今回は不用意にキャッシュを動作させたままプラグインの更新を行いましたので、それにより何らかの不具合が発生したかもです。 以上ですが、私としては、「1」のPHPのバージョンの問題が一番怪しいような気がします。 いずれにせよ、このところ、WP Super Cacheは色々とトラブルが多いので、プラグンを削除する事にしました。 プラグインの削除は、DBの削除も必要となるため、一旦、バックアップしていた以前のバージョンのWP Super Cacheのプログラムに書き換え、管理画面からプラグインを削除してから、その他の関連ファイルも手動で削除しました。 しかし、このプラグイン、削除の処理もなかなか一筋縄ではいかず、復旧に至るまで大分てこずりました。 ちなみに、WP Super Cacheは、wp-config.php も書き換えているので、以下の2行を削除しFTPし直す必要があるのですが、この時、パーミッションの設定をミスしてしまい、サーバーがダウンしたままになりました。 WordPressの推奨設定では、通常、400または600なのですが、私のサーバーでは、404にしないと動作しませんでした。 これに気付くのに、3時間も掛かってしまいドツボに嵌りました。😱 define(‘WP_CACHE’, true); //Added by WP-Cache Manager define( ‘WPCACHEHOME’, ‘//’ ); //Added by WP-Cache Manager *10月16日 追記 その後、何らかのプラグインの更新を行った後、WordPressの管理画面へログインすると、また500エラーが発生しました。恐らくそのプラグインに原因があると思われます。 しかし、インストールされたプラグインが多すぎて、プラグインの特定に時間が掛かるため、FTPで一旦、“plugins”フォルダを“plugins___”にリネームすることで、管理画面へログインできるようにしました。 そして、“plugins”フォルダを元の名前に戻し、管理画面で無効化されたプラグインを一つ一つ有効化する事で無事、WordPressを元の状態に戻す事に成功しました! これまでやって来て分かった事ですが、WordPressは、メンテナンスが大変なので、素人は決して手を出さない方が良いかもですね😕