WordPress.org

Ready to get started?Download WordPress

Forums

Cannot redeclare class Plugin_Upgrader - WP Core (7 posts)

  1. Wil
    Member
    Posted 1 year ago #

    I've recently been getting the following PHP Fatal errors in my server log.

    [Tue Feb 05 03:15:03 2013] [error] [client 79.170.46.1] PHP Fatal error: Cannot redeclare class Plugin_Upgrader in /home/sites/<<REDACTED>>.com/public_html/wp-admin/includes/class-wp-upgrader.php on line 632

    I ran the site code for other class Plugin_Upgrader declarations but couldn't find any.

    Anyone else finding this error?

    Wil.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Can we see the rest of the error message please?

  3. Wil
    Member
    Posted 1 year ago #

    Hi @esmi

    That's the full error from the log file. The preceding and following log messages are from something else but here they are anyway.

    [Mon Feb 04 23:05:21 2013] [error] [client 41.86.108.228] WordPress database error MySQL server has gone away for query SELECT option_value FROM limecan_options WHERE option_name = 'disqus_cc_fix' LIMIT 1 made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/genesis/index.php'), genesis, get_footer, locate_template, load_template, require_once('/themes/<<REDACTED>>/footer.php'), wp_footer, do_action('wp_footer'), call_user_func_array, dsq_output_footer_comment_js, get_option

    [Tue Feb 05 03:15:03 2013] [error] [client 79.170.46.1] PHP Fatal error: Cannot redeclare class Plugin_Upgrader in /home/sites/<<REDACTED>>.com/public_html/wp-admin/includes/class-wp-upgrader.php on line 632

    [Tue Feb 05 08:18:39 2013] [error] [client 101.164.9.228] PHP Notice: Undefined variable: description in /home/sites/<<REDACTED>>.com/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php on line 796, referer: http://www.<<REDACTED>>.com/wp-admin/plugins.php

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Try re-uploading all files & folders - except the wp-content folder - from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

  5. Wil
    Member
    Posted 1 year ago #

    Thanks @esmi

    Would reinstalling 3.5.1 from the UI do the same or does that just overwrite existing files, leaving old files intact?

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    Re-installing from the UI is never as good as deleting and re-uploading via FTP. As far as I am aware, the former simply over-writes and there is a small chance of file corruption during that process.

  7. Wil
    Member
    Posted 1 year ago #

    OK - thanks @esmi

    I'll try the FTP method in my regular update window later on today and will let you know if it makes a difference.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.