• Hi all
    Hope you can help, I did the upgrade to 4.5.2 and then – no admin to site, white screen (plus errors if debug on).
    I have now put on debug to log file, there are warnings, the fatal error is this:

    [21-Jun-2016 14:14:51 UTC] PHP Fatal error: Cannot redeclare class WP_Screen in …/wp-admin/includes/screen.php on line 209

    I have switched off all plugins inc askimet, except w3-total-cache since the website still works live, so don’t want to mess up the cache. if this is the problem, is very risky to remove (or switch off) the cache and lose the site forever. At least it is still working.

    Previously:
    I had a white dashboard, only the left side menu showing for plugins, WP functions showed a white screen. I fixed this by a one line edit to screen.php (and was working fine). I have tried it now with original and edited screen.php version, same fatal error.

    I have tried replacing http.php with an older one (4.4) this has made no difference.

    Tips welcome!
    I am OK with a bit of coding.

    Thanks all, Geoff

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you can’t get into your admin dashboard, try resetting the plugins folder by FTP. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen, etc.) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If all the above steps do not resolve the issue, then try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong.

    Thread Starter Geoffd99

    (@geoffd99)

    Hi
    I switched off the themes, no effect. Yes I am only able to use ftp to access the site.
    I have thought of rolling back, is drastic so will be last.

    Question: Do you know if switching off the w3-total-cache plugin will remove the cached version of the site? It still works fine, including old, all, pages, posts etc.

    Also, when logged in, and viewing the site, I get the dashboard bar at the top, but nothing works (get white screen).

    Thanks

    Moderator t-p

    (@t-p)

    I switched off the themes, no effect

    After switching “off”your theme, did you try switching to the unedited default Theme (Twenty Sixteen, etc.)?

    Do you know if switching off the w3-total-cache plugin will remove the cached version of the site?

    Yes.

    I have a similar issue. This is what pops up when I type in my website address

    Fatal error: Cannot redeclare class WC_Shipping_Zones in /home/blazinho/public_html/franklydapper.com/wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php on line 17

    I’m in the process of building this site and once I updated to the new theme and or plugins the website crashed.

    Thanks for the help!

    Moderator t-p

    (@t-p)

    @lcjones123,

    If the troubleshooting already posted made no difference for you, then, as per the Forum Welcome, please post your own topic.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    @geoffd99 Make very sure that you update *all* the files. Not just the ones in /wp-includes and /wp-admin, but also the files in the root directory, like wp-settings.php.

    This problem usually is caused by an incomplete upgrade. Classes in WordPress move around sometimes, and if you have a partial upgrade only, then you may have a mix of old and new files. That won’t work, for obvious reasons.

    Do a Manual Upgrade and be sure to replace all the files properly. Read the instructions carefully.

    Thread Starter Geoffd99

    (@geoffd99)

    The themes are the defaults, and Primepress, so I leave it on.

    (I do not have site access, login gives a white screen, and debug log gives the fatal error above.
    I have to rename themes, plugins (to switch off) in ftp.

    The other 2 themes are twentyten and twentyeleven. These are no problem.
    If I turn off (rename) w3-total-cache I will lose the live site.

    So perhaps I have to do a manual rollback. I have this:
    https://tbwhs.com/blog/wordpress-rollback/

    Unfortunately I don’t know the old version, I guess it was the one with twentyeleven, ie, WordPress 3.2 in 2011. That was about when the site was made.

    Question: Is there a file anywhere that has a site history (ie, versions etc)? I can’t find anything.

    Thanks everyone!

    Thread Starter Geoffd99

    (@geoffd99)

    Hi
    yes I had a screen shot of the working site admin, it is WP 3.3.2

    The upgrade to 4.5.2 must have been too much for it.

    So will do manual rollback.
    I will keep you posted with developments for the record and use by others.

    Thanks all.
    Geoff

    Moderator t-p

    (@t-p)

    Why are you using an old copy of the WordPress? Where you aware it’s vulnerable to hacking? I suggest update your installation to the latest 4.5.3 asap.

    Since you will be upgrading across more than two major releases, follow these instructions: https://codex.www.ads-software.com/Upgrading_WordPress_-_Extended_Instructions
    – Pay particular attention to the ‘upgrade across multiple versions’ section: https://codex.www.ads-software.com/Upgrading_WordPress_Extended#Upgrading_Across_Multiple_Versions

    Thread Starter Geoffd99

    (@geoffd99)

    This site upgrade got missed out, across many sites. It has Wordfence and a few other security plugins.
    Other sites I look after (non-commercial) are now on auto upgrade. This one soon will be! (I hope).

    Thanks Geoff

    Moderator t-p

    (@t-p)

    Along with WordPress, also update all your plugins and themes on this site.

    Chances are your currently used plugins and theme on this site are also outdated!

    Updating wordpress to 4.5.3 brings up this error:


    Fatal error: Cannot redeclare class WC_Shipping_Zones in /home/sitefolder/public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php on line 17

    Thread Starter Geoffd99

    (@geoffd99)

    Hi all
    just did the rollback/direct install to v 3.3.2 (following WP instructions).

    This did not work,
    I just got a blank page, and none of the php links worked;
    also the site was offline
    (I used an index.htm to show maintenance).

    So I reloaded the actual backup and it all sprang back to life.

    It seems to still be working (but no admin access) as I switched on a form plugin, which then started working again instead of showing the [form tag].

    So: if it is all working OK, even showing the dashboard row at the top of the screen, but I can’t use admin (ie do any more work on it), how can I get admin back?

    I have tried the screen.php edits which have been used for ‘whitescreen’ admin areas. No effect.

    Thanks

    Thread Starter Geoffd99

    (@geoffd99)

    Or if this site is damaged:

    how to add a post or page directly using mysql and/or ftp?

    This page could be coded up using an existing page… then put in the index somehow. Hmm links.

    Ideas welcome

    Thanks

    Moderator t-p

    (@t-p)

    Fatal error suggests that your “woocommerce” plugin is likely the error.

    Delete/Repair/reinstall/upgrade this plugin using FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required).

    Make sure ALL your plugins and themes are up to date (i.e., compatible with WordPress 4.5.3)

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Upgrade to 4.5.2 get PHP Fatal error: Cannot redeclare class WP_Screen’ is closed to new replies.