Yesterday I need to post my photo in my special blog for photography, http://lens.danigunawan.com. But, what happened??? My blog didn’t appear correctly!!! I got these error messages:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.
File(/) is not within the allowed path(s):
(/home/MY_ACCOUNT:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:
/usr/local/php4/lib/php:/tmp) in /home/MY_ACCOUNT/wp-includes/functions.php
on line 1942

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.
File(/) is not within the allowed path(s):
(/home/MY_ACCOUNT:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:
/usr/local/php4/lib/php:/tmp) in /home/MY_ACCOUNT/wp-includes/functions.php
on line 1933

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect.
File(/) is not within the allowed path(s):
(/home/MY_ACCOUNT:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:
/usr/local/php4/lib/php:/tmp) in /home/MY_ACCOUNT/wp-includes/functions.php
on line 1942

FYI, I created my blog using wordpress. It’s the best blog engine ever.. :) After asking some questions to uncle Google, I found that some people have asked the same questions. But they don’t get the solution yet. I started thinking, then I decided to check the database. I looked into tables wp_options (For example I use the default prefix “wp_”, table prefix depends on wordpress configuration). I scanned one-by-one, and I found something suspicious in column option_name = ‘upload_path’. The value of column option_value = ‘/home/MY_ACCOUNT/wp-content/uploads’. After comparing with column option_value from the “healthy” blog, I changed the value to ‘wp-content/uploads’.

Back to my favorite browser…, then I pressed F5. Tadaaaa… error in my photography blog disappeared… :)

Kemarin, ketika rindu ingin posting hasil fotografi, kubuka blog khususku mengenai fotografi yang beralamat di http://lens.danigunawan.com. Tapi apa yangterjadi??? Ternyata blog fotografi-ku rusak!!! Muncul error seperti di bawah ini:

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s):

(/home/MY_WEBHOSTING_ACCOUNT:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in

/home/MY_WEBHOSTING_ACCOUNT/wp-includes/functions.php on line 1942

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s):

(/home/MY_WEBHOSTING_ACCOUNT:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in

/home/MY_WEBHOSTING_ACCOUNT/wp-includes/functions.php on line 1933

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the allowed path(s):

(/home/MY_WEBHOSTING_ACCOUNT:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in

/home/MY_WEBHOSTING_ACCOUNT/wp-includes/functions.php on line 1942

Sekedar informasi, aku membuat blog fotografi menggunakan wordpress. Setelah kucari kesana kemari, ternyata beberapa orang telah bertanya pertanyaan yang

sama. Tetapi belum juga mendapat solusi. Aku pun berpikir untuk memeriksa database. Melihat daftar tabel yang ada, aku mencurigai tabel wp_options (Sebagai

contoh kugunakan prefix yang default yaitu “wp_”, prefix tabel tergantung konfigurasi wordpress). Ku lihat satu-satu isi dari tabel wp_options, dan ternyata

ada yang mencurigakan yaitu untuk kolom option_name = ‘upload_path’. Terlihat pada kolom option_value = ‘/home/MY_WEBHOSTING_ACCOUNT/wp-content/uploads’.

Setelah mencontek isi kolom option_value dari blog yang “sehat”, isi kolom tersebut kuganti dengan ‘wp-content/uploads’.

Kembali ke browser, dan ku tekan F5. Tadaaaa… blog fotografi ku kembali seperti sedia kala.. fiuh…. akhirnya… :)

Related posts:

  1. WordPress Error After Automatic Upgrading

Tags: , , ,

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>