Website Looping From WPMUDEV Plugins

Hey Danny,

Using the clone, i took a real in-depth look at the processes that run when trying to load any aspect of the wp-admin dashboard and as Paul may have mentioned to you, we saw a lot of processes running around in circles, or never-ending loops. The process we use (strace) doesn't reveal any coding or PHP function/api calls, just the system calls it makes but I finally managed to narrow down that every start of the loop begins with WPMU Dev updates making the same call to an external source and saving it to the database. When we disable the plugin, your dashboard starts working as expected.

Using that information, i narrowed it even further to a function in the WPMU Dev update plugin:

/nas/content/live/scroswpe0519/wp-content/plugins/wpmudev-updates/includes/class-wpmudev-dashboard-site.php

$skin = new Automatic_Upgrader_Skin();
$result = false;
$success = false;
$update_file = $project['filename'];

switch ( $project['type'] ) {
case 'plugin':
wp_update_plugins();

$upgrader = new Plugin_Upgrader( $skin );
$result = $upgrader->bulk_upgrade( array( $update_file ) );
break;

case 'theme':
$upgrader = new Theme_Upgrader( $skin );
$update_file = dirname( $update_file );
$result = $upgrader->upgrade( $update_file );
break;}
This is in the "update_project" function which appears to try to go through an update a plugin. It looks like at some point, an update fails but instead of failing gracefully, it tries again and again until it ends up being killed by the server. The debug log also fills up with this sort of information:

[20-May-2016 01:42:30 UTC] [WPMU DEV Dashboard Info] Project Auto-Upgrade result for 119: Failed...
[20-May-2016 01:42:32 UTC] WPMU DEV error: Upgrade failed - error 1
[20-May-2016 01:42:32 UTC] [WPMU DEV Dashboard Info] Project Auto-Upgrade result for 119: Failed...
[20-May-2016 01:42:32 UTC] WPMU DEV error: Upgrade failed - error 1
[20-May-2016 01:42:32 UTC] [WPMU DEV Dashboard Info] Project Auto-Upgrade result for 119: Failed...
[20-May-2016 01:42:34 UTC] WPMU DEV error: Upgrade failed - error 1
[20-May-2016 01:42:34 UTC] [WPMU DEV Dashboard Info] Project Auto-Upgrade result for 119: Failed...
[20-May-2016 01:42:34 UTC] WPMU DEV error: Upgrade failed - error 1
[20-May-2016 01:42:34 UTC] [WPMU DEV Dashboard Info] Project Auto-Upgrade result for 119: Failed...
We can't provide much more information on why it's failing and what recently changed that caused this issue but we reckon this may be good information to give to the guys at WPMU Dev to see where in their logic it's failing.

Some other also experiencing these issues:
https://premium.wpmudev.org/forums/topic/wpmudev-dashboard-crashed-my-install
https://premium.wpmudev.org/forums/topic/upgrading-to-the-latest-dashboard-gives-project-auto-upgrade-errors
https://premium.wpmudev.org/forums/topic/wordpress-hangs-with-dashboard-plugin-enabled

they seem to say that manually upgrading the plugin resolves the issue but if it happens, but regardless, this isn't something that should happen and the plugin should fail gracefully.

Hope that helps! If you have any further questions or concerns, please don't hesitate to reach out to us.

Mark G. - Customer Support Specialist
WP EngineWPEngine.com | Finely Tuned WordPress