• thebloke

    (@thebloke)


    Cannot redeclare class snoopy in /home/thebloke/public_html/wp-includes/class-snoopy.php on line 40

    I see that it was broken during the beta phase when the amazon wish list plugin is activated. I activated the plugin and my dashboard is coming up with the fatal error. I have the latest 1.5 installed. What can I do to fix the error?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kafkaesqui

    (@kafkaesqui)

    You could try removing the Snoopy class from the amazon plugin file, and see if it’ll use the included class in WordPress. I just checked and it starts at a little after line 300 in amazon-wishlist.php (version 1.2). Just start deleting with the beginning header:

    /*************************************************
    Snoopy - the PHP net client

    And remove *everything* right up to the final closing php tag in the file:

    ?>

    Note: Make a copy of the plugin file before doing this.

    Thread Starter thebloke

    (@thebloke)

    When I removed the lines you indicated, the Dashboard came back, but the amazon-wishlist applet failed. I checked and found a line that says

    $s = new Snoopy;

    So I am guessing it is trying to call the snoopy class from the wordpress included files, but perhaps it doesn’t know where to get it.

    How do I tell it to go look up the files in the wp-includes as I can see the class-snoopy.php as one of the files listed in that folder. Is there an include statement that you can use to let the php program know where to look for the files?

    Thanks!

    Thread Starter thebloke

    (@thebloke)

    Found the update at the author’s site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dashboard comes up with error message’ is closed to new replies.