• Resolved contremaitre

    (@contremaitre)


    Hello,

    I changed my site url, and I now have PHP warnings when I am logged in :

    Warning: Invalid argument supplied for foreach() in /home/…/public_html/wp-content/plugins/polylang/include/language-factory.php on line 161

    Warning: Invalid argument supplied for foreach() in /home/…/public_html/wp-content/plugins/polylang/include/language-factory.php on line 161

    etc…

    This breaks my site layout, unless I disable these warnings.

    I tried to re-save langage url in polylang settings, but it did not change anything.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Hello,

    Go to Languages > Settings > URL Modifications and resave your settings.
    This operation should have been done programmatically during the update, but for some reason, it doesn’t work on some sites.

    Thread Starter contremaitre

    (@contremaitre)

    Hello,

    I already done that. I tried one more time, the errors are still there.

    Plugin Author Chouby

    (@chouby)

    Sorry, I should have better read your initial message.
    I wonder if you don’t experience something like https://ww.wp.xz.cn/support/topic/phantom-languages-appeared-cannot-remove/
    Could you try updatng to the version 3.4.2?

    Thread Starter contremaitre

    (@contremaitre)

    Hello,

    Before updating I checked another time for the errors and they have disapeared, no idea why… I updated anyway and everything is fine now.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘php errors’ is closed to new replies.