在localhost上重新安装我的站点后,我得到了以下错误。
Fatal error: require_once() [function.require]: Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/sites/all/modules/custom/redirect/redirect.install'.install文件确实存在,如下所示:
1 <?php
2 /**
3 * @file
4 *
5 */
6
7 /**
8 * Implementation of hook_install().
9 */
10 function redirect_install() {
11
12 }
13
14 /**
15 * Implementation of hook_uninstall().
16 */
17 function redirect_uninstall() {
18 variable_del('desktop_site_home');
19 variable_del('mobile_site_home');
20 }该模块根本没有require或include语句。
有没有人知道这里可能出了什么问题?
提前谢谢..
发布于 2012-01-30 14:41:51
您有权限和/或文件所有权问题。
快速修复它们。这是我的技巧:
cd到模块的目录,然后:
chmod 775 *.install
也可以选择ls -la,并查看在Drupal docroot中是否存在文件的主要所有者。假设您在组www-data中有一些由www-data拥有的文件。
如果是这样,您的web服务器很可能就是以该用户身份运行的。所以..。
chown www-data:www-data文件名
希望这能有所帮助
乔
https://stackoverflow.com/questions/9037544
复制相似问题