WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Updating Twenty Eleven and Twenty Ten this morning broke Dashboard (32 posts)

  1. DWPenner
    Member
    Posted 1 year ago #

    Hello,

    I was just on my Webpress site and the desktop taskbar informed me it I had two things to update... the two themes Twenty Eleven and Twenty Ten. Since I am using the Shiword theme by TwoBeers Crew (3.02) and everything else is up-to-date I felt I could safely update the two themes without doing a backup. Big mistake. During the update I ended up with the white page of doom and the single error line:

    Fatal error: Cannot redeclare class Custom_Background in /homepages/2/#########/htdocs/##########/gnomestead/wp-admin/custom-background.php on line 16

    (I obscured part of the address, hope you don't mind I figured it best for site security...)

    I realized after that WordPress actually uses these themes for the dashboard. :-(

    I am going to try download the default themes from WordPress and install them right now. After which I will try to install a new installation over my WordPress. Everything was up-to-date as of 1am PDT this morning (12 or 13 hours ago) other than the two themes which were up-to-date last night.

    * * *

    Downloading and unzipping a new copy of Twenty Eleven into the Themes folder didn't fix things. (I renamed the old version) I am not sure if doing the same with the Twenty Ten will help... So next step... Reinstall WordPress???

    BTW I used FTP to disable the Plugins and it made no difference. (Renamed Plugins folder to Plugins.hold and tried to access the wp-admin and no luck. I reset the name back to Plugins)

    Now... do I manually remove all the themes except Twenty Eleven to force Twenty Eleven into place — removing the working Shiword theme... in order to try get the dashboard working, OR do I try reinstall WordPress over the old WordPress...???

    Would running install.php be of use?

    The board is up and running in Shiword at the moment other than the Dashboard not working. :-/ You can find it at:

    http://gnomestead.com/

    Darrell Penner

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try:
    - switching to the Twenty Eleven theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

    - running the upgrade manually via wp-admin/upgrade.php

  3. DWPenner
    Member
    Posted 1 year ago #

    Okay... I hope that you didn't missunderstand. I was already successfully updated to 3.4? I did that yesterday quite easily. This morning...well actually the noon hour... I saw the notification to update Twenty Eleven and Twenty ten.

    I just wanted to get that straight... now if they messed up the rest of WordPress... I run the Shiword theme. That is working fine. The Plugins were working fine. The only change was updating the two themes. I guess Twenty Eleven is what the Dashboard uses? I'll follow the instructions... but what will I be running the manual upgrade on? I have already uploaded a new copy of Twenty Eleven. I guess that would only leave Twenty Ten? ??? or do I have to do a manual update of 3.4 to 3.4?

  4. DWPenner
    Member
    Posted 1 year ago #

    PS will I have to reset things for my WebPress site not being on my Root? IE the address for the site is gnomestead.com but the actual files are in a subdirectory of gnomestead.com

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    No - that shouldn't matter.

  6. Do a manual update of 3.4.

    Were you using a child theme of TwentyTen or TwentyEleven?

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I guess Twenty Eleven is what the Dashboard uses

    No. as I expalined by email earlier, the Admin area uses its own CSS and "templates" drawn from wordPress core. There's no connection between Ternty eleven and the WP

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I guess Twenty Eleven is what the Dashboard uses

    No. As I explained by email earlier, the Admin area uses its own CSS and "templates" drawn from WordPress core. There's no connection between Twenty Eleven and the WP Admin area.

  9. DWPenner
    Member
    Posted 1 year ago #

    Okay. :-) I feel more confident about it now. I don't believe that Shiword is a Child theme of either TwentyTen or TwentyEleven, but I could be wrong. :-? I'll have to check. I am going to upload the new WP 3.4 files minus the wp-content folder right now.

  10. DWPenner
    Member
    Posted 1 year ago #

    You can find Shiword here: http://wordpress.org/extend/themes/shiword I'm not sure if it is a child theme or not?

  11. DWPenner
    Member
    Posted 1 year ago #

    Okay, it said no update required. Then when I clicked okay it went to a blank page. I then went and took the hold off the plug-ins and not change. Still a white page.

  12. DWPenner
    Member
    Posted 1 year ago #

    Oh, and if I revert the Shiword filename back, the board comes back to normal.

  13. DWPenner
    Member
    Posted 1 year ago #

    Did the error message:

    Fatal error: Cannot redeclare class Custom_Background in /homepages/2/#########/htdocs/##########/gnomestead/wp-admin/custom-background.php on line 16

    Mean anything? (I replaced part of the address with hashmarks The first set refer to my actual site and the second to the actual location on the site. I would rather obscure that from hackers. But can provide them...)

  14. I have to rewind this for a second... Do I have this right?

    You're using a different theme ( Shiword )

    You updated TwentyTen and TwentyEleven and your site broke.

    You deleted them, and it was still broken.

    You upgraded WordPress to 3.4 and it was still broken.

    Yes?

    (It's very possible your theme isn't 3.4 compatible, and if so, you should reinstall TwentyEleven and switch to that to see if it works.)

  15. DWPenner
    Member
    Posted 1 year ago #

    No, I updated to 3.4 — I believe, I can't access "About" to confirm, but I am 95% certain I updated WP to 3.4 in the last short while — It was running just fine. (actually make that 99.5% as WP told me that I didn't have to update...)

    Today, with WP running just fine, I was informed to update two items — TwentyTen and TwentyEleven — during the update of those two themes the backside broke.

    The site is still working just fine with Shiword.

    If I disable Shiword, the frontside breaks and displays a white screen. If I reenable Shiword the site comes back.

    I have Downloaded a fresh copy of TwentyEleven and disabled the existing copy of TwentyEleven and that copy does not help.

    I have used FTP to disable the plugins by renaming the Plugins folder to Plugins.hold as recommended by the Troubleshooting and here in this thread.

    I have Downloaded a fresh copy of 3.4 and uploaded it to my site with the exception of the wp-content folder.

    I manually upgraded to 3.4 by going to wp-admin/upgrade.php and my WP told e that there was no need to upgrade. I assume this means that the board was already running 3.4. Upon accepting this announcment I was directed to that blank white screen.

    I tried atain with the Plugins directory reenabled. Still the blank white screen.

    I reenabled the Shiword theme and, the board was back and running... but no backside.

    The only change I made was to let WP 3.4 update TwentyTen and TwentyEleven

    I could try and download a new copy of Shiword... but that seems to be working.... I could try download each of the plugins...

    I am at a loss... I'm no developer... just a very old school programmer !FLAG DB

  16. I manually upgraded to 3.4 by going to wp-admin/upgrade.php and my WP told e that there was no need to upgrade. I assume this means that the board was already running 3.4. Upon accepting this announcment I was directed to that blank white screen.

    Okay, for one, that isn't a manual upgrade :)

    Go here: http://wordpress.org/download/ and download 3.4, unzip, upload via FTP. That's a manual upgrade.

    If I disable Shiword, the frontside breaks and displays a white screen. If I reenable Shiword the site comes back.

    When you disable Shiword, what theme are you picking to use in its place?

  17. DWPenner
    Member
    Posted 1 year ago #

    LOL

    Apologies. I should have mentioned "FTP" when I said:

    "I have Downloaded a fresh copy of 3.4 and uploaded it to my site with the exception of the wp-content folder."

    What I had done was: I unzipped it removed the wp-content folder as Esmi instructed and then used FTP to upload it... Again, I am sorry I did not use the term FTP.

    I followed uploading it via FTP by running wp-admin/upgrade.php

    I was following step-by-step the instructions that Esmi gave me.

    Try:
    - switching to the Twenty Eleven theme by renaming your current theme's folder inside wp-content/themes and adding "-old" to the end of the folder name using FTP or whatever file management application your host provides.

    - resetting the plugins folder by FTP or phpMyAdmin.

    - re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress.

    - running the upgrade manually via wp-admin/upgrade.php

    I was told that when I renamed Shiword to Shiword-old WP would default to TwentyEleven? How should I pick another theme? I find that wishing doesn't do the trick. I only have four themes now. One is a duplicate of TwentyEleven called "broketwentyeleven" then there is shiword; twentyeleven; and twentyten. I renamed shiword to shiword-old. There is a file called index.php as well... however nobody said anything about editing it. Should someone have told me to edit it?

    I don't know what I should do if following the instructions step-by-step isn't appropriate. Right now I am at a loss and mentally exhausted. You may go to my site and see that it is working with that theme if you don't believe me that the theme is working with 3.4 http://gnomestead.com/

  18. DWPenner
    Member
    Posted 1 year ago #

    I have replaced everything except wp-content
    In wp-content I have replaced twentyeleven
    I have run it with shiword renamed to shiword-old and plugins renamed to plugins.hold

    I still could replace twentyten and I could replace shiword.

    I have a backup from a while ago of the database and the whole site. It is not extremely active so I do not back it up frequently. IE I have made one message yesterday and the message before was mid-May.

    I know it must seem like I am not following your instructions - because I am not coming back with the results you are expecting - but I have been involved with computer programming, computer science, electronic engineering, automation and robotics, and computer maintenance long enough to understand the importance of following steps...

  19. DWPenner
    Member
    Posted 1 year ago #

    Should index.php in the themes directory really just say

    `
    <?php
    // Silence is golden.
    ?>
    `

    Edit....
    I just checked another WP Blog of mine for comparison and see that it's index.php is identical. Sorry getting antsy and trying to figure out a next step in trouble shooting...Totally removing other Themes... reverting to an earlier version of WP? I'd rather not... Since the Front end is working... I figure the database is intact... so the issue is in the files that haven't been replaced. (Also since I can access the backdoor of my other WP sites it isn't a weirdness of my personal computer.) So it is in the files that were not replaced in the manual update...

  20. bcworkz
    Member
    Posted 1 year ago #

    It appears your version of shiword is not compatible with 3.4 or 3.3 and possibly earlier. shiword defines Custom_Background class in themes/shiword/lib/my-custom-background.php. WP tries to redefine the class again in wp-admin/custom-background.php, causing the error you see. What version did you upgrade from?

    It looks like shiword is trying to use a modified version the class, I'm not sure how it prevented WP from loading it's own version in the past, but whatever it is no longer works. If you must use this theme, you or it's developer needs to find a new way to keep WP from trying to redefine this class. If you do not have a current version of shiword, it may be a matter of simply updating.

  21. DWPenner
    Member
    Posted 1 year ago #

    Hi bcworkz, well, the problem is likely with Shiword. The problem is not being able to switch to TwentyEleven even by disabling Shiword at the moment... at least not with the help given me here... so far. (Not that I haven't had much help. HOWEVER Shiword just came out with something: (caveat — I haven't tried it yet.)

    Shiword + WP 3.4 = custom_background error

    WordPress just relesed its last update 3.4, which is great, with a lot of new amazing features and bla bla bla….

    The WP team also cleaned the code, changing the beaviour of some existing functions, like add_theme_support( ‘custom-background’)… the result is that Shiword will generate a fatal error!

    So, first of all, if you’re using Shiword, DON’T UPGRADE YOUR SITE TO V3.4 before making one of the following fixes!!!

    fix #1:

    go in theme options page, under “other” tab, and deselect the ‘custom background’ checkbox! Easy uh??

    fix #2

    Open shiword/lib/admin.php file and find the line

    add_theme_support( 'custom-background', array( 'callback' => $header_callback ) );

    (line 515 for shiword 3.02, and 395 for shiword 3.03)

    and delete the whole line

    fix #3:

    wait for Shiword 3.03.1 that will fix the problem

    Note: Shiword 3.03 is on the way to be published, but it doesn’t fix this issue

    ...Hmmm fix #3 seems to contradict itself.... ahhh 3.03.1!

    They do try to keep current. But I think they are just after the cusp of WP development instead of right on it. LOL Sort of like me...

    Since I can't get the Back end to work, I think I am stuck with option #2.

    I shall do that and return shortly. (I hope my block quote works... I can't find a preview on this forum...)

  22. DWPenner
    Member
    Posted 1 year ago #

    Okay, Option 2 worked.

    Thank you to each of you:

    esmi
    Ipstenu
    bcworkz

    Each of you contributed in your own way.

    Right now it is showing I only have to update TwentyTen. Ie TwentyEleven is up to date and I am running WP3.4

    I think I'll re-backup before updating TwentyTen LOL. I still have 5 or 6 boards to update. All but one are running TwentyEleven though. Perhaps one is on TwentyTen, but I think I changed that... I'll double check that one other one with a different theme... I don't know if I still run any on Suffusion. I used to use that alot. However Forewarned is Forearmed even or someone who has worked around computers for.. 2012 - 1972? Gulp.... 40 of my 54 years! erk!

  23. DWPenner
    Member
    Posted 1 year ago #

    PS I realized in retrospect that when I went to update, on the tool bar it read that there were 2 items to update. When I got to updates I looked and saw the two themes and checked them off... I didn't note that in the meantime the "2" had changed to "3" and WordPress 3.4 had been added to the list... WordPress 3.4 doesn't have to be checked... I realized this because when I looked at another of my boards to compare I noted how the numbers changed from 2 to 3 and how there wasn't a check box for WordPress 3.4... Maybe that should be changed? It would have caused me pause... pause to back-up first or suspect this is what the issue was. I wouldn't have necessarily known how to fix it and still would have had to ask for help... but it would have helped with the troubleshooting.

    Thanks once again!

    Sincerely,
    Darrell

  24. terryheff
    Member
    Posted 1 year ago #

    Thanks for your research Darrell. I had the exact same problem and option 2 worked for me as well.

    Cheers

  25. terryheff
    Member
    Posted 1 year ago #

    p.s. I want one of those hats :o)

  26. DWPenner
    Member
    Posted 1 year ago #

    That was why I came back — in case there were a few others in my situation — when the help the people here gave me led me to go back to TwoBeers and check their Forum... where I found that posting. It was made sometime yesterday not long before I posted it here.

    The hat... vintage 1978 or so. Bought in Banff Alberta. It's corduroy and got it's custom look partly by ending up on the floor of the back seat of my '70 Maverick or '72 Meteor for a Season, then ignored for a decade... Can't beat a beat up vintage hat. LOL It's sincere and since I grew up my first 19 years in Calgary Alberta, I'm entitled.

    Anyhow that's too much off topic.

    Glad I could help someone. Feel free to drop by my blog mentioned in the thread.

  27. patmatt
    Member
    Posted 1 year ago #

    I updated my twenty eleven theme and it completely removed all of my custom page templates. Luckily I had all of them but one locally. It would have been nice to know that updating wipes out EVERYTHING except the child theme settings. Even so.. i still had to go into my child theme and fix a few things. I little frustrating to say the least!

  28. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Please post your own topic. This has nothing to do with the OP's original problem.

  29. DWPenner
    Member
    Posted 1 year ago #

    Is it possible/would it help to alter the topic for the topic to reflect that the issue was with the Theme Shiword not being quite compatible yet?
    (I might not be able to respond for a while... I was just struck with a blinding migraine and can barely read to write this.)

  30. patmatt
    Member
    Posted 1 year ago #

    Whatever

Topic Closed

This topic has been closed to new replies.

About this Topic