WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#7318 closed defect (bug) (invalid)

Fatal error: Cannot redeclare class snoopy

Reported by: jayant Owned by: 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)

comment:1 DD326 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.

comment:2 follow-up: westi6 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?

comment:3 in reply to: ↑ 2 jayant6 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

comment:4 DD326 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:5 DD326 years ago

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

comment:6 thee176 years ago

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