gpt4 book ai didi

drupal-7 - fatal error : require_once() with module . 安装文件,drupal 7

转载 作者:行者123 更新时间:2023-12-02 20:16:17 26 4
gpt4 key购买 nike

在本地主机上重新安装我的网站后,出现以下错误。

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 语句。

有人知道这里可能出了什么问题吗?

提前致谢..

最佳答案

您遇到权限和/或文件所有权问题。

快速修复它们。这是我的技术:

cd 到模块的目录并:

chmod 775 *.install

(可选) ls -la 并查看 Drupal 文档根目录中是否存在文件的主要所有者。假设您在 www-data 组中有一些属于 www-data 的文件。

如果是这样,这可能是您的网络服务器正在运行的用户。所以...

chown www-data:www-data [文件名]

希望有帮助

关于drupal-7 - fatal error : require_once() with module . 安装文件,drupal 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9037544/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com