• Resolved ricjo

    (@ricjo)


    Hi all.

    I just tried upgrading one of my blogs for the first time in my life, following these instructions, but I think I made a mess of it all.

    When I type in the https://example.com/wordpress/wp-admin/upgrade.php, I get these errors:

    Warning: main(/home2/ricjoorg/public_html/redmosquito/wp-includes/compat.php) [function.main]: failed to open stream: No such file or directory in /home2/ricjoorg/public_html/redmosquito/wp-settings.php on line 117

    Warning: main(/home2/ricjoorg/public_html/redmosquito/wp-includes/compat.php) [function.main]: failed to open stream: No such file or directory in /home2/ricjoorg/public_html/redmosquito/wp-settings.php on line 117

    Fatal error: main() [function.require]: Failed opening required ‘/home2/ricjoorg/public_html/redmosquito/wp-includes/compat.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home2/ricjoorg/public_html/redmosquito/wp-settings.php on line 117

    Basically, what I think I did wrong was when I deleted my wp-includes and wp-admin directories, I actually deleted everything that was in there, including my wp-config.php file. I did so because I strictly followed the instructions from the page I linked above and it only warns about not deleting this file after it says (and I quote):

    2. Delete your old wp-includes and wp-admin directories.

    So that is what I did. I then followed the rest of the instructions, uploaded wp 2.5, extracted it and then got stopped at the step I told you above. I’m sure it’s a stupid mistake to have deleted my wp-config.php file, but I’m a newbee, so I’m sorry…

    Can anyone help me out here so I can get things back to how they were before? I made a backup of my database, but I don’t know if that would help. I would really appreciate you assistance!

    Thanks in advance!

    Ric.

Viewing 15 replies - 1 through 15 (of 26 total)
  • So have you upload the new copy of wp2.5 to your server, including the new wp-includes & wp-admin directory? Also, rename the wp-config-sample.php file to wp-config.php, and edit the settings in there, then run the upgrading process again.

    Thread Starter ricjo

    (@ricjo)

    Ok, I uploaded the wp 2.5 to the same place I had uploaded the previous version. I did nothing to the wp-includes & wp-admin directory except delete their content before uploading wp 2.5. I didn’t know I had to do the same renaming the wp-config-sample.php file to wp-config.php, and edit the settings in there thing again. I’ll try doing it and see if it works out.

    Thanks!

    Thread Starter ricjo

    (@ricjo)

    I tried to edit the wp-config-sample.php but it was already “transformed” in to wp-config.php and went I opened the file to edit it, all the right parameters were there. So I tried running the upgrading process again and I’ve still got the same error as written above…

    Anybody has any idea on how I can get out of this mess…?

    Thanks.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The error you are getting basically says that you’re missing files from the wp-includes directory.

    Make double double sure that you uploaded ALL the files. And that they have the correct permissions.

    Thread Starter ricjo

    (@ricjo)

    Hmmm… All I uploaded was the WP 2.5. Before that I deleted all the content in the old wp-includes and wp-admin directories. So what else do I need to upload besides WP 2.5…?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Well, mainly you need to upload ALL of WP 2.5. Check that it didn’t stop uploading halfway and you just didn’t notice.

    Thread Starter ricjo

    (@ricjo)

    I’m pretty sure it uploaded everything. Here are all the files I’ve got:

    /public_html/redmosquito/cgi-bin
    /public_html/redmosquito/wordpress
    /public_html/redmosquito/wp-admin
    /public_html/redmosquito/wp-content
    /public_html/redmosquito/wp-includes
    /public_html/redmosquito/error_log
    /public_html/redmosquito/index.php
    /public_html/redmosquito/license.txt
    /public_html/redmosquito/readme.html
    /public_html/redmosquito/wordpress-2.5.zip
    /public_html/redmosquito/wp-app.php
    /public_html/redmosquito/wp-atom.php
    /public_html/redmosquito/wp-blog-header.php
    /public_html/redmosquito/wp-comments-post.php
    /public_html/redmosquito/wp-commentsrss2.php
    /public_html/redmosquito/wp-config.php
    /public_html/redmosquito/wp-cron.php
    /public_html/redmosquito/wp-feed.php
    /public_html/redmosquito/wp-links-opml.php
    /public_html/redmosquito/wp-login.php
    /public_html/redmosquito/wp-mail.php
    /public_html/redmosquito/wp-pass.php
    /public_html/redmosquito/wp-rdf.php
    /public_html/redmosquito/wp-register.php
    /public_html/redmosquito/wp-rss.php
    /public_html/redmosquito/wp-rss2.php
    /public_html/redmosquito/wp-settings.php
    /public_html/redmosquito/wp-trackback.php
    /public_html/redmosquito/xmlrpc.php

    What if nothing is missing? By the way, thank you for your help!

    Stupid question, but are you sure you upgraded your files? Be default when you expand the .zip file it dumps all the new files into the directory called wordpress. So, in your case, you would have to copy all those files back up one directory into /public_html/redmosquito/ for your install to see the new files.

    Thread Starter ricjo

    (@ricjo)

    No question is stupid in my case, because it’s the first time I’m upgrading and I’m doing it less then a month after I started off with WP, so all questions are welcome.

    I did exactly as followed:

    “Step 0: Before You Get Started

    * Just in case something goes wrong, make sure you have a backup. WordPress Backups is a comprehensive guide.
    * Deactivate your plugins

    Step 1: Replace WordPress files

    1. Get the latest WordPress. Either download and extract it to your computer or download it directly to the server.
    2. Delete your old wp-includes and wp-admin directories. “

    So I deleted the folders, uploaded WP 2.5 and extracted it. And that’s the point where I’m up to right now. It then says for me to:

    ” 3.Copy the new files to your server, overwriting old files in the root. You may use FTP or shell commands to do so.”

    But I don’t quite know what that implies, due to the fact that when I unzipped WP 2.5, all the files were automatically extracted to my server, right? So I then went too step 2:

    ” Step 2: Upgrade your installation

    1. Visit the upgrade page. “

    And that’s where my error message appears. I know I’m doing something wrong, but I can’t seem to find out what it is. Sorry for being so ignorant and thnak you for your patience.

    So it goes something like this…

    Your public_html folder is where all your wordpress files are located. But… when you downloaded wordpress-2.5.zip to public_html and then unzipped it, all the new files went into a new folder called wordpress. If you look in the wordpress folder, you will see all the new files for 2.5. You need to copy all those files and folders back up into the public_html folder.

    Actually, into the public_html/redmosquito folder because that’s where the blog used to be!

    Thread Starter ricjo

    (@ricjo)

    Wow! Thanks! It almost worked… So i did what you said. Went to my upgrade page, logged in and…

    “The page isn’t redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

    So, at least there is no fatal error and I got to the login page. So is this redirecting problem my fault or is there something I can do to fix it…?

    EDIT: I did put it in to the /public_html/redmosquito folder. Thanks ??

    EDIT II: Ok, I think I got it to work now. At least I’ve reached this message:
    “No Upgrade Required

    Your WordPress database is already up-to-date!
    Continue”

    But when I click continue, it redirects me to my blog but nothing appears. It’s as if the blog doesn’t even exist. Geez… never thought upgrading WP would be such a task.

    If you deleted your wp-content folder, then your theme is gone (along with your plugins and anything in the uploads folder), and so wordpress can’t see the files it is looking for.
    If there is no wp-content folder, make sure you copied the one from the wordpress folder back into the public_html/redmosquito folder.

    Thread Starter ricjo

    (@ricjo)

    But I have my wp-content folder. I can login to my administration panel and absolutely everything is there: templates, plugins, posts, etc. etc. I just can’t visualize the blog….

    Thread Starter ricjo

    (@ricjo)

    Help…? I really don’t know how to sort this out…

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘WP 2.5 upgrade mess’ is closed to new replies.