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

404 not found on WordPress Updates page

Open kakshak opened this issue 5 years ago • 7 comments

Hi there,

Thanks for this plugin. It helped me to provide the plugin updates.

I just want to know one thing that, when I go to the WordPress Updates (update-core.php) page, it gives me a 404 error for v1.2 tag. Screenshot: https://prnt.sc/tnf7lm

I am using the Query Monitor plugin to see this.

Please help me with this.

kakshak avatar Jul 23 '20 18:07 kakshak

Does your repository actually contain a tag named v1.2 or is the update checker trying to load a non-existent tag for some reason? Also, what is the request just above the one that triggered a 404 error?

YahnisElsts avatar Jul 24 '20 13:07 YahnisElsts

Yes, the README.txt file contains Stable tag: v1.2 tag name (As my current plugin version is also 1.2).

Here, is the request just above the one that triggered a 404: image

kakshak avatar Jul 27 '20 08:07 kakshak

That makes sense, the update checker will try to retrieve the stable tag if it's specified. And is there actually a tag named v1.2? Note that v1.2 and 1.2 are not the same when it comes to tag names.

Assuming that the tag actually exists, the only reason I can think of why it would produce a 404 is the authentication default being incorrect, but the other requests work fine so that can't be it.

YahnisElsts avatar Jul 27 '20 12:07 YahnisElsts

Sorry, do you mean should I update from Stable tag: v1.2 to Stable tag: 1.2 in readme.txt file?

kakshak avatar Jul 29 '20 17:07 kakshak

The value of Stable tag should be exactly the same as the name of the tag. If the tag is called 1.2, you should change readme.txt to say Stable tag: 1.2

YahnisElsts avatar Jul 30 '20 15:07 YahnisElsts

Sorry, did it fix your problem? I am having the 404 error, but both my tag and stable tags params are 1.0.0.

geraldopp avatar Apr 01 '21 16:04 geraldopp

The issue discussed here only applies to BitBucket. GitHub has a different API.

YahnisElsts avatar Apr 01 '21 16:04 YahnisElsts