plugin-update-checker icon indicating copy to clipboard operation
plugin-update-checker copied to clipboard

Bad renaming when I updated from http:www/website/wp-admin/plugins.php

Open SalahKhouildi opened this issue 11 years ago • 17 comments

Hi,

When I update from http:www/website/wp-admin/plugins.php the plugin folder name is rename like username-pluginrepository-0b6ff025db8a4578bea1fdf10ff80c7c35da5efe and if I'll update from http://website//wp-admin/update-core.php the plugin folder is good and doesn't change. What can I do for not change the plugin folder name when I update it?

Thanks a lot for your answer.

Best regards,

Salah.

SalahKhouildi avatar Jul 27 '15 10:07 SalahKhouildi

That's a known issue with previous releases (it was caused by changes in WP core), but it should be fixed in the current master branch. Try that.

YahnisElsts avatar Jul 27 '15 10:07 YahnisElsts

Thanks for your answer! What should I try?

SalahKhouildi avatar Jul 27 '15 11:07 SalahKhouildi

It works! :)

SalahKhouildi avatar Jul 27 '15 12:07 SalahKhouildi

All right, that's good to hear. I'll close the issue for now; feel free to re-open it if the same problem happens again.

YahnisElsts avatar Jul 27 '15 12:07 YahnisElsts

In fact, I have the same problem if I'll update from Manage WP.

SalahKhouildi avatar Jul 27 '15 12:07 SalahKhouildi

The cause is probably the same. To know how to rename the folder, the update checker needs to know which plugin is being updated. ManageWP probably uses a custom updater or a custom updater skin, and the update checker doesn't know how to get the plugin file name from that.

I don't have a good place to test this, but 70011dbb524cb250884ba44b361dcf31e5279247 might fix that. Try the latest master again (i.e. re-download it).

YahnisElsts avatar Jul 28 '15 09:07 YahnisElsts

Hi Yahnis,

It's working with Manage WP!

Thanks a lot!

SalahKhouildi avatar Jul 28 '15 09:07 SalahKhouildi

All right, I'll package this patch as a proper release later today.

YahnisElsts avatar Jul 28 '15 09:07 YahnisElsts

Cool! Does your plugin works with themes?

SalahKhouildi avatar Jul 28 '15 10:07 SalahKhouildi

This one doesn't, but I have another library that does: http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/

It's a bit less flexible that this one, however.

YahnisElsts avatar Jul 28 '15 10:07 YahnisElsts

Is it work with private Github repository?

SalahKhouildi avatar Jul 28 '15 12:07 SalahKhouildi

No, that library doesn't support GitHub-based updates.

YahnisElsts avatar Jul 28 '15 13:07 YahnisElsts

I'm using the 2.2 release and WordPress 4.4.2 and the issue of not renaming seems to be back. When updating the plugin from the plugins screen (through ajax), it does not change the directory name back to the plugins directory name, resulting in a 'This plugin is disabled because the plugin file cannot be found' message.

lengthofrope avatar Feb 29 '16 14:02 lengthofrope

Try the master branch, it has a couple of recent bug fixes.

If that doesn't work, could you tell me a bit more about your setup? For example, are you using the JSON metadata format, or loading updates from GitHub? What does your .zip directory structure look like?

YahnisElsts avatar Feb 29 '16 17:02 YahnisElsts

The master branch is working indeed. Can you give an estimate when v3.0 arrives? Thnx!

lengthofrope avatar Feb 29 '16 23:02 lengthofrope

Soon-ish. 3.0 is pretty stable and I'll probably release it as-is. Just need to write up the release notes.

YahnisElsts avatar Mar 01 '16 12:03 YahnisElsts

Hurray! Thanks for your hard work!

lengthofrope avatar Mar 01 '16 14:03 lengthofrope