Hola
me sale este error cuando veo la web a través del smartphone.
Alguien puede ayudarme ?
Warning: is_readable(): open_basedir restriction in effect. File(/Newspaper/theme.json) is not within the allowed path(s): (/var/www/vhosts/loradelrio.net/:/tmp/) in /var/www/vhosts/loradelrio.net/httpdocs/wp-includes/class-wp-theme-json-resolver.php on line 354
gracias
Hi,
The open_basedir is a server configuration, a security measure to disallow file access. The PHP script is trying to access the folder for which access is not allowed. This restriction is defined by the PHP open_basedir variable for each domain separately. By default, open_basedir allows access to the tmp and domain’s document root directories.
There are a couple of things that you can try.
First, you should check your files and folders permission ad make sure that the permission of the file is set to 755 and files to 644.
You should also try deactivating the open_basedir. Edit the php.ini file, or .user.ini that is located within the main directory of your site and add this line:
open_basedir = none
Make sure to reach out to your hosting provider for more assistance with this if you are unsure how to handle this as they will be able to assist you more with these specifics.
Let me know the results!
Thank you!
Hello @Jazzie,
Please make a full backup to all files and database and contact us via email at contact@tagdiv.com and provide the following:
– wp-admin URL and credentials
– cPanel URL and credentials
– a link to this topic in order to identify you
Our team will take a look!
Thank you!
I have same problem. Permission of the file is set to 755 and files to 644. My hosting provider doesn’t want to help me. Could you fix it in next theme update?
Hi paveldrabek, we can try to help you, unfortunately the open_basedir restriction in effect is not related to the theme support, son we can not guarantee that we can solve it, but we’ll try our best.
If you agree we can take a look to your website and cPanel, for this please contact us via email, make sure that you have a full backup and you provide admin access for wp-admin and cPanel. We’ll check it as soon as possible.
Thank you for your understanding!
I have same problem.
Warning: is_readable(): open_basedir restriction in effect. File(/Newsmag/theme.json) is not within the allowed path(s): (/www/wwwroot/xxxx.com/:/tmp/) in /www/wwwroot/xxxxx.com/wp-includes/class-wp-theme-json-resolver.php on line 353
i checked my folders and files permissions. (folders= 755 files =644. )
i added ” open_basedir = none ” line to user.ini
Even after installing php 8 and doing all this. the issue is still there.
Hello @anand.kumar321@gmail.com!
Please make a full backup, send an email at contact@tagdiv.com and provide more information about your issue (links, screenshots), wp-admin and Cpanel access, so we can investigate this issue. Also paste a link to this topic so we can easily identify you.
Let us know and we will gladly assist you.
Thanks!
Hello @nwnuyhs!
Please check these topics also: https://mediatemple.net/community/products/dv/204404214/how-do-i-set-the-path-for-open_basedir ; https://stackoverflow.com/questions/27838138/phpass-producing-warning-is-readable-function-is-readable-open-basedir-res and follow the instructions.
Hope that helps you!
Thank you!
