WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#8749 closed defect (bug) (invalid)

Plugin updater unpacks in wrong directory /wp-content/

Reported by: pampfelimetten Owned by:
Milestone: 2.7.2 Priority: normal
Severity: normal Version: 2.7
Component: Upgrade/Install Keywords: plugin updater
Focuses: Cc:

Description

Hi there,

i have multiple blogs at the same hoster, but on one of them, the plugin updater won't work: He fails after unpacking. Wordpress puts the zip-file in the "wp-content/" directory (NOT in the "wp-content/upgrade" directory) - Although everything got chmoded 777, reuploaded wordpress, etc...

After some debugging, this line in wp-config now works for me:

define('FTP_CONTENT_DIR', 'wp-content/');

What infos do you need for debuging?

Change History (4)

comment:1 pampfelimetten5 years ago

hm, still got problems. It works on some plugins, it won't work on others - can't figure out why.

Working:
DDay
AddQuicktag

Not working:
Search Everything
cforms

comment:2 follow-up: DD325 years ago

  • Component changed from General to Upgrade
  • Owner anonymous deleted
  • Version set to 2.7

thats odd that it works for some, not for others.

questions:

  • Which FTP method are you using? (Do you know? Sockets or Extension?)
  • When you connect via FTP, I'm assuming from your define, that the wordpress files are in /
  • Are you sure the files are not being unpacked into upgrade/ and then moved to wp-content/ (ie. no plugins directory)
  • Can you -install- plugins, rather than upgrade them

comment:3 in reply to: ↑ 2 pampfelimetten5 years ago

  • Keywords ftp_content_dir removed
  • Summary changed from Plugin updater unpacks in wrong directory, FTP_CONTENT_DIR not detected to Plugin updater unpacks in wrong directory /wp-content/

okay, I made some mistakes - I had a memory issue (the memory limit on this particular blog was too low). now I can update and install new plugins without problems - although wordpress still stores the zip file in the /wp-content/ directory instead of the /wp-content/upgrade/ directory. is there a reason for that?

  • Which FTP method are you using? (Do you know? Sockets or Extension?)

Sorry, that I don't know - is there a way to find out?

  • When you connect via FTP, I'm assuming from your define, that the wordpress files are in /

yes, they are.

  • Are you sure the files are not being unpacked into upgrade/ and then moved to wp-content/ (ie. no plugins directory)

it seems they get unzip INTO the upgrade/ dir.

  • Can you -install- plugins, rather than upgrade them

Yes, now I can.

comment:4 FFEMTcJ5 years ago

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.