• Resolved escozul

    (@escozul)


    Hello,

    I moved my website here: https://bizman.gr from my old server to a new one.
    I tried to make both as similar as possible but the old server is using Ubuntu and Cloudpanel.io and the new one is a centos7.4 cpanel server.

    However they both have php 8.0 on them and the php settings are as similar as they can get.

    Both have a memory limit of 256Mb, max exec time of 180sec and max_input_vars 10000
    Both servers run php v8.0.

    So when I transfer the website, make all typical changes in wp-config, the db and user for the db, along with the password, I get my website working just fine, but when I try to log into the backend (wp-admin) I get the White screen of Death and no admin panel.

    The only thing I found was in the error log the following errors:

    `[03-Oct-2022 15:53:31 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 15:53:31 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin
    [03-Oct-2022 16:08:42 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 16:08:42 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin
    [03-Oct-2022 16:08:42 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 16:08:42 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin
    [03-Oct-2022 16:08:42 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 16:08:42 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin
    [03-Oct-2022 16:08:43 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 16:08:43 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin
    [03-Oct-2022 16:08:43 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 16:08:43 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin
    [03-Oct-2022 16:09:27 UTC] objectcache.critical: Failed to locate and load object cache API
    [03-Oct-2022 16:09:27 UTC] objectcache.critical: Failed to locate and load Object Cache Pro plugin`

    As much as I tried to troubleshoot that issue, It got me nowehere.

    Here are some things I tried to do:

    • Disabled all plugins. of course that broke the website but did not restore the wp-admin. I was still getting the WSOD there. I had to delete it after that and restore the backup cause I was unable to re-enable the plugins.
    • Tried running this command: find . -type d -print0 | xargs -0 chmod 0755 && find . -type f -print0 | xargs -0 chmod 0644 This should fix all the files’ righs and properties. I witnesed no change after that.
    • I used a brand new htaccess with only the most necessary parts in them like rewrite engine etc.
    • Revisited wp-config and wp-settings files. Tried to find any part that had the absolute path in it. I found just one spot at the beginning of wp-config and I fixed that. No change.

    Any ideas?

    • This topic was modified 2 years, 5 months ago by escozul.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter escozul

    (@escozul)

    I’ve got more info. trying to access wp-login on the website takes me to the admin login page. (wp-admin is still wsod)

    But on that page I see this error:

    Error: Cookies are blocked due to unexpected output.

    check it out:
    https://www.bizman.gr/wp-login.php

    all login attempts redirect to this page. Login is impossible. Adding items to cart is also impossible. Cookies are not being saved…

    Thread Starter escozul

    (@escozul)

    People over on Discord were really helpful. I figured it out and the issue was basicaly about the Cookies being blocked

    You see There was an issue with the cookies not being saved. WordPress site could not log people in.
    That usually a blank space left before <?php in a file somewhere. The thing is that I checked that. I went through all files (especially functions.php) and there was no blank space…
    But updraft plus created a warning saying that there was a Byte order mark on functions.php. It insisted. Which was weird. I was thinking “cmon man… I checked. There is no BOM”. However The page in wp-login.php was giving the exact error.
    So I decided to try something. Pointed the DNS to the new installation again that was not working, and opened functions.php
    Then I copied the whole contents, created a new file and pasted as simple text
    Saved… file was 3 bytes smaller…
    I was like “no way it’s that…” (επεξεργασμ?νο)
    It was…
    Site is now working again, cookies, wp-admin and all
    So updraft helped, but not by making a backup. That would only transfer the problem and still face the same issue.
    It helped when it insisted that there was a BOM on functions.php.
    Even though I had checked that, It moved me to do that copy paste thing that I would not normally do.

    So thanks to all. I wanted to post the solution cause someone might come against the same situation. No reason to pull you hair out over this.

    I’m adding an image of a side-to-side comparison of the old functions.php with the bom and the one I fixed. That’s the reason I could not spot it.

    https://i.imgur.com/qAMYsUF.jpg

    Thread Starter escozul

    (@escozul)

    The issue is solved now

    Better image here:
    https://i.imgur.com/o6GYlpk.jpg

    • This reply was modified 2 years, 5 months ago by escozul.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Website admin page is the WSOD after moving to a new server.’ is closed to new replies.