Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • 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
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. WordPress (Managed)
  3. "Critical error" according to WordPress after cloning site from backup to new domain

"Critical error" according to WordPress after cloning site from backup to new domain

Scheduled Pinned Locked Moved Solved WordPress (Managed)
10 Posts 3 Posters 1.6k Views 3 Watching
  • 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.
  • d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by d19dotca
    #1

    Hello,

    I am needing to create my staging site as I often do before making any changes to production, and I am following the same steps I always do which is to clone from backup and set "www.staging.<domain>.<tld>" as the new location. For the very first time I seem to be running into an issue where after doing that, when I click from Cloudron to the new location it's just WordPress throwing it's "critical issue" message: "There has been a critical error on your website."

    11d5d9b1-7ff0-44b4-9df2-808730abc207-image.png

    Any ideas what this could be? I suspect this isn't a Cloudron issue so much as a WordPress issue, but I haven't run into this issue ever yet, so it's very strange. I'm thinking at first something in the database, no longer showing the right domain so it refuses to load or something? but that seems very strange to me. Anyone run into this behaviour before?

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0
    • d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by d19dotca
      #2

      Actually, if I look at the logs it seems to be an issue with the authLDAP plugin, but it's still very strange it works fine on all current sites (all 16 of them) and this only happens when cloning the app.

      Jul 20 15:03:06 [Mon Jul 20 22:03:06.423208 2020] [php7:error] [pid 42] [client 172.18.0.1:49612] PHP Fatal error: Cannot redeclare authLdap_send_change_email() (previously declared in /app/data/wp-content/plugins/authLdap-2.3.1/authLdap.php:819) in /app/data/wp-content/plugins/authldap/authLdap.php on line 849, referer: https://www.staging.<domain>.<tld>/
      

      I know that plugin was updated the other day, so maybe that's caused some issues? But if that's the case, presumably others who have updated the authLDAP plugin recently will have a similar issue? Why does this only happen when cloning sites though? Seems so strange.

      I'm also on Cloudron 5.4.0 right now if that matters.

      --
      Dustin Dauncey
      www.d19.ca

      1 Reply Last reply
      0
      • d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #3

        Okay I've narrowed this down in further testing and I think you're going to need to fix this @girish , unfortunately.

        It looks like when authLDAP 2.4.2 version if used, when deploying a new image from it, it will fail because the data injected into it from the package isn't compatible with the newer 2.4.2 version, but works fine on the 2.3.x versions. I suspect the package will need to be updated with authLDAP 2.4.2 and the appropriate values for it.

        How I arrived at the above conclusion: I took an old backup from before authLDAP was updated, and it worked well when cloning. I then updated the plugin in the staging site and backed it up and restored from that backup, and then the issue is reproducible.

        --
        Dustin Dauncey
        www.d19.ca

        1 Reply Last reply
        2
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @d19dotca Thanks for the report, I will look into it. Looks like this is pretty bad since it will break a WP install by just upgrading the plugin. https://git.cloudron.io/cloudron/wordpress-app/-/issues/41

          d19dotcaD 1 Reply Last reply
          2
          • girishG girish

            @d19dotca Thanks for the report, I will look into it. Looks like this is pretty bad since it will break a WP install by just upgrading the plugin. https://git.cloudron.io/cloudron/wordpress-app/-/issues/41

            d19dotcaD Offline
            d19dotcaD Offline
            d19dotca
            wrote on last edited by
            #5

            @girish to be clear it works fine once upgraded for that app in particular, itโ€™s only on cloning the app that it is a problem.

            --
            Dustin Dauncey
            www.d19.ca

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #6

              @d19dotca I have pushed an update that updates the LDAP plugin.

              d19dotcaD 1 Reply Last reply
              4
              • girishG girish

                @d19dotca I have pushed an update that updates the LDAP plugin.

                d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by
                #7

                @girish Thank you as always for the quick turnaround on these issues. ๐Ÿ™‚

                --
                Dustin Dauncey
                www.d19.ca

                1 Reply Last reply
                1
                • I Offline
                  I Offline
                  ice
                  wrote on last edited by
                  #8

                  @d19dotca said in "Critical error" according to WordPress after cloning site from backup to new domain:

                  ? Why does this only happen when cloning sites though? Seems so strange.
                  I'm also on Cloudron 5.4.0 right now if that matters.

                  Hi,

                  I suspect I have the same issue. How do I recover the site ?
                  I had a problem last week where I could not login and fixed the Ldap settings in the site by using an already logged in user to change authentication back to LDAP.

                  I was able to work on WP without issue, but it seems after the weekend my install has stopped. I was working on Friday night, but backup recoveries to before this have the same error.

                  "
                  There has been a critical error on your website.

                  Learn more about debugging in WordPress.
                  "

                  1 Reply Last reply
                  0
                  • I Offline
                    I Offline
                    ice
                    wrote on last edited by
                    #9

                    App Title & Version
                    WordPress 5.4.2
                    App ID
                    85e2221b-1fe3-4001-88fc-f862a7e4e661
                    Package Version
                    v2.11.1
                    Last Updated
                    2 days ago

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @ice Let's discuss in https://forum.cloudron.io/topic/2947/wordpress-has-stopped-working

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


                      • Login

                      • Don't have an account? Register

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