Un utilisateur a demandé 👇
[Thu Jan 10 13:50:38.897684 2019] [php7:warn] [pid 31802] [client IP:PORT] PHP Warning: count(): Parameter must be an array or an object that implements Countable /site_path/wp-content/plugins/cloudflare/src/WordPress/Hooks.php on line 133, referer: https://test.site/members/username/invite-anyone/
– Cloudflare 3.3.2 – WordPress 5.0.2 – PHP 7.2.13-1 + ubuntu16.04.1 + deb.sury.org + 1
(@jojopa)
il y a 1 an, 10 mois
Le plugin ne fonctionne pas avec 7.2 ou 7.3. et répondez 0 à toute mise à jour ou résolution, pendant environ un an et 11 mois. Débarrassez-vous du plugin et corrigez le problème.
(@aveugle)
il y a 1 an, 9 mois
Ceci est juste un avertissement PHP, le nettoyage devrait fonctionner comme d’habitude. Habituellement, cela ne s’applique qu’à un problème de codage mineur, voir https://github.com/php/php-src/pull/1672
Il est connecté à cette ligne
if (count($wpDomain) <= 0) {
Tu peux essayer de le changer en
if ($wpDomain && count($wpDomain) <= 0) {
(@airathalitov)
il y a 1 an, 9 mois
@aveugle
Tu peux essayer de le changer en…
Cette ligne n’est pas une aide.
(@airathalitov)
il y a 1 an, 9 mois
Et si vous passiez à cette ligne ?if (is_array($wpDomain) && count($wpDomain) <= 0) {
Exemple : https://github.com/guzzle/guzzle/pull/2038/files
Cette réponse a été modifiée il y a 1 an et 9 mois.
(@airathalitov)
il y a 1 an, 9 mois
Solution:
https://github.com/cloudflare/Cloudflare-WordPress/issues/224
https://github.com/cloudflare/Cloudflare-WordPress/pull/227
(@airathalitov)
il y a 1 an, 8 mois
Corrigé sur https://github.com/cloudflare/Cloudflare-WordPress/pull/231
Cela a-t-il résolu votre problème ?
Was this helpful?
0 / 0