Web Design in Toronto by Elehost Web DesignElehost Web Design Inc.

Toronto Web Design by ElehostCompassionate Web Design

Web Design That Works!
 

Welcome to a Toronto web design and web hosting firm focused on outstanding design and customer support.  We offer a wide range of high quality Internet services including custom web page design, e-commerce programming and web hosting. Please call to see how Elehost can work for you.

Call Us Today

Please E-mail all questions and comments to support@elehost.com

Call us today at (877) ELE - HOST
(877) 353-4678 or (416) 203-6798

Let us be your helping hand to design a working web design. We are here to help.

Elehost is a Toronto web design and hosting company.

Home FAQ Web Tool Tips and Fixes Wordpress Fix for Wordpress “Could not remove the old plugin” error
Fix for Wordpress “Could not remove the old plugin” error PDF Print E-mail
Written by Paul MacKenzie   
Wednesday, 07 October 2009 09:24


In the process of upgrading Comic Press on a Wordpress blog I ran into the following problem.

Downloading install package from http://downloads.wordpress.org/plugin/comicpress-manager.1.4.8.zip.

Unpacking the package.

Could not copy file /usr/home/homedirectory/www/blogdirectory/wp-content/upgrade/comicpress-manager.1.4.8/somefile.php

 

I searched on-line and the only solution I could find on-line was an article telling to remove many nested wp-content folders but this did not work for me as I did not have nested folders as described

This error also happened when I attempted to install any plugin via the web interface.

I worked through the error and found that for the most part this was a ftp problem on the Freebsd 7.2 server.

I went into wp-config.php and changed the following settings; I set the FTP_CONTENT_DIR and FTP_PLUGIN_DIR as shown below:

define('FTP_BASE', '/www/blogdirectory/');
define('FTP_CONTENT_DIR', '/www/blogdirectory/wp-content/');
define('FTP_PLUGIN_DIR', '/www/blogdirectory/wp-content/plugins/');

After doing this I got past the above error "Could not copy file" but now I was faced with a "Plugin upgrade Failed" error . 

The error looked like this:

Downloading update from http://downloads.wordpress.org/plugin/comicpress-manager.1.4.8.zip.

Unpacking the update

Deactivating the plugin

Removing the old version of the plugin

Could not remove the old plugin

Plugin upgrade Failed

 

I knew I was getting close to a resolution. Through a bit of trial and error I ended up needing to set the FS_METHOD to ftpsockets in the wp-config.php as shown below and it worked like a charm:

define('FS_METHOD', 'ftpsockets');


So now the ftp settings in the wp-config.php are as follows:

define('FS_METHOD', 'ftpsockets');
define('FTP_BASE', '/www/blogdirectory/');
define('FTP_CONTENT_DIR', '/www/blogdirectory/wp-content/');
define('FTP_PLUGIN_DIR', '/www/blogdirectory/wp-content/plugins/');


This solved my problem and I hope it helps to solve other people's issues when working with Wordpress.

I recently started a Wordpress blog about running called Running Samadhi. If you are interested in running please let me know what you think of it. 

Last Updated on Thursday, 14 January 2010 12:56
 

Opening the Mind

"To spend an afternoon in the close company of elephants is awe-inspiring, but to watch elephants in the company of someone who knows each posture, and vocalization can, I have been told, be a very powerful and moving experience. It takes a very callous person to witness these animals and not be led to some fundamental questions about humanity and our place in the world."

P.202 in Coming of Age with Elephants by Joyce Poole