PHP Compatibility Checkerが動かない場合の対処法

うちのスタッフから
「PHP Compatibility Checkerが動かないんです!!」って言われて、
ちょっと調べたときのメモ。

どうやら、phpのバージョン変更に影響がないか調べていたようで、
上記のプラグインを使用して問題をチェックしようとしていたとのこと。

プラグイン導入後、「サイトをスキャン」を押下しても何も起きない・・・

phpのメモリの影響でのタイムアウトとかの問題かな~と思いながら調べてたんですが、

公式ドキュメントに英語だけど対応方法が書いてあった。

The scan is stuck, what can I do?

The PHP Compatibility Checker relies on WP-Cron to process plugins/themes in batches, this is necessary to avoid server timeouts. The scan will get stuck if your site’s WP-Cron isn’t functioning. You can look into this using WP Crontrol. The cron is called wpephpcompat_start_test_cron. This could also be an issue if your site is using basic authentication.

You can also use the WP-CLI command or disable the timeout to avoid using WP-Cron.

とのこと。
スキャンが詰まっちゃうときは、wpコントロールを入れて、wpephpcompat_start_test_cronを読んでくれとのこと。

上記「WP Crontrol」のプラグインを入れて

「wpephpcompat_start_test_cron」をフックに追加したら無事動きました。
困っている人がいましたら、お試しください~。

役に立った 0

役に立ったボタン設置してみました。是非押していってくださいm(__)m(2020年4月設置)

この記事を書いた人

mako110

原宿でWEBディレクターをやっています。
WEB業界に携わって約15年。独立して7年目です。
自分らしく、働きやすく、周りの人の役に立つ。
そんな仕事をゆるゆるとやっています。