Title: Polylang Causes Fatal Errors
Last modified: March 20, 2023

---

# Polylang Causes Fatal Errors

 *  [vermiinette](https://wordpress.org/support/users/vermiinette/)
 * (@vermiinette)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/polylang-causes-fatal-errors/)
 *     ```wp-block-code
       I have been using Polylang on this website since November, it worked well until a couple of weeks ago when it started causing errors on the site. I tried to re-install but that didn’t work either. Below is a screenshot of the errors I get. This is worrisome as we were considering upgrading to the pro version since we rely on the plugin for 3 languages, and for other websites. Please let us know what can be done.
   
       Below is a preview of the warnings it generates once activated :
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php on line 146
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/links-model.php on line 199
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php on line 220
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php on line 220
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/nav-menu.php on line 93
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/nav-menu.php on line 93
   
       Warning: Cannot modify header information – headers already sent by (output started at /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php:146) in /home/ekgqle4yullkkmpf/public_html/new/wp-admin/includes/misc.php on line 1416
   
       Warning: Cannot modify header information – headers already sent by (output started at /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php:146) in /home/ekgqle4yullkkmpf/public_html/new/wp-includes/functions.php on line 6865
   
       Warning: Cannot modify header information – headers already sent by (output started at /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php:146) in /home/ekgqle4yullkkmpf/public_html/new/wp-admin/admin-header.php on line 9Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php on line 220lang=”en-US”>Notice: Trying to get property ‘slug’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 91
   
       Notice: Trying to get property ‘name’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 92
   
       Notice: Trying to get property ‘home_url’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 93
   
       Notice: Trying to get property ‘name’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 100
   
       Notice: Trying to get property ‘slug’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 101
   
       Notice: Trying to get property ‘locale’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 102
   
       Notice: Trying to get property ‘term_id’ of non-object in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/connect-polylang-elementor/includes/finder/polylang-category.php on line 108
   
       Warning: array_merge(): Argument #2 is not an array in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/admin/admin-base.php on line 504
   
       Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/admin/admin-base.php on line 523
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpolylang-causes-fatal-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/polylang-causes-fatal-errors/#post-16579867)
 * Hello,
 * These warnings occur because Polylang receive unexpected data for languages from
   your database. One possible solution could be to resave your the URL settings
   in Languages > Settings. This will regenerate the database row where we save 
   the languages cache.
   There are however a risk that this will not work:1. If a
   3rd party plugin filters the data read from the database. In that case, you’ll
   need to identify the confliting plugin.2. if your database has been corrupted.
 *  Thread Starter [vermiinette](https://wordpress.org/support/users/vermiinette/)
 * (@vermiinette)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/polylang-causes-fatal-errors/#post-16644843)
 * I did the language settings thing which seems to have fixed the errors but now
   all my URLs give me a 404 error

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

The topic ‘Polylang Causes Fatal 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [vermiinette](https://wordpress.org/support/users/vermiinette/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/polylang-causes-fatal-errors/#post-16644843)
 * Status: not resolved