Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#7318 closed defect (bug) (invalid)

Fatal error: Cannot redeclare class snoopy

Reported by: jayant's profile jayant Owned by: westi's profile westi
Milestone: Priority: high
Severity: normal Version: 2.6
Component: Administration Keywords: reporter-feedback
Focuses: Cc:

Description

Error

Fatal error: Cannot redeclare class snoopy in /path/to/wp-includes/class-snoopy.php on line 47

Reproduction Instructions

Upgrade from Wordpress 2.5.1 to Wordpress 2.6

Areas Affected

  1. Administration Area > Dashboard > Incoming Links
  2. Administration Area > Plugins > Upgrade Plugin

Change History (6)

#1 @DD32
15 years ago

By the sounds of it, A plugin you are running has included a custom version of snoopy rather than relying on the WordPress builtin version.

The snoopy files are loaded via a require_once() AFAIK, It would be good to move the admin off the snoopy class(#4779), as for this error though, Checking to see if snoopy is allreaded loaded (if(class_exists())) could be added to the builtin snoopy file. Or the Plugin author which has included it could switch to the builtin version.

#2 follow-up: @westi
15 years ago

  • Keywords reporter-feedback added
  • Owner changed from anonymous to westi
  • Status changed from new to assigned

Agreed this sounds like it's plugin caused.

What plugins are you using?

#3 in reply to: ↑ 2 @jayant
15 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

Replying to westi:

Agreed this sounds like it's plugin caused.

What plugins are you using?

I did a grep for snoopy in the plugins folder and found 'Wordpress Automatic Upgrade v1.2.0.1' as the buggy one.

A fix for this is released in v1.2.0.2

Thanks,
Jayant

#4 @DD32
15 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

#5 @DD32
15 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

#6 @thee17
15 years ago

  • Milestone 2.6.1 deleted
Note: See TracTickets for help on using tickets.