Keep getting these meessages when I activate plugins

by 8 replies
10
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?
#programming #activate #meessages #plugins
  • 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
  • Please do tell us what is on class-snoopy.php on line 33, it will help us figure out your problem!
    • [1] reply

    • Ok, I'll open class_snoopy.php in frontpage but how do I find line 33? Do I just count down to line 33 or can I do a "find" search?
  • 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?
    • [1] reply

    • 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?
  • 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?
  • 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.
    • [1] reply
    • 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');}
  • Banned
    [DELETED]

Next Topics on Trending Feed