Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
billmurphy CreditAttribution: billmurphy commentedAny ideas?
Comment #2
zan CreditAttribution: zan commentedI'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.
Comment #3
zan CreditAttribution: zan commentedAlright, 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.
Comment #4
zan CreditAttribution: zan commentedUpdate.
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.
Comment #5
billmurphy CreditAttribution: billmurphy commentedi´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)!?
Comment #6
robertDouglass CreditAttribution: robertDouglass commentedInclude has been fixed. thanks.
Comment #7
(not verified) CreditAttribution: commented