Viewing 7 replies - 1 through 7 (of 7 total)
  • Try switching to the Twenty Ten theme by renaming your current theme’s folder in wp-content/themes using FTP

    Thread Starter ucarmetin

    (@ucarmetin)

    Hey esmi,

    I’ve done it and now I can reach the backend. If I use the default theme, there is no problem with loggin in and out any more. However, when I switched to my theme, I get a blank screen when I log out and it doesn’t log me out. So does that mean there is something wrong with my theme?

    Really appreciate your quick response.

    It certainly sounds like it. It might be worth trying to roll it back to the point when the Admin area was working. If you have access to server error logs, they might be useful in pinpointing where the error is.

    Thread Starter ucarmetin

    (@ucarmetin)

    After 5 hours of debugging, checking every suspicious value in the database, reading dozens of forum posts&articles about such problems, and even installing a new clean WP to experiment with Debug Mode on… I figured out what caused everything to malfunction.

    It turned out that one little single extra empty line after ?> in my functions.php file was responsible for all the nightmares I’ve had in last 5 hours. Funny!

    Thanks esmi for the help.

    Tip: Don’t have a closing ?> at the end of any .php file. It stops this kind of issue happening.

    Thread Starter ucarmetin

    (@ucarmetin)

    The file that created the problem is a functions file and located in a sub folder. I used this approach for the sake of organization.

    Do you think even in this case I should avoid the closing tag ?> ?

    Yes. PHP doesn’t need the ?> at the very end of the file. It knows that the code has finished because the file has. So omitting that final ?> is probably a good habit to get into when using WordPress.

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

The topic ‘Cannot access Admin Backend’ is closed to new replies.