Posts tagged as:

move wordpress to new host

Today when I downloaded wordpress 2.8.1 to set it up locally and test a theme for blog pro-pakistan I got an error that was probably because of an upgrade where as all of my settings remained the same. I searched for this all over the web but couldn’t find the solution so tried myself to find a work around. I am not sure if this is the solution but this definately is the wrok around and it worked for me. Note that this error occurs the first time user sets up the wordpress 2.8.1.

fatalerror1

So here is the work around:

  • Open the pluggable.php (it is present in your wp-includes folder). You can simply open it in notepad
  • Now search (Ctrl+F) the keyword that his highlighted in error. You can search the word ‘deep’ or the full phrase i.e. _deep_replace

fatalerror2

  • Now  delete the line “ $location = _deep_replace($strip, $location); ” from your file and save it
  • Upload the file to your host server if this is not your localhost.
  • I experimented another thing with this problem and that worked too: i replaced my old file pluggable.php from the 2.7 version.
  • So you can choose any workaround that works for you.

If you have experimented to find a novel work around for this teasing problem, do post your comments or simply give your feedback if you were able toovercomethis issue.

{ 4 comments }

Most often when you change your host and move your wordpress blog from one host to another, there are many small things that may create problems and may not make the moving experiance a pleasure. One of such problems is that you can not upload your image in your posts. Here is the error that you may receive:

Unable to create directory /xyz/public_html/wp-content/uploads/2009/05. Is its parent directory writable by the server?

What does this error actually mean? It means either the above given path is not correct where the server wants to write the image OR the server itself does not have the permissions (CHMOD) to upload your image?

Now first see if you have the correct path provided for the upload of content. Login to Wp-admin, click on Settings and then choose Miscellaneous option from the left menu

wordpress-misc-settingsIf you have moved from your old server, you would instantly know that you are using wrong path. Change the path now; most probably it should be wp-content/uploads (if your wp-content is in root directory). Save the changes and it should start uploading right away.

Now if you have corrected the path but still it is showing the problem you may consider revising permissions from any FTP client. Right click on Wp-content folder and then select ‘Properties/CHMOD’. You shall see the following window:

wp-content-properties

Make sure that you assign 755 as the permission value. Remember not to ever give 777 value as that has its own security risks. Once you save these settings, it should certainly work. Share your experience with us after solving the issue :)

{ 47 comments }