Title: open_basedir problem
Last modified: July 7, 2021

---

# open_basedir problem

 *  Resolved [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/)
 * not sure what happened, if my hosting changed something, but suddenly I get this
   warning on my website:
 * Warning: is_readable(): open_basedir restriction in effect. File(/includes/fbwpml.
   php) is not within the allowed path(s): (/www/doc/www.XXXX.cz:/disk2/doc/www.
   XXXX.cz:/usr/share/php:/www/tmp:/tmp) in /www/doc/www.XXXX.cz/www/wp-content/
   plugins/facebook-for-woocommerce/includes/Integrations/Integrations.php on line
   61
 * What should I do? I suppressed Warnings for the mean time, but this should not
   happen, right?

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/open_basedir-problem-4/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/open_basedir-problem-4/page/2/?output_format=md)

 *  [lubosabo](https://wordpress.org/support/users/lubosabo/)
 * (@lubosabo)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14635397)
 * I have almost same problem here:
 * Warning: is_readable(): open_basedir restriction in effect. File(/includes/fbwpml.
   php) is not within the allowed path(s): (/www/doc/www.mimispanek.cz:/disk2/doc/
   www.mimispanek.cz:/usr/share/php:/www/tmp:/tmp) in /www/doc/www.mimispanek.cz/
   www/wp-content/plugins/facebook-for-woocommerce/includes/Integrations/Integrations.
   php on line 61
 * Warning: session_start(): Cannot start session when headers already sent in /
   www/doc/www.mimispanek.cz/www/wp-content/plugins/fwswoocommerce/4w-code.php on
   line 33
 * Warning: Cannot modify header information – headers already sent by (output started
   at /www/doc/www.mimispanek.cz/www/wp-content/plugins/facebook-for-woocommerce/
   includes/Integrations/Integrations.php:61) in /www/doc/www.mimispanek.cz/www/
   wp-includes/functions.php on line 6362
 * Warning: Cannot modify header information – headers already sent by (output started
   at /www/doc/www.mimispanek.cz/www/wp-content/plugins/facebook-for-woocommerce/
   includes/Integrations/Integrations.php:61) in /www/doc/www.mimispanek.cz/www/
   wp-admin/includes/misc.php on line 1310
 * Warning: Cannot modify header information – headers already sent by (output started
   at /www/doc/www.mimispanek.cz/www/wp-content/plugins/facebook-for-woocommerce/
   includes/Integrations/Integrations.php:61) in /www/doc/www.mimispanek.cz/www/
   wp-admin/admin-header.php on line 9`
 *  Thread Starter [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14635556)
 * [@lubosabo](https://wordpress.org/support/users/lubosabo/) is it active24 hosting?
   it might me specific to hosting
 * however I don’t think that the absolute adresses in the plugin code are correct…
 *  [lubosabo](https://wordpress.org/support/users/lubosabo/)
 * (@lubosabo)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14635798)
 * Yes is Active 24.
    And I agree is a problem of plugin code
 *  [mouli a11n](https://wordpress.org/support/users/mouli/)
 * (@mouli)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14637257)
 * You can access the code here throwing the error here:
    [https://github.com/woocommerce/facebook-for-woocommerce/blob/master/includes/Integrations/Integrations.php](https://github.com/woocommerce/facebook-for-woocommerce/blob/master/includes/Integrations/Integrations.php)
 * It appears to be related to permissions associated with the path requested so
   I suggest that the first place to ask would be your hosts to see if they can 
   check that path.
 *  [Bernike](https://wordpress.org/support/users/bernike/)
 * (@bernike)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14637824)
 * I’m getting the same error :'(
 *  [Austin M – a11n](https://wordpress.org/support/users/apmwebdev/)
 * (@apmwebdev)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14637858)
 * Hi [@bernike](https://wordpress.org/support/users/bernike/). Can you check with
   your host if there are permissions issues that could result in the error above?
   Thanks!
 *  Thread Starter [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14638088)
 * [@mouli](https://wordpress.org/support/users/mouli/) [@apmwebdev](https://wordpress.org/support/users/apmwebdev/)
   well shouldn’t be the path relative, not absolute? meaning ‘/includes/fbwpml.
   php’ is certainly not allowed, if you have user files located at ‘/www/doc/www.
   website.com’ shouldn’t you use something like __DIR__ in the code?
 *  [Stuart Duff – a11n](https://wordpress.org/support/users/stuartduff/)
 * (@stuartduff)
 * Automattic Happiness Engineer
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14639534)
 * open_basedir is a restriction to prevent a hosting package user from accessing
   any paths on the server that are not authorised, such as the paths to other domains
   on shared web servers, or to access the hosting software.
 * The open_basedir function defines the locations or paths from which PHP is allowed
   to access files using functions like fopen() and gzopen(). If a file is outside
   of the paths defined by open_basedir, PHP will refuse to open it.
 * To resolve this we’d initially advise opening a discussion with your web host.
 *  [Bernike](https://wordpress.org/support/users/bernike/)
 * (@bernike)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14639928)
 * Hello [@apmwebdev](https://wordpress.org/support/users/apmwebdev/)
 * Thanks so much for your speedy response 🙂
 * I’ve checked in with my web host and they are saying that the error is caused
   because “the coding is attempting to access a server path to which it does not
   have access to”.
    They say that the problem lies here: ./wp-content/plugins/facebook-
   for-woocommerce/includes/fbwpml.php
 * Look forward to hearing back from you.
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14640283)
 * Hi again,
 * > I’ve checked in with my web host and they are saying that the error is caused
   > because “the coding is attempting to access a server path to which it does 
   > not have access to”.
   >  They say that the problem lies here: /wp-content/plugins/
   > facebook-for-woocommerce/includes/fbwpml.php
 * Yes, this is part of it but I would describe it a bit differently. So that file`
   fbwpml.php` is part of the Facebook for WooCommerce extension. It is an optional
   file that takes care of things for when WPML is also active on your installation.
 * The problem is not the file itself (but it is the trigger of the warning message).
   The problem is created because “Facebook for WooCommerce” is not allowed to access
   it’s own subfile `fbwpml.php` on the web server.
 * The web server usually has access to the file system via the group. I would try
   and chmod the `/includes/fbwpml.php` to 775.
 * Kind regards,
 *  [Bernike](https://wordpress.org/support/users/bernike/)
 * (@bernike)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14648363)
 * Hi [@conschneider](https://wordpress.org/support/users/conschneider/)
 * My host has come back with another response:
 * > I am afraid that the information shared with you below is not fully correct
   > and the suggestion shared with you is also not accurate or feasible. The problem
   > with the folder path that is incorrectly specified (/includes/fbwpml.php) is
   > that it is trying to write to a file () within a folder (), directly located
   > within the root partition of a server. No domain hosted on our environment 
   > has access to folders or files within the root partitions of our servers. The
   > suggestion they have made is therefore not a viable solution. The folder path
   > needs to be specified correctly so that it finds and writes to the file located
   > within your domains website directory, and not the servers root directory.
 * Please help? I’m not a developer so this is all over my head…
 * Thanking you in advance.
    -  This reply was modified 4 years, 10 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  [Orry F. a11n](https://wordpress.org/support/users/orhanf/)
 * (@orhanf)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14649238)
 * Hey again!
 * We need to look at your site’s configuration. Please contact us at WooCommerce.
   com > My Account > Support. You may need to create an account before you can 
   access that page.
 * Please include a link to this forum thread, your site’s SSR, and a screenshot
   of one of the affected product’s configurations.
 * We will be able to help you further there.
 * Cheers!
 *  Thread Starter [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14650014)
 * this is madness.
 * short and simple (and for the second time): the server hosting doesnt allow to
   access path ‘/includes/fbwpml.php’
 * you are demanding them to allow access in subfolder of the server root. this 
   is not going to happen. the path in the code cannot start with a slash, as that
   is the server root..
 * you can check our server config here: [http://uvirt110.active24.cz:84/info.php](http://uvirt110.active24.cz:84/info.php)
 *  [Abhi G. a11n](https://wordpress.org/support/users/theabhig/)
 * (@theabhig)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14651087)
 * Hi there [@mrtvykenny](https://wordpress.org/support/users/mrtvykenny/)
 * Thanks for sharing the server config.
 * I’m not sure what suddenly triggered the original error message you are seeing
   but there is a known bug which is causing this error message for some users.
 * You can track this here:
    [https://github.com/woocommerce/facebook-for-woocommerce/issues/1642](https://github.com/woocommerce/facebook-for-woocommerce/issues/1642)
 * The above link does also include a suggested workaround.
 * The developers are aware of the issue and while we won’t be able to give you 
   an exact timeframe for when a fix will be released, the good news is they are
   actively working on it and you will be able to track updates from the above link.
 * Thanks!
 *  [Abhi G. a11n](https://wordpress.org/support/users/theabhig/)
 * (@theabhig)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/#post-14674494)
 * Hi there [@mrtvykenny](https://wordpress.org/support/users/mrtvykenny/)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   we’ll be here if and/or when you are ready to continue.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/open_basedir-problem-4/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/open_basedir-problem-4/page/2/?output_format=md)

The topic ‘open_basedir problem’ is closed to new replies.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

 * 17 replies
 * 10 participants
 * Last reply from: [Abhi G. a11n](https://wordpress.org/support/users/theabhig/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/open_basedir-problem-4/page/2/#post-14700213)
 * Status: resolved