Keep getting these meessages when I activate plugins

8 replies
Fatal error: Cannot redeclare class snoopy in /home/content/j/s/m/jsmith2482/html/buildmuscleandsixpackabs/blog/wp-includes/class-snoopy.php on line 33

Everytime I try to activate a plugin I get this error message. HELP!Why is this happening?
#activate #meessages #plugins
  • Profile picture of the author redbrad0
    Its typicall due to a include file is trying to be included twice somewhere in the application. Can you tell us what is on

    class-snoopy.php on line 33
    {{ DiscussionBoard.errors[296785].message }}
  • Profile picture of the author gotlinks
    Please do tell us what is on class-snoopy.php on line 33, it will help us figure out your problem!
    Signature
    Learn the secrets to growing your Youtube Channel!

    - Feel free to private message me about anything. I love to help people and you are definitely no exception!
    {{ DiscussionBoard.errors[296908].message }}
  • Profile picture of the author floatingatoll
    Originally Posted by jsmith2482 View Post

    Fatal error: Cannot redeclare class snoopy in /home/content/j/s/m/jsmith2482/html/buildmuscleandsixpackabs/blog/wp-includes/class-snoopy.php on line 33

    Everytime I try to activate a plugin I get this error message. HELP!Why is this happening?
    Can you list for us which plugins you have installed (either deactivated OR activated), and whether or not the "automatic upgrade" feature is enabled or disabled?
    {{ DiscussionBoard.errors[298379].message }}
    • Profile picture of the author jsmith2482
      Originally Posted by floatingatoll View Post

      Can you list for us which plugins you have installed (either deactivated OR activated), and whether or not the "automatic upgrade" feature is enabled or disabled?

      automatic upgrade is disabled. This is typically happening with sociable but I also get this when I try to activate wp-posterperiodic

      Fatal error: Cannot redeclare class pclzip in /home/content/j/s/m/jsmith2482/html/buildmuscleandsixpackabs/blog/wp-content/plugins/wp-posterperiodic/lib/pclzip.lib.php on line 162

      and WP-O-Matic

      Fatal error: Cannot redeclare class wpomatic in /home/content/j/s/m/jsmith2482/html/buildmuscleandsixpackabs/blog/wp-content/plugins/wp-o-matic/wpomatic.php on line 122

      Why is this happening?
      {{ DiscussionBoard.errors[299029].message }}
  • Profile picture of the author kettlewell
    try to disable all your plugins - then reenable the trouble one without any others and see if you still have a problem.

    Which version of WP are you using? Do you have access to the error logs on the server? If so, what do the logs say?
    {{ DiscussionBoard.errors[300681].message }}
  • Profile picture of the author pomspot
    These plugins are trying to include the "snoopy" class and it is already included successfully, likely in another plugin.

    Open the plugin php file(s) getting the error (look on the lines in the errors in the previous post) and also search for an "include" statementwhere it is likely attempting to load the snoopy class included in another file in the plugin directory. Try searching for "snoopy" in the plugin as well to see where it is used.

    A simple hack would be to remove or comment out the include line in the plugin file by adding an # as the first character on the line. There is a better fix but it would take much more explanation.
    {{ DiscussionBoard.errors[317242].message }}
    • Profile picture of the author FatherStorm
      change file /wp-admin/includes/file, line 484 (2.7.1) as follows

      from
      Code:
      require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
      to

      Code:
      if(! class_exists('PclZip')) {    require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');}
      {{ DiscussionBoard.errors[441348].message }}

Trending Topics