WordPress – Is its parent directory writable by the server?

Worpdress Error - Is its parent directory writable by the server?  while trying to upload images in wordpress

Solution

wordpress image upload failed

Wordpress image upload failed

Check under Settings > Media for correct Store Uploads in the folder path.

It should look like wp-contents/uploads (not /wp-contents/uploads)

I had the same error while trying the upload the above image after moving to VPS.net cloud hosting.

If above solution fails, check the folder permission for uploads folder. It should be 775 or 777 (not safe)

[Fixed] WordPress – Images Not Showing Up After Upload

Problem – After uploading the images, it is not visible (or showing up ) in the blog post.

Solution:

  • Go to Settings > Media
  • Check Store uploads in this folder – is set to wp-content/uploads
  • Mine was set to full path /usr/name/public-html/wp-content/uploads
  • After changing to default option, wordpress images problem was fixed.

Intense Debate WordPress Comments Import = Frustration

I decided to use Intense Debate commenting system for WordPress for one of my blog. Seriously, I wasted most part of my day checking the import status. I don’t understand the team that write this really know how to develop software?

Problems with Intense Debate

  • Poor interface within WordPress
  • If Import is stuck, there is no way to know its stuck (unless you realize its stuck after waiting for several hours)
  • No option to resume import from previous failed import.
  • Clicking on Do clean import doesn’t ask for confirmation or warn that import will start all over again…more frustration to come

I wonder how Automattic is betting their brand name on such a frustrating plugin.

I tried using Intense Debate few months back and today was second time, nothing has changed.

It takes few seconds to create a SQL dump of MySql Database and takes over 16 hours just to get the comments imported.

  • Attempt 1 – 4 hours (Stuck at 14%)
  • Attempt 2 – 4 Hours (Stuck at 39%)
  • Attempt 3 – 9 Hours (Stuck at 95%)
  • Attempt 4 – Deactivate, Frustration and this post

I switched back to wordpress default comment system. Who has time to watch several hours just for the comments to be imported.

 

WordPress Plugin Auto Updates Hangs

Problem - I tried to upgrade the plugins to the latest version within wordpress using automatic upgrade option. After clicking on upgrade, Maintenance mode is enabled, but there is no progress, and site just hangs.

Solution - When plugin upgrade hangs, it usually means there is problem with unpacking and installing the plugin files. Such problems come when permissions are not set right.

When I checked the folder permissions under public_html by (ls -l) all the files and folders had nobody username set. It shuld have looked like username username.

Change the owner recursively for all the folders within public_html using chown command.

Then verify ownership is set to username username, then perform the upgrade.

 

 

wp-db-backup plugin Fails [Fixed]

WP-DB-Backup plugin for wordpress failed after upgrading to version 2.2.3

I had automatic backup via email scheduled daily, which will go to gmail inbox archives. I noticed after 3 weeks, there are no backup files after upgrading to 2.2.3

Increasing the memory limits in VPS server didn’t help. After 5% progress, backup script just hangs.

Solution – While waiting for the Developer to come up with the fix, I moved back to version 2.2.2 and it works.

Turn-off Automatic Thumbnail Creation in WordPress

By default when after adding images to post in wordpress, 3 copies of the same images (small, medium and large) will be created automatically by WordPress. Those images will be used for thumbnail if theme supports that feature. If you are not going to use those images, then is waste of resources

  • Disk Space
  • Backup space
  • Expensive while using CDN/Storage

After 3 years of using wordpress, I happened to find this while playing with Thesis theme, featured image and thumbnail features. I’m using W3 Total cache plugin with Amazon CDN and S3 storage. I could have saved some money by preventing wordpress from creating thumbnails automatically in file storage.

Stop automatic thumbnail creation

Just follow the steps below to stop thumbnail creation

  • Login into Admin area in wordpress
  • Go to Setting > Media
  • Enter 0(zero) to all the fields.
  • Save the Settings

To verify that go to wp-content/uploads/current year/month and upload an image from a post. Make sure no thumbnails are created. Now, I have got some cleaning to do (maybe a small script to delete those unused images will do).

WordPress Database Cleanup – Plugins Tables

I started using wordpress at www.HappySchoolsBlog.com since October 2007 and since then I have tried several plugins. In last 3 years, I never had courage to cleanup the wordpress database. Today, I decided to delete (drop) tables in wordpress MySQL database that were unused or from deactivated plugins.

  • Total Number of Tables Before Cleanup – 54
  • Tables After Cleanup – 33

It might be possible to delete (Drop) few more tables, but I haven’t figured out which plugins were using them.

It was easy to identify few tables by looking at the table names and then click on Drop under MySql Admin page. For other tables, I searched in Google with

  • Table Name + plugin + wordpress (example – wp_alinks_settings + plugin + wordpress)

After making sure that I’m not deleting core tables, I double checked with core tables list and dropped the remaining tables.

WordPress Database Backup

I was lazy to install any plugins to backup wordpress database. Instead once per month, I used Account backup option from Dreamhost to backup the files and tables. After seeing Thesis theme getting hacked over the weekend, I decided to install WP-DB-Backup plugin. It was easy to install and create the backup. Going forward, I plan to backup the core tables after once in two days.

How to Create Tabbed Conents in WordPress Sidebar

There are many scripts available to create Tabbed Contents in wordpress. Some of them are  DomTab, Tabifier and idTabs,

Usually, tabbed contents are used in the sidebar to display popular posts, recent comments, tags, categories or archives. I recently came across another tool to create tabbed contents in WordPress using Yahoo Developers Network Tabview.

After reviewing the API and examples, it looks promising and powerful way to to create tabbed contents. I will post an update after giving it a shot.

How to Change WordPress Theme Editing MySql Tables

Follow the simple steps to change the WordPress Theme ny editing MySql Tables(WordPress database). You might run into situations when you have access to only backend.

Change WordPress Theme

  • Logn into MySQL Database for your site (Example : msql.example.com)
  • Open the Database for your site ( DB_example)
  • Open the Table wp_options
  • Open Browse Tab
  • Find the option’s template and stylesheet
  • Edit the value to theme name you want to change (Example : default)
  • Save the table

If some plugin have corrupted the theme files, using above change, you can set the default theme.

How to Change Default WordPress Excerpt Length

Default wordpress excerpt length is 55 words. It’s easy to change the default excerpt length in wordpress in less than 2 minutes to desired length. I made changes to wordpress 2.9.2 code.

  1. Login into Directory where wordpress is installed
  2. Open the file Directory > wp-includes > formatting,php
  3. Search for 55 or $excerpt_length = apply_filters(‘excerpt_length’, 55);
  4. Change the value 55 to desired number of words and save the file.
  5. Refresh the page and see the results ( you may have to clear the cache)