WordPress / wp-autoupdates

Feature plugin building a UI for opting-in to plugin, theme, and core auto-updates.
https://wordpress.org/plugins/wp-autoupdates/
GNU General Public License v2.0
56 stars 18 forks source link

Can't see the option to enable auto updates on the themes #139

Open andrija-naglic opened 4 years ago

andrija-naglic commented 4 years ago

From the screenshots in the readme.md I expected to see the option to turn on auto updates for the default theme I have on this site.

This is what I see.

image

The theme without pending updates is also not showing the option to turn on the auto updates.

Any directions on what should I inspect to figure this one out?

The plugins GUI looks fine.

audrasjb commented 4 years ago

Hi @dev-masta, and thank you for opening this issue,

I think it's probably a caching issue as we rely on JavaScript to display auto-updates informations on this screen (this won't be the case in WordPress Core). Could you please try with another browser or after cleaning all your caches (potential cache WP plugins and/or browser cache)?

Thanks!

pbiron commented 4 years ago

@dev-masta Two questions for you:

  1. what operating system is the site running in? (Unix/Linux, Windows, OSX, something else)
  2. do you see any errors in your browser's console? For example, something like:

wp-autoupdates-js-error

pbiron commented 4 years ago

One other question: what version of the feature plugin are you using?

andrija-naglic commented 4 years ago

Thank you @audrasjb and @pbiron for a quick response.

I've tried cleaning cache and different browser, but the option still didn't show up. That is my local development site, full of plugins, but I don't use any additional caching options or plugins. OS is Win10 with Chrome (tried Firefox also, same).

The version of the plugin is from master branch, 0.8.1

Indeed, @pbiron is on the right track, I saw this error but thought it was related to another plugin I'm in the middle of development. This is the screenshot:

image

pbiron commented 4 years ago

Thanx for confirming my suspicion. My dev machine is Windows as well and I'm using 0.8.1 locally...and getting the same behavior as you are. On a live site (Linux) also running 0.8.1 it's working as it is supposed to.

The problem is https://github.com/WordPress/wp-autoupdates/blob/master/functions.php#L84.

The odd thing that that line has been in place since 0.7.0 and was working for me on my Windows machine prior to now. Still trying to figure out exactly what's going on.