[wp-trac] Re: [WordPress Trac] #8331: Automatic Plugin Installer
always fails when using SSH
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 11 15:47:37 GMT 2008
#8331: Automatic Plugin Installer always fails when using SSH
-----------------------------+----------------------------------------------
Reporter: ydekproductions | Owner: anonymous
Type: defect | Status: reopened
Priority: high | Milestone: 2.7
Component: Administration | Version: 2.7
Severity: normal | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Changes (by chk):
* status: closed => reopened
* resolution: fixed =>
Comment:
I just upgraded to Wordpress 2.7, and this change isn't working for me on
a relatively stock Ubuntu 8.10 system, for an existing plugin.
The problem is in the exists() and run_command() method. With the change
above, when the directory *does* exist, the data string returned is:
drwxr-xr-x 5 chk chk 4096 2008-12-11 10:38 /var/websites/blog/chk/html/wp-
content/plugins
With this data, the code in run_command():
if (($returnbool) && ( (int) $data )) {
return true;
} elseif (($returnbool) && (! (int) $data )) {
return false;
} else {
return $data;
}
Always returns false, and WP thinks my plugin directory doesn't exist.
I reverted the change (9892) in this bug report, and now my install can
upgrade existing plugins.
--
Ticket URL: <http://trac.wordpress.org/ticket/8331#comment:13>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list