I need help with "open_basedir restriction in effect" Please
-
Hey! I actually do not ask for help at all, this is the first time I am asking for help as I tend to search for answers on google and spend a great amount of time searching for a solution.
However, I am stuck and completely stuck on this error code that has got my head strung around on.
So my main website is http://www.lilapmedia.com the website that I am having problems on is http://c.lilapmedia.com which is a subdomain.
The error code is:
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/lilapmedia.com/subdomains/c/httpdocs.) is not within the allowed path(s): (/var/www/vhosts/lilapmedia.com/subdomains/c/httpdocs:/tmp) in /var/www/vhosts/lilapmedia.com/subdomains/c/httpdocs/wp-content/themes/c/lib/scripts/image-resizer.php on line 70
These are the “solutions” I have tried but has not fixed the problem:
The Dir code for wp-config.php
define('WP_HOME','http://c.lilapmedia.com'); define('WP_SITEURL','http://c.lilapmedia.com');The Display Error php.ini off & php_flag display_errors off for .htaccess
The “wp-content/uploads” fix in the setting.
All of those did not work.
Please help me out as I am completely stuck.
More information is I am on a Shared Host using Plesk.
Using WP 3.3.1 and Buddypress 1.5.5
The code in the file that seems to have problems is:
[ 167 lines of code moderated. For more than 10 lines of code please use pastebin.com instead. ]Line 70 is:
if (!file_exists($base_file))I do not want to hide the error, I would like to get this fixed. A small cash payment can be made for the person who helps me using paypal 😀
Thank you for your help in advance 😀
The topic ‘I need help with "open_basedir restriction in effect" Please’ is closed to new replies.