WordPress.org

Support

Support » Installation » Upgraded, now it says I haven’t installed WP.

Upgraded, now it says I haven’t installed WP.

  • I upgraded from 1.5.2 to 2.0.1. After I ran upgrade.php, I click on “Have fun . .” and it takes me back to the homepage. All that’s there now is “It doesn’t look like you’ve installed WP yet. Try running install.php.” I do not know why this happened. The only extra plugin I had running was lazyest-gallery and it’s suposedly 2.0.1 compliant. Having 0 installation issues in the past, I did not back up the original DB files. So I have three questions:

    1. Does anyone know what may fix the problem?
    2. Where Can I find the old 1.5.2 zip file
    3. I’m not a DB expert, so if i need to revert back to 1.5.2, will i need to cleanup any changes in the db? What feilds?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The DB changes have been made so putting 1.5.2 back will cause errors.

    Downgrader:
    http://www.somethingunpredictable.com/

    File:
    http://static.wordpress.org/archive

    Then put 1.5.2 in.
    BEFORE YOU DO THIS, backup the existing data.

    I have posted the problem to the hackers list. I hope one of them answers…..

    Wow, thanks for the quick response! I performed the steps above and still no go. I’m left with 1.5.2 in my webroot and whatever was the end result of the downgrade script. I also made a backup of the db before running the script so I still have a 2.0.1 copy of that. Any additional advise would be greatly appreciated. Thanks.

    It would be useful to know what, if anything, this query returns when executed directly in mysql or via phpMyAdmin:

    SELECT option_value FROM wp_options WHERE option_name = 'siteurl'

    Note that you should replace “wp_options” with the table with your database prefix, if it’s something other than “wp_”.

    You can also try looking at wp-settings.php and commenting this line:

    $wpdb->hide_errors();

    That will show any errors that take place when WordPress tries to run that query. The query itself is the one that detects whether the WordPress database is actually installed.

    Assuming that query actually runs and returns a value from phpMyAdmin (it must do so if WordPress is to believe that the database is installed), my next step would be to make sure the correct database is selected in the wp-config.php, and not by eyeing the values in wp-config.php, but by adding this code just after the hide_errors() line above:

    echo "<pre>".$wpdb->options."n".print_r($wpdb->get_results("SELECT * FROM {$wpdb->options}"),1)."</pre>";die();

    This will output everything in the wp_options table so that you can verify for yourself that the ‘siteurl’ option is actually not set, and that the table name (the very first line in the output) is what it is supposed to be.

    From there, more investigation might be required.

    siteurl was empty so I changed it to the correct url. I made the code changes as described and placed the results here: http://www.joker619.com/output.htm

    The end result is still the same with the siteurl filled out. In ringmasters post, the url is enclosed in tics ” ‘ “. I assume that these are not needed in the siteurl value. . .

    joker619 – are you still having a problem with this ?

    Yes. I admit I have not done more than what was posted so far. Been really busy. But yeah, the current status is the same. Thanks.

    Before I throw this again at the hackers list, can you tell us

    Your host
    The php version
    The mysql version
    If you are on a windows or linux server

    And if you could do a phpinfo that too would be very helpful.

    In notepad, write this:
    <?php phpinfo(); ?>
    Save it as info.php
    Upload it to your website, then visit the script in your browser
    http://www.example.com/info.php
    There should be lots of information there which will be impossible to copy/paste so a direct link would be great.

    The more information we can give the coders, the better chance we have of discovering the cause and cure.

    My host: My own server
    PHP version: 4.4.1
    MySQL version: 4.0.16
    Windows 2003 Server / IIS 6.0.

    http://www.joker619.com/info.php

    All of this configuration was working perfectly prior to the upgrade to 2.0 so I do not believe that it’s a problem with the PHP/MySQL combo or any of that. Whatever changes the 2.0 script made broke the blog.

    I’ve posted this information to the hackers list again.
    The conversation can be followed in this thread:
    http://comox.textdrive.com/pipermail/wp-hackers/2006-February/005093.html

    After this line in your wp-settings.php:

    $db_check = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'");

    Insert this line:

    die($db_check.':'.strstr($_SERVER['PHP_SELF'], 'install.php').':'.defined('WP_INSTALLING'));

    And tell us what you see when you run it so that we can figure out why that section of code (the one that says you still need to install) is running.

    [Note to devs: This line is yucky:

    if ( !$db_check && (!strstr($_SERVER['PHP_SELF'], 'install.php') && !defined('WP_INSTALLING')) ) {

    Let’s see what DeMorgan has to say about it…

    !A & (!B & !C)
    !A & !(B | C)
    !(A | B | C)

    So if I did that right, then the line is:

    if(!($db_check || strstr($_SERVER['PHP_SELF'], 'install.php') || defined('WP_INSTALLING'))) {

    ]

    I do not have such a line in the wp-settings.php file.

    In 2.0.1 I make that line 121.

    It’s a few lines below the comment:
    // To disable persistant caching, add the below line to your wp-config.php file, uncommented of course.
    // define('DISABLE_CACHE', true);

    I have 1.5.2 installed, not 2.0.1. Are you guys trying to help me with 1.5.2 or 2.0.1?

    2.0.1

    Hmm… so..
    You had a working 1.5.2 blog
    You upgraded to 2.0.1 and you get a ‘not installed’ error
    You run the downgrade script
    You upload the 1.5.2 files
    And you still get the ‘not installed’ error ?

    Is the above absolutely correct in all detail ? if not, can you list it please ?

    You have not changed any information in w-config.php at all ?

    I have no idea if this would be offered or happen, but would you be prepared to allow someone access to your server for this ?

    That is correct. wp-config.php was not altered by me in any way. Giving someone access to my server is not out of the question, but I would like to avoid it if possible. I have placed a lot of info about the setup in these two locations:

    http://www.joker619.com/output.htm
    http://www.joker619.com/info.php

    Once again, thank you guys for your assistance.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Upgraded, now it says I haven’t installed WP.’ is closed to new replies.
Skip to toolbar