Hi, i´ve been having the same problem since a while. not sure why i´m recieving this error:

warning: main() [function.main]: open_basedir restriction in effect. File(/buddylist_views.inc) is not within the allowed path(s): (/var/www/vhosts/petlove.eu/httpdocs:/tmp) in /var/www/vhosts/petlove.eu/httpdocs/sites/all/modules/buddylist/buddylist.module on line 5.

Would love to be able to uncomment that line!! could you please help me trouble shoot this??
thanks.

Comments

billmurphy’s picture

Any ideas?

zan’s picture

Status: Active » Needs review

I'm having the same problem too. I'm surprised no-one else has come across this, or has at least followed-up with our experiences. I am getting the following error:

* warning: main() [function.main]: open_basedir restriction in effect. File(/buddylist_views.inc) is not within the allowed path(s): (/var/www/vhosts/infektid.org/httpdocs:/tmp) in /var/www/vhosts/MYSITE.com/httpdocs/modules/buddylist/buddylist.module on line 5.
* warning: main(buddylist_views.inc) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/MYSITE.com/httpdocs/modules/buddylist/buddylist.module on line 5.
* warning: main() [function.include]: Failed opening 'buddylist_views.inc' for inclusion (include_path='.:') in /var/www/vhosts/MYSITE.com/httpdocs/modules/buddylist/buddylist.module on line 5.

zan’s picture

Alright, check it out:

OPEN - buddylist.module

On LINE 5, change the line "include_once('buddylist_views.inc');" to this "include_once('./buddylist_views.inc');" (Without the quotes, of course. This has eliminated half of my errors.

zan’s picture

Update.

I've replaced lines 4,5, and 6 in buddylist.module from this:

if (module_exists('views')) {
include_once('./buddylist_views.inc');
}

to this:

if (module_exists('views')) {
$path = drupal_get_path('module', 'buddylist');
require_once($path . '/buddylist_views.inc');
}

This seems to have eliminated the errors I was getting. Hope this helps.

billmurphy’s picture

i´ve applied the patch, and it does eliminate the errors!!! but seems all my view pages get a WSOD (white screen of death), including the admin/build/views and any view driven page.
I´ve tried adding one by one the functions in buddylist_views.inc but they ALL give the same error (blank screen)!?

robertDouglass’s picture

Status: Needs review » Fixed

Include has been fixed. thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)