Website displays a page of code when Admin logged in

if I log in with my Admin account all I see is lines of code

Can you post a screenshot of the error or do a pastebin of those lines of code?

Sure, here it is:

I think it’s just the code of my homepage. FYI as you’ll see the title of the tab on Google Chrome is now “cal” instead of my website’s name.

FYI #2: I still have full and normal access to the back office

That’s some message.

I suggest you to disable all themes/plugins. Then enable one by one until you find which one is causing the issue.

– Deactivating all plugins: 20% of the page was back to normal (mainly the header)
– Changing theme: hard to say if it makes things back to normal because even in the absence of issue, changing theme messes with the page completely, but at least I have more than just some code. So it seems it mat be theme related.

– Okay found the issue: the theme has an option to remove some unused CSS from style.css.
I just regenerated the style.css file (without adding or removing anything) and the issue disappeared. Weird, since I hadn’t made any change recently.

Anyway, thanks for your suggestions which pointed me in the right direction.

Have a nice day!


That’s weird, but I’m glad you solved the issue!

Source link