Giter Site home page Giter Site logo

Comments (7)

YahnisElsts avatar YahnisElsts commented on June 11, 2024

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 the v 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.

maath0712 avatar maath0712 commented on June 11, 2024

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.

YahnisElsts avatar YahnisElsts commented on June 11, 2024

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.

jakeparis avatar jakeparis commented on June 11, 2024

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.

YahnisElsts avatar YahnisElsts commented on June 11, 2024

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.

maath0712 avatar maath0712 commented on June 11, 2024

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.

maath0712 avatar maath0712 commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.