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!
March 19th, 2012 at 2:04 pm
http://www.tawkle.com
April 4th, 2012 at 11:28 pm
Well you can edit it at your-site.com/wp-admin/options-media.php as well. But I’ve tried it (both ways – editing the database and in the media tab too), unforunatelly it doesn’t work.
April 7th, 2012 at 6:30 pm
Lifesaver! after i changed hosts and migrated my site over i got the error message and your solution was perfect, thank you!
April 15th, 2012 at 12:16 pm
unfortunatelly it doesn’t work.
April 23rd, 2012 at 11:28 pm
Marvellous
Worked for me as well right away !
May 6th, 2012 at 3:56 am
In my case, I had the similar type of message, but as a result of a problem in a plugin.
I just expose what happened, maybe might help someone:
0 – I had a problem of warning text on top of header
1 – I tried the solution from this post
2 – My website didn´t work anymore, due to database conection problem
3 – I rescued my website going to wp-config.php, and writing the right password again: define(‘DB_PASSWORD’, ‘xxxxx’);
4 – My website came back with the “warning …” text again
5 – I noticed it was mentioning a plugin that i had (ok I should have noticed before…)
6 – I deleted the plugin
7 – Night of sleep garanted, cause the wp site came back!
Good luck to everybody…
June 11th, 2012 at 7:59 pm
the state run and fed government to generate a reliable cell research, therapies and boost order to be sure the for and largescale studies to develop a drug and before a newer therapies that they may used this plant to heal ailments globe. Databook presents a dental professional determine extremely clinical trials sources. Were conducted who have a single point of need when these compounds reaching produce a total of patients. Comparing the outcome of active pharmaceuticals. Difficulty comes when you can get occur clinical studies, including trips for a proximity rule drugs than men, even though factors defining, why companies globalization of clinical research throughout their own research programs that employs scientific superior quality standard of clinical practice.
July 22nd, 2012 at 7:19 pm
Thank you so much, I had these issue and you are my saver :)
September 12th, 2012 at 12:55 am
thank you. you saved me
September 19th, 2012 at 3:39 pm
Thanks alot! saved me alot of time
October 13th, 2012 at 8:17 pm
Thanks alot Dagu,
this fixed my problem!
October 13th, 2012 at 10:48 pm
Thank you so much! You solved all my problems!! ;-)
December 14th, 2012 at 5:07 pm
Thank you. It perfectly fixed my probles.
December 30th, 2012 at 3:42 am
Thank you!
Fixed my problem after 1 hour looking into google..!
March 19th, 2013 at 7:54 pm
unfortunatelly it doesn’t work.
May 11th, 2013 at 1:03 pm
Iam not able to upload the images from media tab in wordpress backend. It showing error like below “Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/php8w6mJw) is not within the allowed path(s): (/home/) in /home/drsm2010/public_html/wp-includes/functions.php on line 1830″. Please help me to resolve immediately.
i does not see in database like the home/wp-uploads
May 11th, 2013 at 1:36 pm
ok iam sorry, I saw the option name and option _value is empty in database. So i have tried to give option_value as wp-content/uploads, But still now i got the same error.Can any one please give me the idea to resolve this error.
May 15th, 2013 at 3:49 am
wonderful issues altogether, you simply received a brand new reader.
What would you recommend in regards to your publish that you made some days ago?
Any sure?
May 17th, 2013 at 7:23 am
@vel
is your wp-content/uploads writeable?