Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. My Laytheme doesn't work with PHP 8.0

My Laytheme doesn't work with PHP 8.0

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 863 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • doorofperceptionD Offline
    doorofperceptionD Offline
    doorofperception
    wrote on last edited by
    #1

    Hello,

    I just updated my Ionos account to PHP 8.0 for this site: https://practice.de/
    After that the up-to-date Laytheme site doesn't work anymore.

    See the error message attached. Is that due to a Polylang problem? I understand nothing.

    I now switched back to PHP 7.3, but I really need this update otherwise I need to pay Ionos 8 € a month for their extended PHP support.

    Any ideas on how I could solve that?

    BEN

    Bildschirmfoto 2022-03-30 um 15.25.30.png

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear Ben

      @doorofperception

      Sorry that this has happened, do you now have any access to your Wordpress admin area?

      Luckily the fatal error message is clear that the problem occurred within Polylang.

      I would suggest de-activating Polylang, updating Lay Theme & any addons to newest version, then updating with Ionos to PHP 8.0 ( so you dont have to pay 8 euro a month ).

      If all still working well, from there we can isolate the problem to Polylang and go from there.

      The main thing is to get Lay Theme working, your site not crashing and you not paying any extra money 🌝


      Talk soon
      Richard
      1 Reply Last reply
      0
      • doorofperceptionD Offline
        doorofperceptionD Offline
        doorofperception
        wrote on last edited by
        #3

        Hey Richard,

        Thank you for the reply.
        The site is up and running and I have access to the WP admin area, because I switched back to the old PHP version.

        Laytheme and all other plugins are up-to-date.
        Deactivating Polylang doesn't solve my problem besides giving me clarity about the troublemaker.
        But the multilanguage support is crucial for the site. And Polylang seems to be the only plugin that achieves. I used WPML for years prior to it and just the thought about it gives me a headache. It never really worked.

        So Polylang seems to be without any alternative.
        What do you suggest now?

        Thank you β€” Ben

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear Ben

          @doorofperception

          Great that all is working with Lay Theme & Admin area πŸ‘

          While Polylang is de-activated will you update to PHP 8.0 for confirmation all is working with Lay Theme?

          Here within VERSION HISTORY:

          Screen Shot 2022-04-03 at 2.03.25 PM.png

          Polylang, being a third party plugin
          You may want to consult them about issues with PHP 8.0 to confirm how much is Lay Theme related.

          https://wordpress.org/support/plugin/polylang/

          What Polylang version are running?
          Are you running Polylang with Woocommerce?

          Screen Shot 2022-04-03 at 2.14.43 PM.png

          The error message occurs within the polylang-slug.php file at line 31 . You might want to inspect this file on line 31 and make a note/screenshot of error.

          This would involve going into the plugins folder/files

          The error message also mentions "homepages" and "practice" do these mean anything to you? is practice a page?

          I should also mention QtranslateXT but understand that you would prefer the solution to come with Polylang πŸ‘


          Polylang is recommended on the Lay Theme Documentation page, so will forward to Armin for any thoughts βœ…

          Talk soon Ben and thank you for supporting Lay Theme
          Richard
          1 Reply Last reply
          0
          • doorofperceptionD Offline
            doorofperceptionD Offline
            doorofperception
            wrote on last edited by
            #5

            When I deactivate Polylang the problem does not occur.

            I will write to the Polylang people. Thanks for pointing me to their forum.
            Btw, I don't use Woocommerce and Polylang is up-to-date.

            What a bummer.

            1 Reply Last reply
            0
            • doorofperceptionD Offline
              doorofperceptionD Offline
              doorofperception
              wrote on last edited by
              #6

              Problem solved.
              There's an additional plugin that I need so that Polylang works properly. It's called Polyang-Slug.php and it needs to be updated manually via FTP. After doing that the site works with PHP 8.0.

              The tipp came immediately after posting it in the WP/Polylang forum. Thanks for the hint.

              1 Reply Last reply
              1
              • doorofperceptionD Offline
                doorofperceptionD Offline
                doorofperception
                wrote on last edited by
                #7

                Actually, 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! Or at least not completely.
                Three pages don't show the language switcher anymore, the rest is fine.

                But it gets even weirder:
                When I'm logged in to Wordpress everything works perfectly.

                The fact that the problem disappears when I log in seems quite special to me. What changes when an admin is logged in? Any ideas?

                1 Reply Last reply
                0
                • arminunruhA Offline
                  arminunruhA Offline
                  arminunruh
                  Global Moderator
                  wrote on last edited by
                  #8

                  hey can you send your /wp-admin/ login and your ftp login and send a link to this topic and links to the pages where the language switcher does not appear to:
                  info@laytheme.com ?

                  1 Reply Last reply
                  1
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  I also code custom websites or custom Lay features.
                  πŸ’Ώ Email me here: πŸ’Ώ
                  info@laytheme.com

                  Before you post:
                  1. When using a WordPress Cache plugin, disable it or clear your cache.
                  2. Update Lay Theme and all Lay Theme Addons
                  3. Disable all Plugins
                  4. Go to Lay Options β†’ Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                  This often solves issues you might run into

                  When you post:
                  1. Post a link to where the problem is
                  2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                  3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                  Online Users
                  Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                  laytheme.com
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Search