Comments (7)
It's hard to figure this out without actually looking at the repository, but here are some suggestions:
- Does the version tagged 1.2.0 also have
1.2.0
in the plugin header? If the actual plugin version doesn't match the tag name (aside from thev
prefix), that can sometimes cause strange problems. - Is the update checker actually looking at the tags? There's no built-in logging for that, but you could set up a proxy or a WP plugin that logs outgoing HTTP requests and see what API requests it sends.
- On a related note, does the 1.1.4 version number come from a tag or maybe a branch? If the debug output includes a download URL, you might be able to figure out the answer based on that.
- Could you be hitting the API rate limit? In cases where only some of the requests get rate-limited, it could cause the update checker to use the wrong version.
from plugin-update-checker.
Hi Yahnis,
Based on your 4 suggestions, yes all my tagged versions have the version number in the plugin header and yes, the update checker is looking at tags. What I didn't mention is that I've been using your plugin update checker the same way on several sites without any problem until today on the websites using THAT plugin.
The 1.1.4 version number comes from an old tag. It seems like the update checker "finds" a cached value but I don't have cache plugin and the server cache is disabled. That's why I don't understand what's occurring.
The only thing I change in my process is that my gitlab repository used groups and I transferred the project to my namespace. But I don't think it's the problem since in gitlab when I check for updates my personal access token is used.
I don't manage to find a solution at the moment and I hoped you could have encountered the same problem before. But I will look forward: if I find an answer I will come back to tell what the problem was.
Thanks
from plugin-update-checker.
The only thing I change in my process is that my gitlab repository used groups and I transferred the project to my namespace. But I don't think it's the problem since in gitlab when I check for updates my personal access token is used.
This part stood out to me. I'm not very familiar with GitLab, but could this mean that the repository URL changed, or that GitLab is serving an outdated copy at the old URL, or anything like that?
from plugin-update-checker.
The only thing I change in my process is that my gitlab repository used groups and I transferred the project to my namespace. But I don't think it's the problem since in gitlab when I check for updates my personal access token is used.
This part stood out to me. I'm not very familiar with GitLab, but could this mean that the repository URL changed, or that GitLab is serving an outdated copy at the old URL, or anything like that?
Yes, transferring a project from a group to a personal namespace means the repository url is going to change.
from plugin-update-checker.
I see. It does seem like it might be useful to check if PUC is sending the requests to the correct URL and getting the expected responses from the API. For example, you could log them with this plugin.
The more popular Query Monitor plugin also logs HTTP requests, but I don't think it's going to work in this case since it only shows requests sent during the current page load. As far as I know, requests sent from AJAX and Cron handlers don't show up, and if an admin page triggers a redirect, the target page doesn't "see" requests sent on the previous page.
from plugin-update-checker.
Thanks for your answer. @jakeparis : I did change the URL
@YahnisElsts I installed the plugin you told me. And I don't have any error : the request is done and the URL is ok. The plugin sees all my tags from version 1.1.4 to the last one (1.2.0).
As I'm quite limited with that issue. I will try to make a new repository for my plugin to have a really "clean" starting point and I will see. Will come back here soon to give you the results. Thanks for your advices.
from plugin-update-checker.
Hi! It's been a while but I solved my problem. I just re-create another repo from the top with a new access token and the difference is that in the new repo I didn't use the group. I don't really know what was my problem but with the new repo, everything is ok.
Thanks for your help anyway!
Xavier
from plugin-update-checker.
Related Issues (20)
- Fatal Error: Unable to determine if plugin or theme HOT 7
- Add query arg to requested .php file HOT 4
- Exclude repo file when updating my plugin HOT 1
- Not seeing "Install Update Now" button in plugin details popup HOT 5
- installed plugin on view details showing "install Now" instead "latest Version installed" HOT 2
- Lite version of the project HOT 8
- Calling the project in a file other than core HOT 8
- Attractive proposal for development HOT 3
- My Plugin Has Update. but WP shows it's up-to-date HOT 2
- Report a bug HOT 4
- [Feature] Check for updates if WP-CLI checks for updates HOT 6
- 'puc-github-http-error' Issue HOT 13
- Request : Please Update *How to Release an Update* Section HOT 2
- How to set up a Github App for a private repository HOT 2
- GitHub API error. Base URL: "/repos/:user/:repo/contents/update-checker.php", HTTP status code: 404 HOT 1
- Activate plugin: Uncaught Error: Class "YahnisElsts\PluginUpdateChecker\v5p3\Plugin\Ui" not found in /var/www/html/wp-content/plugins/seoai-client/plugin-update-checker-5.3/Puc/v5p3/Plugin/UpdateChecker.php:78 HOT 2
- Updated from version 5.3 to 5.4 and receiving Puc/v5p4/Autoloader.php not found HOT 3
- Plugin Description and Changelog HOT 6
- PUC on shared hosting HOT 4
- Releases and Tags HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-update-checker.