Forums

[resolved] WP 2.5 upgrade mess (27 posts)

  1. ricjo
    Member
    Posted 4 years ago #

    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 http://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.

  2. haochi
    Member
    Posted 4 years ago #

    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.

  3. ricjo
    Member
    Posted 4 years ago #

    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!

  4. ricjo
    Member
    Posted 4 years ago #

    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.

  5. Otto
    Tech Ninja
    Posted 4 years ago #

    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.

  6. ricjo
    Member
    Posted 4 years ago #

    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...?

  7. Otto
    Tech Ninja
    Posted 4 years ago #

    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.

  8. ricjo
    Member
    Posted 4 years ago #

    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!

  9. buzzki11
    Member
    Posted 4 years ago #

    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.

  10. ricjo
    Member
    Posted 4 years ago #

    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.

  11. buzzki11
    Member
    Posted 4 years ago #

    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.

  12. rudolf45
    Member
    Posted 4 years ago #

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

  13. ricjo
    Member
    Posted 4 years ago #

    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.

  14. buzzki11
    Member
    Posted 4 years ago #

    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.

  15. ricjo
    Member
    Posted 4 years ago #

    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....

  16. ricjo
    Member
    Posted 4 years ago #

    Help...? I really don't know how to sort this out...

  17. glrss
    Member
    Posted 4 years ago #

    Have you tried switching the default theme?

  18. DianeV
    Member
    Posted 4 years ago #

    Quick note: when you unzip the WordPress download, it (in WinZip, at least) opens a window and displays all the files. If you then choose Extract, it will dump the files into whatever folder you choose, and will *maintain the folder structure* of the files -- meaning, the resulting wordpress folder will have other folders in it, with the files in the proper folder.

    Otherwise, you get one folder with a zillion files in it.

  19. ricjo
    Member
    Posted 4 years ago #

    No. Wont that mean I would loose all my personalization of my current theme?

    I think all the wordpress unzipping issue is corrected. I transferred the wordpress folder content to the /public_html/redmosquito and therefore I was able to upgrade successfully and then login to my administration account. All I can't do is see the blog...

    Thanks for replying ;)

  20. glrss
    Member
    Posted 4 years ago #

    You won't lose your current theme by switching to the default, but it will help to eliminate your theme as an issue. If your blog works with the default theme you know you need to check your current theme for problems.

    You should also try (if you haven't already) disabling plugins to see if one of those is causing a problem.

  21. JaneLitte
    Member
    Posted 4 years ago #

    It sounds like it is not picking up your theme. Can you delete your theme folder (after backing it up of course) and see what happens?

  22. ricjo
    Member
    Posted 4 years ago #

    Hmmm... I disabled all the plugins before updating, so maybe that's not the problem. I have backed up everything, so I suppose I can delete my theme folder. I just hope it keeps my personalizations, because it took me forever to do them... lol. I'll try swapping to the default theme and see if it works. If it desn't, I'll delete the theme folder but than I need you guys to help me upload it again from the back up ;)

    EDIT: it didn't work with the default theme. This error appears all the time: Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    So should I really delete the themes folder...?

    Thank you guys so much!

  23. Otto
    Tech Ninja
    Posted 4 years ago #

    Don't delete it, just rename the folder. Then WordPress will switch to the default theme, since it can't find yours.

  24. ricjo
    Member
    Posted 4 years ago #

    I changed the name, checked it and still nothing. I'm starting to despair and thinking of giving someone my password to access my cpanel and see what's wrong... Maybe it's the only solution I have left!

  25. JaneLitte
    Member
    Posted 4 years ago #

    Can you type in

    http://yourblog.com/redmosquito/index.php?wptheme=Wordpress+Classic

    and see if it pulls up your blog?

  26. ricjo
    Member
    Posted 4 years ago #

    Ok, finally (!!!!) it's working. The problem was a plugin. I had desactivated all plugins prior to updating. Apparently, after upgrading, it automatically activated all the plugins again. As I has deactivated them I never thought they were active. And as the wp 2.5 administration panel is slightly different, I didn't automatically find the plugin area to confirm if they were really deactivated or not (stupid). I just found it and to my surprise they were all activated. I've deactivated them all and now it works. I suppose I'm going to wait until all the plugins of my other blogs are updated for wp 2.5 and then I will upgrade them.

    Guys, thank you very much for your help and patience. Really. I appreciate it very much. Now I'm going to click the RESOLVED button ;)

    Thanks!

  27. DianeV
    Member
    Posted 4 years ago #

    I don't know if it's stupid; I'd also assume that plugins I'd deactivated would stay deactivated. Huh.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags