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
  2. Fixing WordPress 2.9 Upgrade Error

Tags: , , ,

32 Responses to “WordPress Error: open_basedir restriction in effect”

  1. Thanks! Very useful info!

  2. Dude, you’re a hero!

  3. Thanks for the post! Helped solve my problem.

  4. You just saved me a very large headache!

    Thanks for the info.

  5. 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!

  6. @all
    You’re welcome :)

  7. 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.

  8. Hi,

    This saved me thanks man :)

    Shrey

  9. Cant Believe it :)
    Thank you a lot mate. It worked :)

  10. Much appreciated. Thanks

  11. Brilliant Share! Thank you!

  12. http://www.tawkle.com

  13. 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.

  14. Lifesaver! after i changed hosts and migrated my site over i got the error message and your solution was perfect, thank you!

  15. unfortunatelly it doesn’t work.

  16. Marvellous

    Worked for me as well right away !

  17. 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…

  18. 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.

  19. Thank you so much, I had these issue and you are my saver :)

  20. thank you. you saved me

  21. Thanks alot! saved me alot of time

  22. Thanks alot Dagu,
    this fixed my problem!

  23. Thank you so much! You solved all my problems!! ;-)

  24. Thank you. It perfectly fixed my probles.

  25. Thank you!
    Fixed my problem after 1 hour looking into google..!

  26. unfortunatelly it doesn’t work.

  27. 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

  28. 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.

  29. 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?

  30. @vel
    is your wp-content/uploads writeable?

Trackbacks/Pingbacks

  1. Wordpress Fehlermeldung “open_basedir restriction…” nach Update auf 2.9 | Webdesign Klaus Oppermann - Oldenburg - Bremen - Delmenhorst - Homepage mit Wordpress-CMS
  2. Wordpress Error : file_exists() open_basedir restriction in effect

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>