-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theme Update Mechanism Not Working as Expected #587
Comments
Not as far as I recall.
Again, not as far as I recall. As long as the code actually runs, and it runs reasonably early (e.g. before update-related hooks), and the arguments passed to
What do you mean by "the theme does not fetch updates as expected"? I'm guessing that it means that updates don't show up at all, but I wanted to clarify in case it's something like "updates are being fetched from the wrong place in the repository". One debugging step I would recommend is to install the Debug Bar plugin and look at the "PUC (lofftrum)" panel in that plugin. Does all the information there look correct for your theme? If you click the "Check Now" button, what do you get as the result? |
When i look at Debug Bar in PUC (lofftrum) i don't get anything, it is just a white screen. |
Probably a PHP error then, or - less likely - a JS error. Please check the PHP error log for recent fatal errors. If there's nothing there, check the browser console for JS errors before/after you try to open that panel. |
There was indeed an error where the debug-bar.js file was forbidden. We have fixed it, and debug bar now indicates that there is an update. However, the next problem is that WordPress does not show that there is an update. |
Here are a few more things to check:
|
We've checked the following:
The update is detected and visible in the Debug Bar under the "An Update Is Available" section. Here’s the relevant Debug Bar output for reference: Configuration
Status
An Update Is Available
|
Hmm, all of that looks fine. I don't know why it wouldn't work. At this point, if I had access to the code, I would probably start adding some debug output or breakpoints to |
Issue: Update Mechanism Not Working as Expected for Theme
We are using GitHub to host both our WordPress themes and plugins, and we rely on GitHub releases for production and commits for our beta environments. While the update mechanism works perfectly for our plugin, we are encountering issues with the theme's update process.
Current Implementation:
We are using a child theme (lofftrum), and the update mechanism code is implemented in the
functions.php
file of the child theme. Below is the code that we have placed in the top of our file:Additional Details:
functions.php
.Issue Details:
Expected Behavior:
Observed Behavior:
Environment Details:
staging.isodeco.nl
,beta.isodeco.nl
main
branch.Steps Taken:
Questions/Help Needed:
functions.php
of the child theme impact its functionality?The text was updated successfully, but these errors were encountered: