Home › Toolset Professional Support › [Resolved] Plugin won't update – error message is update failed:undefined
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
Tagged: Types plugin, Views plugin
I am trying to update Toolset types and Views plugins for a multisite on the Network Admin plugins page but I get Update failed: undefined as the error.
i recently have had the site migrated to a new host ((Flywheel, but haven't gone live yet so its still internal). Other plugins can update...
Thanks for your help
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Jeffrey
I have Local by Flywheel, so let me set up a multisite installation with it and see if I can reproduce the problem that way.
I'll do a little testing and then get back to you.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Jeffrey
I don't see any such issue using Local by Flywheel (screenshot).
Can I ask you to check your browser console for JS errors or details of problems with the ajax request (your screenshot points to it receiving an invalid response).
Also, can you please check your PHP error logs in case any meaningful message is reported there.
If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try visiting the same plugins page and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.
Hi Nigel
I have turned on 'wp_debug' - Here is the results
Cache Hits: 3127 Cache Misses: 352 Group: sites - ( 3.80k ) Group: blog-details - ( 8.27k ) Group: site-options - ( 24.37k ) Group: options - ( 1,765.86k ) Group: default - ( 0.04k ) Group: users - ( 0.83k ) Group: userlogins - ( 0.05k ) Group: useremail - ( 0.08k ) Group: userslugs - ( 0.05k ) Group: user_meta - ( 9.23k ) Group: themes - ( 0.61k ) Group: types_cache_groups - ( 4.27k ) Group: posts - ( 6.96k ) Group: post_meta - ( 3.93k ) Group: tml_page_ids - ( 0.08k ) Group: site-details - ( 2.84k ) Group: plugins - ( 15.08k ) Group: counts - ( 0.86k ) Group: blog-lookup - ( 5.24k )
Attached image is the results from the console in the browser
Thank you!
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Jeffrey
Nothing useful there.
Can I get access to your site to look for myself? (I'm liaising with our Installer developer who will guide me with some debug tools he has developed but which have not been included with Toolset yet. I would need superadmin account as well as FTP access, and you should make a network backup first. We don't intend to make any significant changes other than adding a debug tool, but you should have a backup as a precaution.)
Sure Nigel
Let me know the best email address to use and I will get it set up in Flywheel (to add a collaborator, they require email)
The staging site at hidden link
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
My email is nigel.a@onthegosystems.com.
Ok
I sent the new user for both the site (toolsetnigel) and Flywheel
Please let me know if you need anything
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
I got your invitation, thanks.
Sorry it is taking me a while, I'm liaising with the installer developer to get a test version that adds the debug info.
I should be able to try this first thing in the morning.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Jeffrey
I connected to your flywheel dashboard, but I still need credentials to be able to access the backend of the site.
Let me create a private reply for you.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
OK, I found the reset password email in my spam folder, but when following the link and entering the username you created for me I get a "Check your email for the confirmation link" message, but receive no email (in my inbox nor in spam folder).
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Never mind, it has arrived, just took an unusually long time.
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi Jeffrey
I went to the plugins page on your site and saw the following error in your debug log:
WARNING: wp-includes/update.php:347 - An unexpected error occurred. Something may be wrong with WordPress.org or this server's configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) require_once('wp-admin/admin.php'), do_action('load-plugins.php'), WP_Hook->do_action, WP_Hook->apply_filters, wp_update_plugins, trigger_error
If your site is having problems communicating with wordpress.org it wouldn't surprise me to see problems communicating with Toolset servers.
When I clicked the "registered" link for Types (which takes me to the Toolset installer page) and hit the Check for Updates button it reported a problem and recommended unregistering and re-registering the site.
So I did that (registering the site with my account), and I was then able to proceed with updating the Toolset plugins without issue (screenshot).
I have unregistered the site from my account, can you register it again with your account?
The debug log no longer reports the above error on the plugins page, but if it recurs you may want to contact flywheel support.
I'm not sure what was causing the issue in the first place, but it seems to be working correctly now.
Hi there
My account only allows 1 site, so I am reluctant to "de-register" the live site for the staging as I have not cut over to the site on Flywheel yet....
Is there a workaround?
Thanks!
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
You can only register one URL for automatic updates, but you can download updates from toolset.com/account/downloads and manually update another site, so you simply need to choose which makes more sense to have registered for automatic updates, the staging site or the production site.
Many people have a workflow where they always make changes on a staging server, and then push the changes to the production server.