0

I've implemented this class for update my plugin, I've followed this tutorial.

I tested the update in localhost using XAMPP and everything works well, but unfortunately when I test on a live site I get a weird situation that doesn't allow me to update the plugin.

Essentially, I can see the update notification in the panel, when I update the plugin seems that everything was done correctly but for some reason in the plugins folder I get this:

enter image description here

As you can see the plugin folder has been replaced with a temporary one, within get-IO5hpY there are the updated plugins file. So here the question:

Why wordpress replace my plugin folder name which is my-plugin with get-IO5HpY?

1
  • Have you raised this with the authors of that class? The tutorial you're following is using code from github.com/jarkkolaine/wp-license-manager-client which is 7/8 years old now, it may not be the best solution for creating a license system and you can raise issues on that github with the author
    – Tom J Nowell
    Sep 23, 2022 at 16:10

1 Answer 1

2

Your 'uploaded-plugin'.zip must contain all your plugin files in subdirectory named as your plugin subdirectory (in example "my-plugin").

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.