Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Filename plugin bug
Avatar
Andy B
Member
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2013 - 6:45 am

I have found a bug with uploading plugins:

 

Description:

If the file name of the downloaded plugin is different from it's default name then it will break the site, give errors and cannot be recovered unless manually renaming.

 

How to reproduce:

  1. Download a plugin - e.g. 'featured.zip'
  2. Download the same plugin again and notice the name of the second one - e.g. 'featured (1).zip'
  3. Upload the 2nd downloaded plugin, and try to Activate it

Observed result:

See picture attachment

 

Reproducibility:

100%

 

How to recover:

In this case I used FTP to rename the folder 'featured-1' -> 'featured' and then everything was fine again.

 

Screen-Shot-2013-10-27-at-11.32.13.pngImage Enlarger

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Oct 27, 2013 - 7:27 am

When WordPress downloads a plugin zip file it downloads it to the WP 'uploads' folder which is divided up into sub-folders representing years and months. After it has unzipped the files while copying it to the correct location it then deletes the original zip file.

Except that sometimes it can't perform the delete. And if you then subsequently download a second version, rather than overwrite it - it adds a -1 to the end. And this causes havoc.

So far we have been unable to determine why this sometimes happens as well, of course, as being unable to change the WP core code.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Andy B
Member
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2013 - 7:54 am

When I say download, I am talking about downloading a plugin form:

https://simple-press.com/downl.....d-plugins/

and downloading to laptop/macbook. It is the macbook that alters the filename because a file with that name already exists in the directory (because I must have already downloaded that plugin in the past OR coincidentally a file of the default name already exists in the download folder). And then attempting to upload that simplepress plugin with the altered name causes the problem to occur.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 27, 2013 - 10:34 am

not much we can do if your computer is renaming our file...  just takes a bit of care... and as you mention, its easy to resolve if incorrect named plugin is uploaded...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625