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… :)
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:
Tags: Error, open_basedir, Photography, WordPress








July 29th, 2010 at 9:24 pm
Thanks! Very useful info!
September 9th, 2010 at 3:09 pm
Dude, you’re a hero!
April 21st, 2011 at 7:03 am
Thanks for the post! Helped solve my problem.
May 11th, 2011 at 8:23 am
You just saved me a very large headache!
Thanks for the info.
June 29th, 2011 at 6:52 am
Thank you SO much for this post! I was getting the same error after transferring my WordPress site to a new server and this trick fixed it like a charm!
June 29th, 2011 at 11:54 am
@all
You’re welcome :)
July 14th, 2011 at 11:34 pm
Wow, thank you .. I tried a lot and only managed to solve my problem with your tip, there was a bar more in command of this line in my database.
July 22nd, 2011 at 5:10 pm
Hi,
This saved me thanks man :)
Shrey
September 13th, 2011 at 3:51 pm
Cant Believe it :)
Thank you a lot mate. It worked :)
September 26th, 2011 at 3:44 pm
Much appreciated. Thanks
November 24th, 2011 at 7:07 am
Brilliant Share! Thank you!