After migration to Cloudflair, Wordpress website does not load

What is the name of the domain?

pitmandesign.com

What is the error number?

no # shown

What is the error message?

none

What is the issue you’re encountering

After migrating site to Cloudflare, site resolves to blank page. It is a wordpress site and I can get a static .html page to load (Pitman Design) so I suspect something in WP settings? Although it was working correctly before moving to CF.

What steps have you taken to resolve the issue?

paused site going through Cloudflare.
checked .htaccess for possible redirect problems.

What are the steps to reproduce the issue?

visit pitmandesign.com

Quite a lot of resources are missing, returning 404 error not found from the host while you’ve temporarly Paused Cloudflare. I’d double-check this with my web hosting and fix before un-pausing the Cloudflare.

The 404 errors come from the origin host/server unrelated to the Cloudflare:

Despite your Website is working fine over HTTPS with a valid SSL certificate, may I ask what SSL settings have you got selected under the SSL/TLS tab of Cloudflare dashboard for your domain name? :thinking:

Other than those errors from above, any other issue?

Thanks for the reply.

SSL currently on Flexible.

A minute ago, I added some lines in the WP theme’s functions.php page

update_option( 'siteurl', 'https://pitmandesign.com' );
update_option( 'home', 'https://pitmandesign.com' );

that enabled the page to load, but apparently without css, and probably other assets not being applied. So, not a blank page at the moment. I still cannot log into the WP admin dashboard, however.

Thank you for feedback information.

That’s the issue. Switch it to Full (Strict) to solve the redirection errors once it’s unpaused and proxied :orange:

Seems so, but that 404s are from the Apache server when paused. Might have to debug the theme files again?

Give it a try in another Web browser, no coockies & data, like Incognito mode (Private Window).

1 Like
  1. Changed to Strict
  2. Un-paused in CF
  3. Removed lines in functions.php

Page loading without assets.
Admin page not loading, including trying in incognito mode.
https://pitmandesign.com/wp-login.php

Looking at the header of any of the WP pages, the URL of the assets are missing a directory.

For example, style.css is showing the URL
https://pitmandesign.com/wp-content/themes/Basic-fluid/style.css
When it is actually
https://pitmandesign.com/cms/wp-content/themes/Basic-fluid/style.css

Note the “cms” directory is different. I’m not a WP expert, but this looks like something wrong in WP settings. The only thing is that there is also a Prestashop installation on the domain that is also not working since migration to Cloudflare. So, I don’t know.

I tried different SSL settings, including, off. And only using “strict” partially works.

Note. Adding cms into the url loads the page (without css, etc.) but when entering credentials, it fails. I assume because the landing page is also missing the “cms”. I’m not sure how to work on this in WP when I can’t get in. But I’m researching now.
https://pitmandesign.com/cms/wp-login.php

Was able to resolve the WP issue. Now on to work on the Prestashop issue! :frowning:

1 Like

Working from my end since you’ve added the redirection or something with /cms/ between:

Yes, correct.

Either should have to creat such, and add those missing files individually and manually to make it work and show Webpage as expected.

WP has a setting to tell the app which directory it lives in, “cms” in this case, as opposed to the site url so that it removes that directory in the url that the end user sees. Somehow, when the site migrated to CF, this communication within WP got corrupted. I’ve got it sorted out, but I’m not sure if it was a wordpress plugin, or something else that was causing the issue. I’ve migrated other WP sites with similar setup to CF without issue. So, I dunno.

Thanks for the willingness to help out!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.