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.
By Emre on
warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/kafkasya.net/httpdocs/portal/includes/module.inc on line 8.
warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/kafkasya.net/httpdocs/portal/includes/module.inc on line 8.
Fatal error: Failed opening required 'modules/user.module' (include_path='.:/php/includes:/usr/share/php') in /home/httpd/vhosts/kafkasya.net/httpdocs/portal/includes/module.inc on line 8
help me pLs
thanks
Comments
Same happens to me...
This is what happens after i do a fresh install of Drupal, and try to import a .po after enabling locale module.
warning: fopen(): open_basedir restriction in effect. File(/nuting/upl/phpzA5cVW) is not within the allowed path(s): (/home/duplika:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/duplika/public_html/includes/locale.inc on line 272.
warning: fopen(/nuting/upl/phpzA5cVW): failed to open stream: Operation not permitted in /home/duplika/public_html/includes/locale.inc on line 272.
warning: Cannot modify header information - headers already sent by (output started at /home/duplika/public_html/includes/common.inc:344) in /home/duplika/public_html/includes/common.inc on line 155.
Also when i try to upload a new logo, it says the source file doesnt exist.
Any ideas?
Server setting
This seems to result from a server setting, commonly in place for security reasons in hosted environments. Either PHP is in "safe mode" or an open_basedir restriction has been set (restricting the directory from which files can be opened). These settings can be changed in your php.ini, but generally in hosted environments you don't have access to this. If this is the case, your host may make adjustments on request. For reference see http://drupal.org/node/14869.
Alternately (if you're willing to get your hands dirty!) there is a patch available for the file.inc file, see http://drupal.org/node/5961. To use this for 4.6, add the following lines below
$file->source = $source;
(line 142 in my copy).