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