• 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 9
    Warning: Invalid argument supplied for foreach() in /home/ekgqle4yullkkmpf/public_html/new/wp-content/plugins/polylang-off/include/model.php on line 220
    lang=”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 to see the link]

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

    (@chouby)

    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

    (@vermiinette)

    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.