Title: Woocommerce Problem: is_readable(): open_basedir restriction
Last modified: May 18, 2020

---

# Woocommerce Problem: is_readable(): open_basedir restriction

 *  Resolved [gianluca8585](https://wordpress.org/support/users/gianluca8585/)
 * (@gianluca8585)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/woocommerce-problem-is_readable-open_basedir-restriction/)
 * Hi,
    I’m creating a website for a client. I noticed that with Woocommerce installed
   I get this message:
 * is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not 
   within the allowed path(s): (/home2/dnavvoca/:/opt/cpanel/ea-php73/root/usr:/
   usr/local/lib/php:/tmp:/etc/pki/tls/certs/ca-bundle.crt:/var/cpanel/php/sessions)
   on line 68 in file /home2/dnavvoca/public_html/wp-includes/class-phpass.php
 * If I disable Woocommerce the problem disappears. I have allready tried to contact
   my hosting, but, since the website is on a shared hosting, they cannot disable
   the open_dir directory.
    I tried also to change the WP_TEMP_DIR in this way DEFINE(‘
   WP_TEMP_DIR’,’../tmp’), but nothing changed.
 * Thanks in advance for any help,
    Regards, Gianluca
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwoocommerce-problem-is_readable-open_basedir-restriction%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [5 years, 12 months ago](https://wordpress.org/support/topic/woocommerce-problem-is_readable-open_basedir-restriction/#post-12858603)
 * Hi there,
 * > they cannot disable the open_dir directory.
 * I don’t think you can do much then. The two settings in the `php.ini` are:
 *     ```
       upload_tmp_dir = path
       open_basedir = path
       ```
   
 * These must reflect the correct path.
    You can also try to set it via `.htaccess`
   maybe: [https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths](https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths)
 * Kind regards,
 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [5 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-problem-is_readable-open_basedir-restriction/#post-12897560)
 * Howdy!
 * We haven’t heard back from you in a while, so I’m going to go ahead and mark 
   this thread as resolved. If you have any other questions please start a new thread.
 * Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Woocommerce Problem: is_readable(): open_basedir restriction’ is closed
to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [open_basedir](https://wordpress.org/support/topic-tag/open_basedir/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/woocommerce-problem-is_readable-open_basedir-restriction/#post-12897560)
 * Status: resolved