• I’ve been using PHP 4 on the hosting my WordPress blog is on for ages. I switched to PHP 5 earlier to take advantage of the DOM functions on a plugin I wrote.
    I wrote the plugin, it all works etc., but now I can’t login to the backend!
    If I switch back to PHP 4 (I can do it via my hosts cPanel), I can login fine (although the plugin breaks).
    When I try and login, I just get taken back to the login form, with no error. If I try and recover my password, I get an error that says to enter my username or email address (I did enter my username correctly).
    Does anyone know what’s going on?
    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter richardjohn

    (@richardjohn)

    I just noticed, when I’m on PHP 5, comments don’t work on the frontend either.
    If I switch back to PHP 4, the backend works, as do comments.
    There’s nothing in the error log.

    it’s probably your theme that’s broken. WordPress works fine on php5 (I’m using it myself)

    your theme’s functions.php is loaded for the admin area as well… gonna guess the problem’s in there, if you’re sure its not your plugin(s).

    Thread Starter richardjohn

    (@richardjohn)

    Doesn’t seem like it, but thanks.
    This is the entirety of my theme’s functions.php

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar();
    ?>

    well, then its your plugins (or something else)… ‘cos it ain’t wordpress.

    like I said, wordpress works on php5 quite well.

    Thread Starter richardjohn

    (@richardjohn)

    Oddly, the POST is completely empty.
    I just did added var_dump($_POST) to the top of wp-login.php, and it’s an empty array.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t login after switch to PHP 5’ is closed to new replies.