Tagged: updates
-
AuthorPosts
-
July 27, 2020 at 9:09 am #1233454
I’ve just found out that Enold does not check automatically for updates. So, I can’t see updates in my maintenance system (mainwp). Instead, I would have to login and check for updates manually for each customer site using Enfold. Can I fix this somehow? Can I trigger the update check using a cronjob?
- This topic was modified 4 years, 4 months ago by DFME.
July 28, 2020 at 8:45 am #1233691Hey DFME,
I’m not sure if updates from Envato/Themeforest are compatible with MainWP, but updates should appear in the backend if you have registered the theme and added a token to the theme options? https://kriesi.at/documentation/enfold/theme-registration/
Best regards,
RikardJuly 28, 2020 at 9:00 am #1233700Hi Rikard,
the updates via mainwp run ok. The problem is, that the theme is not always checked automatically for updates. Please, see the attached screenshot. The first screenshot shows the updates panel (today): No update available. After manually checking it clearly shows that there IS an update:
https://ibb.co/rx7dZQd
Some sites run the update check automatically, others don’t. So, I would rather use a cronjob to be safe. Is this possible?July 28, 2020 at 10:05 am #1233715I don’t see a pattern. I have several sites on the same server using pretty much the same configuration. Some check automatically for updates, others don’t. I can update some site via mainwp, others fail.This is very annoying. Would you please dig into it? This is very likely not a problem with Envato. I use the Betheme (via Envato) on at least 20 sites. The updates run with no problems at all. All Enfold tokens are validated and ok.
July 31, 2020 at 6:37 am #1234308Hi,
Thank you for the info.
Have you tried clearing the transients in the database? Does it display in the mainwp dashboard after manually checking for updates in the theme options? Unfortunately, we are not that familiar with the mainwp platform, so this will probably require additional assistance from the plugin developers.
You can use this plugin to clear the database transients.
// https://wordpress.org/plugins/transients-manager/
Look for the transient with your Envato username and the entry named “item_” followed by the item ID.
Best regards,
IsmaelJuly 31, 2020 at 9:30 am #1234322I tested it again. The issue is not caused by mainwp. Today, I checked manually for updates for the Enfold theme and checkd again in mainwp. It shows the available update. So, the problem is Enfold not performing the update checks automatically. Actually, this was my very first question: How can I trigger the update check without logging in? Some sites do perfom the update check. Does it depend on how often somebody logs in? I am pretty sure that my customers do not check for updates. Neither do I.
So, I would like to repeat my question: Can I trigger the update check via a cronjob. Please let me know.
Thanks,
Mike
August 3, 2020 at 1:34 pm #1234840Hi,
So, I would like to repeat my question: Can I trigger the update check via a cronjob. Please let me know.
This should be possible, but it will require modifications that are beyond the scope of support. Currently, the theme only checks for theme updates when a user access the admin or during an AJAX call.
It’s possible that the database transient or entry called avia_theme_latest_version still contains an older version or a version that is equal to the installed version, so it assumes that the installation contains the latest version or that a newer version is not available. Again, deleting the database transients should help you in this case.
Best regards,
IsmaelAugust 3, 2020 at 1:44 pm #1234847Currently, the theme only checks for theme updates when a user access the admin or during an AJAX call.
Well, this would easily explain, why some sites don’t show updates. Some customers almost never log in. The same is true for me, since I use remote maintenance whenever possible. The update check should not rely on user access to the dashboard but on the wp-cron. It would be even better if you could provide an URL that could be called via a cronjob. Is this a problem due to Envato restrictions?
August 6, 2020 at 4:04 am #1235569Hi,
Thank you for the info. We will forward this thread to our channel for further considerations, and maybe provide more info about the theme updater in case we missed anything else. For now, you will have to do the update check manually if necessary.
Best regards,
IsmaelAugust 6, 2020 at 8:11 am #1235609I would appreciate that.
Your description is not very clear. It reads:
Once you have entered and verified your Envato Personal Token Key WordPress will check for updates every 12 Hours and notify you here, if one is available.
This is not quite true, if I have to log in first.
The system check is not running smoothly. Today, I checked a customer site and logged in. It said: Version 4.7.4, no update available. Seriously? I had to check manually TWICE for the available update to show.
Mainwp, on the other hand, showed the new version, but was not able to perform the pending update.Please, check with Envato. This is very annoying and time-consuming and not acceptable for a premium theme.
August 10, 2020 at 2:48 am #1236360Hi,
I have forwarded your concern to our channel and post the question so that we can clarify or confirm how the updater actually works, or if it does check for updates every 12 hours. Maybe I just misread the code or missed something.
Thank you for your patience.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.