Closed (fixed)
Project:
Actions
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2006 at 07:47 UTC
Updated:
11 Nov 2006 at 21:45 UTC
Under some circumstances, this can be critical:
My Drupal 4.7.4 (running on newly installed PHP5.0.3) throws an error like this:
* warning: main() [function.main]: open_basedir restriction in effect. File(/actions.inc) is not within the allowed path(s):
(/var/www/vhosts/mydomain/httpdocs:/tmp) in /var/www/vhosts/mydomain/httpdocs/modules/actions/actions.module on line 659.
* warning: main(actions.inc) [function.main]: failed to open stream: Operation not permitted in
/var/www/vhosts/mydomain/httpdocs/modules/actions/actions.module on line 659.
* warning: main() [function.include]: Failed opening 'actions.inc' for inclusion (include_path='.:') in
/var/www/vhosts/mydomain/httpdocs/modules/actions/actions.module on line 659.
line 659 reads
include_once('actions.inc');
but it better should read (if I am right)
include_once(drupal_get_path('module', 'actions') .'/actions.inc');
This fixes the error.
Can somebody please check this?
Thanks
Comments
Comment #1
jvandyk commentedFixed in 4.7 and HEAD. Thanks.
Comment #2
(not verified) commented