rudrastyh / misha-update-checker

This simple plugin does nothing, only gets updates from a custom server
124 stars 44 forks source link

Plugin folder gets renamed after each upgrade #7

Open mahdiyazdani opened 2 years ago

mahdiyazdani commented 2 years ago

It appears since the newest WordPress version (6.0+), upon a successful new version upgrade, the plugin folder gets renamed to something like misha-update-checker-n17qiE with an additional random string appended to the original folder name.

Do you happen to have any idea why?

voxsar commented 1 year ago

So when you create your update folder zip, make sure it's a folder inside a folder not the plugin contents directly inside the zip, so if you plugin folder woo-commerce-invoice-plugin, then inside your zip it should be woo-commerce-invoice-plugin/woo-commerce-invoice-plugin/

woo-commerce-invoice-plugin/woo-commerce-invoice-plugin/readme.txt woo-commerce-invoice-plugin/woo-commerce-invoice-plugin/index.php woo-commerce-invoice-plugin/woo-commerce-invoice-plugin/functions.php

ghost commented 1 year ago

I am also having this issue. In my plugins folder I have the misha-update-checker plugin folder with just misha-update-checker.php inside.

Then uploaded to a server elsewhere I have a folder called misha-update-checker and inside there are the banner image files, info.json file and the zip file.

Inside the zip file is misha-update-checker/misha-update-checker/misha-update-checker.php and the readme.txt file yet I still get the actual plugin being renamed and error The plugin misha-update-checker/misha-update-checker.php has been deactivated due to an error: Plugin file does not exist.

I have attached a screenshot of what the zip folder looks like once extracted. I have tried different variations and keep having the same issue.

files
joshbali commented 1 year ago

@Jonofat I hope you have worked it out by now but if not... create a singe folder "misha-update-checker" and move the misha-update-checker.php into this single folder. No subfolders and no other files. Then zip the whole folder and upload it as a plugin or simply upload the uncompressed "misha-update-checker" folder directly to your Wordpress plugins folder. All other files (banner, json and your zipped custom plugin) have to go to a folder on another or maybe the same server. Adjust the url's in misha-update-checker.php and the json file to your needs and you should be good to go.