Title: php errors
Last modified: May 29, 2023

---

# php errors

 *  Resolved [contremaitre](https://wordpress.org/support/users/contremaitre/)
 * (@contremaitre)
 * [3 years ago](https://wordpress.org/support/topic/php-errors-295/)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [3 years ago](https://wordpress.org/support/topic/php-errors-295/#post-16778599)
 * 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](https://wordpress.org/support/users/contremaitre/)
 * (@contremaitre)
 * [3 years ago](https://wordpress.org/support/topic/php-errors-295/#post-16778700)
 * Hello,
 * I already done that. I tried one more time, the errors are still there.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [3 years ago](https://wordpress.org/support/topic/php-errors-295/#post-16780151)
 * Sorry, I should have better read your initial message.
   I wonder if you don’t 
   experience something like [https://wordpress.org/support/topic/phantom-languages-appeared-cannot-remove/](https://wordpress.org/support/topic/phantom-languages-appeared-cannot-remove/)
   Could you try updatng to the version 3.4.2?
 *  Thread Starter [contremaitre](https://wordpress.org/support/users/contremaitre/)
 * (@contremaitre)
 * [3 years ago](https://wordpress.org/support/topic/php-errors-295/#post-16780686)
 * 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.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [contremaitre](https://wordpress.org/support/users/contremaitre/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/php-errors-295/#post-16780686)
 * Status: resolved