X-Theme generates 404 if permalink isn't "plain"

I’ve just upated an existing WP site to use X-Theme.
Everything has gone well except that I’ve had to change permalinks to “Plain” to be able to access the X-Theme Options and other managemenet screens.

If I set permalinks to “Post Name” then “X / Theme Options” or “X / Cornerstone” generate a 404 (its the hosting providers not Wordpress’).

  • I’ve disabled all plugins, that didn’t help
  • I’ve regenerated “.htaccess”, which didn’t help
  • I’ve disabled, removed and reinstalled Cornerstone, didn’t help
  • I don’t have a cache installed
  • Apache is being used, mod_rewrite is enabled and other permalinks are being redirected properly

I’ve been through the forum as best I can and cannot find any advice that works for my situation.

So I’m hoping someone else can suggest something else to try

Many thanks


For info, I’ve got

  • X v7.2.3 installed
  • PHP v7.2.33
  • WP v5.5.1

These are the WP plugins that are installed

LayerSlider WP 6.11.2
Contact Form 7 5.2.2
Cornerstone 4.2.3
Yoast Duplicate Post 3.2.6
Easy Google Fonts 1.4.4
Envira Gallery 1.8.12
Gatekeeper 1.1
Growmap Anti Spambot Plugin 1.5.6
WPBakery Page Builder 6.4.0
Limit Login Attempts 1.7.1
PHP Compatibility Checker 1.5.0
Redirection 4.8
Regenerate Thumbnails 3.1.3
Slider Revolution 6.2.22
Templatera 2.0.4
UpdraftPlus - Backup/Restore 1.16.29
Yoast SEO 15.0
WP Content Copy Protection (Lite) 2.0.2
PayPal Buy Now Button 1.7.2
Smush 3.7.1

Hey @dippsle,

Thanks for performing several tests to narrow the causes. When you said generate htaccess, are you using the default WordPress htaccess. If not, you should reset the htaccess like in this article: https://www.tipsandtricks-hq.com/how-to-reset-the-htaccess-file-of-your-wordpress-site-using-ftp-8527

You also said something about redirects:

Please temporarily remove them?

Ultimately, it is your web host that can resolve this issue because they have control over the URLs. As you’ve said, it’s the 404 page of the web host that is showing. You can let us know what the web host will say.

Only after you’ve taken this case to your web host and they’ve given advice, give us the following information in a Secure Note and we’ll do our own investigation.

  • WordPress Login URL
  • Admin Username and Password
  • Webhost cPanel Access

You can find the Secure Note button at the bottom of your posts.

Thanks.

Thanks for the update.

What I meant by “redirects” was the rewrites that mod_rewrite does to get to the correct page, ie changing “/client_area/” into “/?page_id=1232345”, so there isn’t anything to remove - sorry for the confusion.

I’d already tested with a blank ‘.htaccess’ file.
Changing the “permalink” settings from Plain to Postname adds the mod_rewrite rules into the file and they do work.

But if I then click on “X / Theme Options” (/x/#/options) it doesn’t display anything.
Change the permalinks back to Plain and “/x/#/options” works.

I’ll try and contact my ISP to see if they have any idea why, or possibly have something in their Apache logs

Hey @dippsle,

Yes do update us what your host says so we can take a closer look.

Thanks!

My ISP wasn’t very helpful, they didn’t look at the Apache logs or let me see their config :frowning:

I did let them log into Wordpress and they started messing around with Posts that were in draft rather than looking at the issue with the X Theme URI issue - they got hung up on my permalink settings and decided the problem wasn’t what I was describing.

Eventually I got them to look at the real error and they just confirmed that it was indeed going to there site 404 handler, but only because I didn’t have one defined in Wordpress.
But they couldn’t find anything wrong and punted it back to yourselves to “sort out”.

Before I did that though I installed a plugin to handle 404 occurrences, just on the off-chance that it was somehow to blame.

And that seems to have fixed it, I can now get to the X Theme options when permalinks are set to “Posts”

Like all guess work I have know idea why that has worked, I’m just grateful that it has :slight_smile:

Thanks for your assistance

Hey @dippsle,

We’re glad you’ve sorted it out and thank you for sharing with us.

Cheers!

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