YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.22k stars 403 forks source link

Update failed: The theme is up to date - WordPress Theme #483

Open deepak-mind opened 2 years ago

deepak-mind commented 2 years ago

Hi,

I tried this with my local and it was working fine until I worked on different branch, when I change my branch to master. It seems doesn't work. can you please help me to resolve this.

 `$themeUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
            'https://bitbucket.org/repolink',
            get_template_directory(),
            'theme-name'
        );

        $themeUpdateChecker->setAuthentication(array(
            'consumer_key' => 'XXXXXXX',
            'consumer_secret' => 'XXXXXXX',
        ));

        $themeUpdateChecker->setBranch('master');
        $themeUpdateChecker->checkForUpdates();`
YahnisElsts commented 2 years ago

I'm not familiar with this particular error, but my first guess would be that the version numbers don't match somewhere. For example, maybe the update information was cached before you changed the branch, and the new branch has a different version. Verify that the version number that you see when you try to install the update matches the version number in the branch.