Archive for September, 2010

“Unable to create directory…” error in WordPress

I moved my WordPress site to another host. After the moving, I had an error:

Unable to create directory /hsphere/local/home/infous/starikovs.com/wp-content/uploads/2010/09. Is its parent directory writable by the server?

The first idea I had was about folders or files permissions. I changed the permissions but an error sill was there. After I googled some time I found that there’s a setting that sets the uploading path. I changed this setting and an uploading started to work OK!

To change an uploading path go to:

wp-admin -> Settings -> Miscellaneous -> Store uploads in this folder, and set the correct path. I chose the default folder wp-content/uploads and it works well in my case.

Today, I had a terrible problem with WordPress. When I tryed to log in, wp-login.php always redirected to wp-login.php and it was looked like a loop. I read a lot of forums and articles and nothing helped.

In my case, the problem was in plugins. For the test value, I started to remove plugins one by one and I found that the problem was in plugin xLanguage. After I removed the plugin’s folder by FTP, the problem was fixed. Huh, it took two hours for me to solve this problem!

Here’re the advices I found at forums and other resources but they didn’t help me:

  • Clearing cookies.
  • Clearing browser cache.
  • Restarting browser.
  • Logging in using an incorrect user name and password then logging in using the correct ones.
  • Hacking wp-config.php and adding define statements: DOMAIN_CURRENT_SITE, ADMIN_COOKIE_PATH.

ContentEditable outline style in WebKit

As you know, when you make an editable node by setting an appropriate attribute, WebKit selects an editable area using outline. This outline is a border that surrounds the editable content. The editable area is selected only when you set focus on it, in other words, when contentEditable attribute has been set to true. To change styles of this outline we have to use CSS rules. There are limited amount of styles that can be changed for the outline of the editable area. They are:

  • Color (the same as border color)
  • Width (the same as border width)
  • Style (the same as border style)

Ok, let’s test!

Read the rest of this entry »