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

"This is how we are. We grasp, we cling, we mold things into being exactly as we want them, and then we struggle to keep them that way. This is our normal conditioning."

Lovingkindness: The Revolutionary Art of Happiness by Sharon Salzberg

Testimonials

"As a small business owner, I've learned the importance of trust - it will lead to referrals and help grow a business. This is why I chose Elehost Web Design.

Elehost is making my business visible here in Barrie so I may establish the customer relationships I need for success. I've come to rely on Elehost for my Web Design and to host my website.

They have provided my business with prompt customer service and a customized Wordpress template to get things moving in the right direction for my site. I'm thoroughly impressed."

Barrie Furnace Repair