Closed (fixed)
Project:
Buddylist
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2007 at 00:18 UTC
Updated:
29 May 2007 at 13:02 UTC
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 commentedAny ideas?
Comment #2
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 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 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 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 commentedInclude has been fixed. thanks.
Comment #7
(not verified) commented