cedaro / satispress

Expose installed WordPress plugins and themes as Composer packages.
500 stars 49 forks source link

Newer packages not listed in packages.json #110

Closed Xilonz closed 4 years ago

Xilonz commented 4 years ago

After updating some of the plugins and themes, I wasn't able to update using composer. It turns out that my packages.json only lists the oldest version (or initially installed version) available. The backend (satispress -> packages tab) correctly shows all available packages.

This isn't caused by any caching issue, because if I install a new plugin or theme it correctly shows in in de packages.json.

bradyvercher commented 4 years ago

The Packages tab and packages.json both use the same code to list the versions, so that's strange that they'd show in one place and not the other. If they're showing on the Packages tab, then the cached released must exist in the wp-content/uploads/satispress-***/packages directory. I'd verify that those files exist and you can download them from the Packages tab first.

Otherwise, you might check to see if it's a permissions issue. The releases that show in the packages.json output are transformed and filtered here.

Xilonz commented 4 years ago

Hi, I'm not sure what went wrong and I can't reproduce it. It all seems to function now.

bradyvercher commented 4 years ago

Glad to hear everything is working and thanks for following up on this!

jeff-becker-projekt202 commented 3 years ago

I just experienced this issue as well. Specifically a new version of a theme was not published out to packages.json until I made additional themes available and clicked 'Save Changes'. Once I did that, the new theme versions were visible in packages.json