rankmath / seo-by-rank-math

Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
https://rankmath.com
107 stars 52 forks source link

PHP errors were triggered during an Ajax request. #56

Closed thegulshankumar closed 3 years ago

thegulshankumar commented 3 years ago

How to repro?

image

`2021/01/16 18:38:55 [error] 545#545: *10323 FastCGI sent in stderr: "PHP message: PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/wp-content/plugins/seo-by-rank-math/includes/modules/instant-indexing/class-api.php on line 84" while reading response header from upstream, client: 45.79.121.31, server: example.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "www.example.com", referrer: "https://www.example.com/wp-admin/edit.php`

Temporary Solution

How to not get this error?

Please fix this issue.

I am using PHP 7.4-fpm NGINX