Closed Alireza-Ghavabesh closed 3 years ago
Some ideas:
Example-Plugin
). If your plugin has something like that, try changing the folder name to lowercase.The third parameter of Puc_v4_Factory::buildUpdateChecker
should be the theme or plugin slug. Your example response above is using the example slug unique-plugin-or-theme-slug
.
If you changed the JSON response in the issue to obfuscate your actual slug, that's fine. But I wanted to call out the possibility of a mismatch if you didn't update the your code to pull your specific slug.
thank you very much, my problem fixed
My problem was that the name of the new plugin was not equal to the third parameter
Hi thank you for building library...
when I click on update in plugins page it will be update but showing Update failed and a json like this:
{"success":true,"data":{"update":"plugin","slug":"unique-plugin-or-theme-slug","oldVersion":"\u0646\u06af\u0627\u0631\u0634 1.0.0","newVersion":"\u0646\u06af\u0627\u0631\u0634"}
I think most things seem to be true because of "success":true,"data" !
I would also like to say that after Update failed my old version plugin Successfully replaced.
Now what i have to do for fix Update failed to Update Successfully ???