Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#8273 closed defect (bug) (invalid)

updater bug in 2,7 beta3

Reported by: are79's profile are79 Owned by:
Milestone: Priority: normal
Severity: critical Version: 2.7
Component: Upgrade/Install Keywords:
Focuses: Cc:

Description

Upgrade WordPress

Downloading update from http://wordpress.org/nightly-builds/wordpress-latest.zip

Unpacking the core update

Fatal error: Cannot redeclare pclziputilpathreduction() in /home/ehibou/domains/ehibou.com/public_html/mecki/wp-admin/includes/class-pclzip.php on line 5432

Change History (4)

#1 follow-up: @ryan
17 years ago

Do you have a plugin that includes pclzip?

#2 in reply to: ↑ 1 @are79
17 years ago

Replying to ryan:

Do you have a plugin that includes pclzip?

I think I have. But anyway before declaring a class or function it would be good to check if it is not yet declared. Am I wrong?

#3 @DD32
17 years ago

  • Milestone 2.7 deleted
  • Resolution set to invalid
  • Status changed from new to closed

I think I have. But anyway before declaring a class or function it would be good to check if it is not yet declared. Am I wrong?

You're probably right, But the plugin obviously doesnt, And older versions of the class could cause conflict issues. The only plugins which utilise the PclZip class AFAIK have been updated, The main culprit was the Automatic upgrade.

The odd part about this error message, Is that its complaining about the functions which are included AFTER the class, Generally the error is that the class has allready been defined, NOT that a function has been declared.

I'm tempted to say that it could be a corrupt file, try re-uploading the /wp-admin/includes/class-pclzip.php file, Else you'll have to check each plugin, Simply adding a class_exists() check wouldn't've solved this error, nor do i think theres a need for it (Due to it being this way since 2.5, and all the plugins which utilise it have been updated).

So the solution is going to be to work out which plugin is causing the issue, and notifying the author.

#4 @ryan
17 years ago

Plugins shouldn't be requiring pclzip on every page load.

Note: See TracTickets for help on using tickets.