• Resolved dopblog

    (@dopblog)


    Dear Polylang crew,

    I’m running Polylang on this site and need to update it to PHP 8.0.
    But after I do that the site stops working… See error message below.
    When deactivating Polylang the problem does not occur.

    I’m using the Theme Laytheme and all plugins are up-to-date.
    Any ideas on what I could do now?

    Thank you so much! — Ben

    ____

    Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid
    comparison operator in /homepages/36/d812209104/htdocs/PRACTICE844579/wp-
    content/plugins/polylang-slug/polylang-slug.php:31Stacktrace:#0
    /homepages/36/d812209104/htdocs/PRACTICE844579/wp-content/plugins/polylang-
    slug/polylang-slug.php(31):version_compare('3.2.1','1.7','=<')#1
    /homepages/36/d812209104/htdocs/PRACTICE844579/wp-settings.php(418):
    include_once('/homepages/36/d...')#2
    /homepages/36/d812209104/htdocs/PRACTICE844579/wp-config.php(86):
    require_once('/homepages/36/d.…')#3
    /homepages/36/d812209104/htdocs/PRACTICE844579/wp-load.php(50):
    require_once(/homepages/36/d.')#4
    /homepages/36/d812209104/htdocs/PRACTICE844579/wp-blog-header.php(13):
    require_once('/homepages/36/d..')#5
    /homepages/36/d812209104/htdocs/PRACTICE844579/index.php(17):
    require('/homepages/36/d…..')#6{main}thrownin
    /homepages/36/d812209104/htdocs/PRACTICE844579/wp-content/plugins/polylang-
    slug/polylang-slug.php on line 31
    There has been a critical error on this website.
    • This topic was modified 2 years, 6 months ago by dopblog.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Ulrich

    (@grapplerulrich)

    Hi Ben

    You need to update the plugin Polylang-Slug. Version 0.2.3 is compatible with PHP 8.

    • This reply was modified 2 years, 6 months ago by Ulrich.
    • This reply was modified 2 years, 6 months ago by Ulrich.
    Thread Starter dopblog

    (@dopblog)

    Fantastic! That was it.
    Thank you so much Ulrich for the quick hilp.

    Thread Starter dopblog

    (@dopblog)

    Oh no, I cheered too soon.

    After I installed Polylang-Slug 0.2.3 the PHP 8.0 update didn’t crash the site and I thought problem solved.

    But the site isn’t multilanguage anymore!
    Instead of the language switcher there’s just ‘Languages’.

    Any idea what broke in the process?

    Best — Ben

    Ulrich

    (@grapplerulrich)

    I am not sure what you mean with “Instead of the language switcher there’s just ‘Languages’.”

    The language switcher on the front end seems to working, but you have reverted your changes.

    Thread Starter dopblog

    (@dopblog)

    Wow what a weird error.

    When I’m logged in to WordPress everything’s fine.
    If not, the language switcher is gone.

    What could that be?

    Ulrich

    (@grapplerulrich)

    The problem seems to be only on the front page. The language switcher on the subpages looks fine.

    Thread Starter dopblog

    (@dopblog)

    Right, the problem occurs only on three pages Home/Teachers/Prices

    I will try to find what’s different on those pages. No idea so far.

    Thread Starter dopblog

    (@dopblog)

    Or can you maybe point me in a direction?
    The fact that the problem disappears when I log in seems quite special to me. What changes when an admin is logged in?

    Ulrich

    (@grapplerulrich)

    And it is only on the English pages. The German page seem to work fine.

    Unfortunately, I can’t think of anything that might be causing it. Do you get any errors on those pages? Here is the documentation on how to enable debugging: https://www.ads-software.com/support/article/debugging-in-wordpress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘PHP 8.0 Update doesn’t work’ is closed to new replies.