• Apologies for the overly general question. All the formatting in my website is currently breaking upon navigating to any subpage. The site was working correctly in my testing environment, but broke when attempting to push live.

    I used a plugin called Better Search Replace to replace instances of the testing URL with my actual URL in my database tables, but screwed something up.

    Can anybody please point me in the right direction?

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator t-p

    (@t-p)

    breaking upon navigating to any subpage

    Can you share URL of that “subpage” where we can see it?

    Thread Starter wickensworth

    (@wickensworth)

    Moderator t-p

    (@t-p)

    Check if your theme’s CSS is pointing to the right location.

    Moderator t-p

    (@t-p)

    If tha’s correct, then try clearing cache. For example, flushing any caching plugins you might be running

    Thread Starter wickensworth

    (@wickensworth)

    I’ve searched my theme’s CSS, but cannot find any unexpected location references.

    Moreover, the site similarly breaks when I switch to a different theme.

    Thread Starter wickensworth

    (@wickensworth)

    I’ve cleared the cache but the problem persists.

    It’s breaking because the stylesheets aren’t loading. The URL that’s returning a 404 error is:

    http://ekarj.com/wp-content/cache/autoptimize/css/autoptimize_157806127ad0046fe8ae5c0c6d728e8c.css

    You should be able to clear the cache from Autoptimize and have it refresh from scratch, and that should get the caching working again.

    Thread Starter wickensworth

    (@wickensworth)

    You’re fantastic, thanks. The problem has been resolved.

    I ended up having to clear the plugin’s cache from where it was installed in my testing environment, which is apparently where the hang up was.

    Thread Starter wickensworth

    (@wickensworth)

    Hi @catacaustic, the problem was resolved, but I am now getting a general server error on all these pages. The problem arose when I removed my old testing environment.

    Is there any way you can take a second look at this?

    Internal Server Errors are not something that can be de-bugged remotely like that. to know what the problem is you need access to teh error logging system on the server.

    If you can see the error logs, check what they say the error is. If you don’t, edit your wp-config.php file to have WP_DEBUG set as true and that will show you what the error actually is. Remember to change it back to false when you’ve got it working agian.

    Thread Starter wickensworth

    (@wickensworth)

    Hi @catacaustic, I’ve set WP_DEBUG to true and also set WP_DEBUG_LOG to true, but cannot find a log file. I am not seeing errors on the affected pages–it’s still just giving me a generic server error. The error message also states:

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    The most recent error on my cPanel is from just prior to the current server errors, but is perhaps relevant.

    [Wed Sep 12 18:54:37.115588 2018] [autoindex:error] [pid 3286536:tid 139727296472832] [client 107.180.51.203:39085] AH01276: Cannot serve directory /home/ekarjala/public_html/wp-content/cache/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive, referer: http://ekarj.com/wp-content/cache

    If you’re not seeing any errors it might be something before the server gets to WordPress. You’ll need to talk to your hosting company if you can’t find any errors or logs yourself.

    Thread Starter wickensworth

    (@wickensworth)

    Thanks, I’ll look into it with them.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Site breaks on all subpages’ is closed to new replies.