Hello,
Could you please share us the full warning message ? or the debug.log with the warning?
I’ve just tried and unfortunately, I can’t reproduce
Thank you
Thread Starter
STBANz
(@stbanz)
Bonjour 🙂
Voici le message :
Warning: Invalid argument supplied for foreach() in /Users/stban/Sites/icf/multisite/wp-content/plugins/polylang/include/language-factory.php on line 161
Warning: Invalid argument supplied for foreach() in /Users/stban/Sites/icf/multisite/wp-content/plugins/polylang/include/model.php on line 283
Hello, Same for us on this site: https://vertumno.ch/
It’s a multisite too
Warning: Undefined array key “flag_code” in/home/customer/www/wp.owl-in.club/public_html/wp-content/plugins/polylang/include/language-factory.phpon line118
Warning: Undefined array key “locale” in/home/customer/www/wp.owl-in.club/public_html/wp-content/plugins/polylang/include/language-factory.phpon line118
-
This reply was modified 3 years ago by
hydropik.
Plugin Author
Chouby
(@chouby)
Hello,
@stbanz I don’t see what could prevent you to login. I would be surprised that it is related to your warnings. These warnings mean that a Polylang transient pll_languages_list has not been refreshed during this update. It should have been but it looks like there are circumstances where this doesn’t work. So these warnings should disappear if you go to Languages > Settings > URL modifications and resave your options or if you manually delete the transient in the database.
For the login issue, I have no hint so I suggest to look for a conflict.
@hydropik your issue is not at all the same. Given your warnings it looks more like https://ww.wp.xz.cn/support/topic/phantom-languages-appeared-cannot-remove/
Thread Starter
STBANz
(@stbanz)
Thanks for your answer @chouby .
If I rename the polylang directory, I can log in (because polylang is disabled).
If I reactivate polylang, I am still in the admin. But if I logout, I have the same warnings again. I don’t understand why I can see warnings even with define( ‘WP_DEBUG’, false ) in the wp-config.
I tried to add ini_set(‘display_errors’,’off’); in the wp-config.php and it works, I can now log in.