-
Notifications
You must be signed in to change notification settings - Fork 414
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
Updates of Themes and Plugins via WP-Toolkit / WP CLI #575
Comments
I'm not familiar with how WP-Toolkit works internally, and I'm not sure if it's even compatible with PUC in principle. However, a couple of general ideas to consider:
|
First of all, a big thank you for your brilliant work and support and the quick response!
|
Since you already have a script you can run via CLI, maybe you could modify it to get more information about the state of the update checker? For example, depending on how your code is set up, you could either access One thing to check is if the update checker can load the cached update from the database. Call If that correctly returns the update, the second thing I would check is if PUC is adding it to the list of updates maintained by WP core. Get the list of all theme updates via |
Thank you very much for your answer. Unfortunately I have to admit that I didn't really understand any of it (my mistake!). I have used the updater as described, created a json with the information for the update, uploaded the json and this is also accessible. If I go to /wp-admin/update-core.php in the backend, the update is displayed immediately, but not if I check via cli theme update or via external updater management tool. I have only included this code in the theme in the functions.php (and yes its a child theme), is there anything else missing?
Here the Content of the json:
|
I don't think there's anything else you would need to do, but, as I said, I'm not familiar with how WP-Toolkit works internally. Maybe compatibility with that tool in particular does require something more. You posted an update script earlier, so I was just saying you could add some debug output to the script to see the state of the update checker. For example: var_dump($mylandingpageUpdater->getUpdate());
var_dump(get_site_transient('update_themes')); I don't know if the |
Sorry, but I have the same problem, only with a plugin. Plesk WP-Toolkit does nothing other than call up the WP CLI. If I call the WP CLI manually, it also says "Plugin already updated". In the backend it is no problem that the update is displayed and carried out correctly. |
I'm afraid I don't have anything new to add. Just to make sure that PUC still actually works WP-CLI, I tested it with WP-CLI 2.11.0 (currently the latest stable release):
In this case, |
Thanks for your feedback, the latest Plesk version of the WPToolkit is currently running WP-CLI 2.9.0
In my test, it only recognises the new version in the WP Dashboard. I will try the configuration on another server. OK, I have checked it with another server. There the test plugin works via WP-CLI:
Could it be due to the WP-CLI version? |
I have integrated the plugin updater and it works fine when I go to the admin panel and click on "Updates", then the updates are displayed immediately.
If I try to trigger the whole thing via WP-Toolkit CLi or search for updates via Plesk, nothing is displayed.
I have integrated it into the theme as an example.
I have already tried an update script via PHP which I trigger via CLI.
The text was updated successfully, but these errors were encountered: