Fatal error: Cannot redeclare class snoopy in .../wp-includes/class-snoopy.php on line 40 anyone have any expertise in fixing this?
I'm running a tubepress plugin on a wp blog. The error appears in my sidebar on the very bottom here: www.topbabes.info I'm still building the blog, but there seems to be little help. the error points to the class-snoopy.php file, and the line in question is calling "class snoopy" other than that... I have no idea
If you're running PHP from the sidebar, you'll have to use the execPHP plugin unless it's coded straight into your theme. I've got execPHP's URL posted at http://sitefever.com/plugins-used/ Thats the only thing I can think of right off the top of my head.
This error means you're declaring the same class twice or more. (Perhaps you're including the file in a loop). Or it just has been declared in another file or somewhere. It's hard to say without seeing your code. Or maybe another plugin is using the snoopy class...
I'm running standard wordpress, and I believe it's sidebar.php. (I pasted html into the sidebar widget) does that help at all? thx
any idea how I can search for another instance or call to the class? makes sense to error out when trying to redeclare. thx
Hard to say without seeing the code. But what you could try is putting the class (the one you know where it is) between a little if condition that goes like: if (!class_exists('Snoopy')) { // Put here all code for the class } PHP: