Forum | Diagnosing a slow or broken WordPress plugin upgrade process

You must be logged in to post Login

Diagnosing a slow or broken WordPress plugin upgrade process

UserPost

7:08 pm
September 21, 2009


Daniel Bachhuber

Admin

posts 102

A couple of versions back, WordPress introduced the ability to install and upgrade plugins through the admin. This means that, if your site has the appropriate permissions, you can install plugins without a FTP client. Unfortunately, ever since I can remember, this doesn't work as intended on our Liquid Web servers. In some cases the plugin upgrades after a long timeout process but in most cases it stalls indefinitely. With WebFaction, however, the process works seamlessly 99% of the time. My goal is to figure out the difference between the two server environments and hopefully remedy the issue.

On the WordPress forums, I came across a thread describing a similar, if not the same, issue. We have the same issue where the plugin browser works but the installer does not. On the recommendation of the discussion, I downloaded and installed a plugin called Core Control with the intent of comparing the two server environments (the Inside CoPress blog on Liquid Web and my personal blog on WebFaction). On WebFaction, I have a "Direct" transport protocol:

whereas on Liquid Web we do not:

I still haven't figured this issue out, but feel like I'm getting somewhere. Also, on both instances, "PHP HTTP Extension" is not installed. My next plan of attack is to figure out what the "Direct" transport is referring to and what it might take to install it.

7:34 pm
September 21, 2009


Daniel Bachhuber

Admin

posts 102

Good article on the WordPress filesystem abstraction. Because I was able to get Google Analyticator to upgrade after stalling out for 15 or so seconds (after disabling cURL as a possible transport method), I feel like the issue might be in how the server is configured. Even if I find a solution by disabling various methods with Core Control, that's not really a solution that we want to replicate across all of our clients.

2:19 am
September 24, 2009


Daniel Bachhuber

Admin

posts 102

Short update on this. I'm exchanging emails (and screencasts) with Liquid Web right now, and it seems like the big stall during execution is actually the default behavior on normal WordPress installs on shared accounts. Our ideal server environment would offer an experience like WebFaction offers, so I'm going to do my best to compare the two environments, see what's different, and make improvements.

9:22 pm
September 25, 2009


Daniel Bachhuber

Admin

posts 102

Second to last update on this. We've almost got it solved (or, rather, we have it "almost" solved). Liquid Web opened up a couple of ports for the FTP application on the server so that the request won't fail as often. In addition, they recommend using "localhost" as the server. After both of these were done, I was able to upgrade three plugins successfully in 15 seconds or less each. Granted, it's not as good as the direct PHP method, but it should make things a lot easier.


About the CoPress forum

Most Users Ever Online:

119


Currently Online:

9 Guests

Forum Stats:

Groups: 1

Forums: 7

Topics: 107

Posts: 538

Membership:

There are 151 Members

There have been 2 Guests

There are 5 Admins

There is 1 Moderator

Top Posters:

Chris Ullyott – 66

Mo Jangda – 35

arobinsonwku – 32

laurenmichell – 21

CMLife – 16

sbressler – 15

Administrators: Daniel Bachhuber (102 Posts), William P. Davis (65 Posts), joey (39 Posts), Greg Linch (14 Posts), adam (1 Post)

Moderators: Andrew Spittle (49 Posts)