WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error after upgrade attempt from 2.5.1 to 2.7 (18 posts)

  1. truck808
    Member
    Posted 3 years ago #

    Please help: I received the following error:

    Fatal error: Call to undefined function language_attributes() in /home/speroinc/public_html/wp-content/themes/SPERO2/header.php on line 2

    I followed instructions to manually upgrade from 2.5.1 to 2.7.

    After uploading the files I went the blog site [ http://www.speroinc.org/wp-admin ] to initiate the upgrade.

    I followed instructions to upgrade the database - which I did successfully.

    However, now I can not log in with my password and I get the fatal error when I try to view the home page.

    Thanks, Robert

  2. truck808
    Member
    Posted 3 years ago #

    Also, when I try to retrieve my password I get the following message:

    Sorry, that user does not seem to exist in our database. Perhaps you have the wrong username or e-mail address? Try again.

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    Try:
    - switching to the Twenty Ten theme by renaming your current theme's folder in wp-content/themes using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

  4. truck808
    Member
    Posted 3 years ago #

    Hi esmi and thank you.

    I changed the name of the theme folder to Twenty Ten and the fatal error is gone.
    But now I have a blank screen.
    I only had 4 plugins that I was using and I deactivated them all before upgrading.
    Still have issues logging in too.

    Any ideas?

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    Try re-running the upgrade manually using /wp-admin/upgrade.php in case the upgrade wasn't fully completed.

  6. truck808
    Member
    Posted 3 years ago #

    As for resetting the plugins folder, I can not find the active_plugins row in phppMyAdmin. I would use FTP but can not log into my wp-admin menus.

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    You don't need admin access to use FTP.

  8. truck808
    Member
    Posted 3 years ago #

    re-ran the upgrade and got this message: There's actually only one step. So if you see this, you're done. Have fun!

    But, I still have a blank screen and can not login to the dashboard. ugh!

    Does a blank screen mean it can not find my theme or can not find the database (or both?)

    Also, why did you have me change the name of my theme folder? Should I change it back.

    Many thanks.

  9. esmi
    Forum Moderator
    Posted 3 years ago #

    Does a blank screen mean it can not find my theme or can not find the database (or both?)

    Not sure yet...

    Also, why did you have me change the name of my theme folder?

    Becuase your theme could have been causing the problem. Changing it's folder name forces the Twenty Ten theme to be activated. Can you check to see if you have a twentyten folder in wp-content/themes and that it is populated with .php and .css files? It probably wouldn't hurt to upload a fresh copy of Twenty Ten to your site.

  10. truck808
    Member
    Posted 3 years ago #

    OK, just uploaded twentyten into my themes folder. The only themes that came with 2.5.1 were in folders called default (kubrik) and classic.

    Now, On the home page, I received this again:

    Fatal error: Call to undefined function language_attributes() in /home/speroinc/public_html/wp-content/themes/default/header.php on line 2

  11. Wait on 2.7 were we using Twenty Ten or the old Default theme?

    AH! Yes we were using default! Do you have wp-content/themes/default installed?

    You can get it here: http://wordpress.org/extend/themes/default

  12. truck808
    Member
    Posted 3 years ago #

    Hi Ipstenu.

    I was using a modified version of the default theme called SPERO2.

    But, I just created another problem for myself.

    I restored back to 2.5.1 just to see if I could still login in and view the site if I couldn't solve the upgrade issue quickly.

    It worked fine BUT for some reason I switched my theme to twenty ten and got a fatal error. When I went back to my theme SPERO2 I lost my page content for all my pages (home, about, contact, etc...). All my blog posts are fine.

    I checked the phpMYAdmin and all the content seems to be there.

    Don't kill me - and help if you can!

    Thanks, Robert

  13. Don't use Twenty Ten yet. That was written for WordPress 3.0, and you're not there yet :)

    If your content is in the database, we won't worry about that for a moment :)

    I would copy the 2.7 files back up, ESPECIALLY the default theme folder. If your special theme was using the same folder name (which ... is bad, don't do that), make sure you have a good backup.

  14. truck808
    Member
    Posted 3 years ago #

    Well, I think I did some damage when I tried the Twenty Ten theme with 2.5.1.

    I've deleted Twenty Ten from my server for now.

    I have three themes in my theme folder.
    1. classic
    2. default (This is a modified version of Kubrik but styles.css uses the theme name default
    3. SPERO2 -This is the version I am using, This is the same modified version of Kubrik but styles.css uses the theme name SPERO2

    I'll copy the 2.7 files back up per your advice but before I do I wan't to tell you what I see going on.....

    In the manage pages section of the dashboard, instead of the usual list of pages to edit it says "No pages found."

    Now, all the pages have all turned into posts. In other words, the contact page is now a post at http://www.speroinc.org/?p=8 instead of a page where it used to be at http://www.speroinc.org/?page_id=8

    Hope this is not too confusing. Should I try to remedy this before I move forward?

    Thanks! I really appreciate your help.

  15. truck808
    Member
    Posted 3 years ago #

    OK, I see in phpMyAdmin that I can change post types from post to page and it will fix my page issue. Then, I'll copy back the 2.7 files and let yo know what happens.

  16. truck808
    Member
    Posted 3 years ago #

    Hi Ipstenu

    I copied back the 2.7 files including the default theme folder.

    I received the following after upgrading at /wp-admin/upgrade.php:

    WordPress database error: [Duplicate key name 'comment_approved']
    ALTER TABLE wp_comments ADD KEY comment_approved (comment_approved)

    WordPress database error: [Duplicate key name 'post_status']
    ALTER TABLE wp_posts ADD KEY post_status (post_status)

    Step 1

    There's actually only one step. So if you see this, you're done. Have fun!

    When I visit the site home page I see this:

    Fatal error: Call to undefined function language_attributes() in /home/speroinc/public_html/wp-content/themes/SPERO2/header.php on line 2

  17. esmi
    Forum Moderator
    Posted 3 years ago #

    There's a problem with your current theme. Try renaming wp-content/themes/SPERO2 to wp-content/themes/SPERO2-old.

  18. truck808
    Member
    Posted 3 years ago #

    Hi esmi. You are right about it being my theme. I created a new folder with a clean install of wp 2.7. The default works fine. When I try switching to my theme I get the error.

Topic Closed

This topic has been closed to new replies.

About this Topic