Git-updater: Doesn't Auto Update

Created on 27 Nov 2018  路  26Comments  路  Source: afragen/git-updater

I am using this plugin for the first time. So far I am loving the features and the UI but having problems with the cron updater.

My private github plugins and theme downloaded and installed perfectly. However they don't update. My host is wpengine and the wp-cron is running. Yet the wait for wp-cron to finish message doesn't go away and there is the red exclamation next to each project.

I tried running with the debug plugin and the logs are not providing any clues that I can see. There is no option to manually update each plugin or theme.

Furthermore my theme is not in the list of repositories so I am not sure if that is in the list to update automatically.

Please help!

All 26 comments

You might want to install the WP-Crontrol plugin to help troubleshoot whether there is a cron issue.

If you have the GitHub Updater Support installed and activated then WP-Cron will be bypassed. It might be best to start from here and make sure everything else works first.

Can you provide the headers for all the repositories you are having issues updating?

Also, please ensure you are using the latest release, version 8.5.0

Thanks for the quick reply.

The updater support plugin did not help me. The exclamation marks went away but the updates were still not automatically performed. I did not see any button to update manually.

Yes I am using the latest 8.5.0

If the icons went away then the API was correctly queried for each plugin. The cache is stored for 12 hours. You can manually clear the cache, forcing another API query (actually about 5-6 queries) and see more immediate results. If you are looking to have the update happen automatically with a git push you can set up a webhook. Please refer to the wiki for this.

It appears the plugin鈥檚 headers are correct.

Let鈥檚 make sure everything works before venturing on to webhooks and continuous integration. I really just wanted to let you know what鈥檚 possible.

OK! It turns out my cron jobs was disabled and I got it enabled.

[edit] It looks like it is working!

Excellent. Please close this issue once you鈥檝e confirmed.

What about the theme that didn鈥檛 show up in the repository listing?

Im so sorry. I thought it updated but it did not. What I did was update the version number in my plugins file from 1.0.2 to 1.0.3 and pushed it to github. I ran the update plugins cron job and the exclamation marks went away. But my plugin still says 1.0.2. Shouldn't it have updated the version number?

The theme still does not show up under GitHub tab. Should it appear there? I have made customizations and don't want to delete it. what can i do to make sure my theme will be synced?

The theme is also a private repository in case that makes a difference.

It shouldn鈥檛. Can you post the theme鈥檚 headers? Did you use GitHub Theme URI?

Are you tagging releases?

Oh no, I missed that. Thanks for that. I will add teh GitHub Theme URI. Will I need to re add the theme?

No I do not know how to tag releases, I am new to GitHub - I'll look it up. Is that a requirement for the updater to find the updates?

Are you on the Slack? You can get an invite from the link in the README. I might need you to DM me an access token or provide access temporary access to the repos for me to test.

Tagging not necessary but if you start you must continue otherwise you will end in a viscous cycle. Avoid it until you become more familiar with GitHub, etc.

Updates to plugins or themes will show just as if they were in the WP.org directory. You will see them on the plugins.php, themes.php, or update-core.php pages.

OK I got the plugin to update. Apparently it needed an actual code change, not just the version change. So that is all good now! Great!

Regarding the theme it is not registering the updates I just pushed including the GitHub Theme Uri. Does this mean I need to delete the theme and re-add? Or can I re install over it?

You will need to edit the theme on your site to fix the GitHub Theme URI or you could delete the theme and reinstall from the Install tab.

oh that's great! ok good point. I will try that.

Anything that sees the Version header bump will show an update. It doesn鈥檛 require actual code.

BTW, you can do a re-install by using the branch switching feature.

Yes!! The theme showed up in the list and it is updating! Wonderful! This is great. Thanks for the quick replies and helping me get up and running faster! I really appreciate it :) I am looking forward to using your plugin now that I understand how to use it :)

Thanks for the tip about branch switching. I will keep that in mind, it may come in handy for future updates.

@sagescrub you caught me at the right time. 馃槈

I feel very fortunate. I hope you have a wonderful evening :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uturnr picture uturnr  路  14Comments

picasso picture picasso  路  9Comments

andruwa13 picture andruwa13  路  3Comments

franzarmas picture franzarmas  路  8Comments

NoWorries picture NoWorries  路  5Comments