WordPress.org

Ready to get started?Download WordPress

Forums

PHP5 and MYSQL4.1.1 (11 posts)

  1. smokejumper
    Member
    Posted 10 years ago #

    I've upgraded my site to PHP5 and MYSQL 4.1.1 and upgraded the code to work with both PHP5 and mysqli. The BIG problem with php5 is that it requires declaring arrays as arrays before using them. That problem is solved. I can upgrade 1.2 to PHP 5 if anyone wants... I think that was the only problem I really had (except for wpdb->get_var not working and some various other things). I'm willing to do this as soon as 1.2 goes final, or beforehand if people would really want this... make it 1.2.p5 or something.

  2. fallen
    Member
    Posted 10 years ago #

    Do you have the wp-login.php running with PHP 5.0.0RC2? I've a blog with the 1.0.2 version of WordPress, and this is the only part that's not working.

  3. smokejumper
    Member
    Posted 10 years ago #

    Yeah, everything should work on my site (smokejumper.princeton.edu)

  4. fallen
    Member
    Posted 10 years ago #

    Great!
    Can you please send me a copy of the wp-login.php or post the code somewhere?
    ne at crube dot net
    Fallen

  5. smokejumper
    Member
    Posted 10 years ago #

    ah... i've only got 1.0.1... I can download the new one and get it up and running by wednesday... i'll work on wp-login.php first.

  6. smokejumper
    Member
    Posted 10 years ago #

    wp-login.php v. 1.0.2 is no different than 1.0.1. I've made no changes to my wp-login.php. My only guess is that you might need to initialize $login as $login[] = array().

  7. fallen
    Member
    Posted 10 years ago #

    Smokejumper,
    Can you please post the code fragment here, or send the wp-login to me?
    Thanks,
    Fallen

  8. smokejumper
    Member
    Posted 10 years ago #

    L90:
    $login = $wpdb->get_row($query);
    should become
    $login[] = array();
    $login = $wpdb->get_row($query);
    Let me know if that works. I haven't had to make that change, so this is definitely something interesting, unless it happens that the error occurs deeper (like in wp-db.php).

  9. fallen
    Member
    Posted 10 years ago #

    Don't work.
    IE displays an error page, and Firefox a blank page, like before the change you sugested.

  10. smokejumper
    Member
    Posted 10 years ago #

    Hm... have you ruled out an error in wp-db.php?

  11. darren131
    Member
    Posted 10 years ago #

    hey there - I'm running php5 with the mysqli functions...I'm not entirely sure what I need to do.
    smokejumper - do you happen to have ported files I'd need?
    thanks
    d

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.