为什么 SuiteCRM 在初始设置时返回 HTTP 错误 500?

问题描述 投票:0回答:1

设置 SuiteCRM 时,我在输入凭据进行设置后遇到 HTTP 500 错误。

suitecrm.log

2023-07-26 14:19:25...Begin DB Check Process *************
2023-07-26 14:19:25...testing with mysql:mysqli
2023-07-26 14:19:25...Basic form info is valid, continuing Process.
2023-07-26 14:19:25...Testing user account...
2023-07-26 14:19:25...Connection made using  host: localhost, usr: suitecrm_user
2023-07-26 14:19:25...SUCCESS:: no errors detected!
2023-07-26 14:19:25...End DB Check Process *************
2023-07-26 14:19:25...installerHook: Info: custom/install/install_hooks.php not present, no custom hooks to execute

Apache2 错误日志

[Wed Jul 26 14:27:04.907356 2023] [authz_core:debug] [pid 72851] mod_authz_core.c(815): [client 192.168.1.1:12345] AH01626: authorization result of Require all granted: granted, referer: http://example.com/suitecrm/install.php
[Wed Jul 26 14:27:04.907435 2023] [authz_core:debug] [pid 72851] mod_authz_core.c(815): [client 192.168.1.1:12345] AH01626: authorization result of <RequireAny>: granted, referer: http://example.com/suitecrm/install.php
[Wed Jul 26 14:27:04.936433 2023] [php:error] [pid 72851] [client 192.168.1.1:12345] PHP Fatal error:  $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /var/www/html/suitecrm/install/performSetup.php on line 715, referer: http://example.com/suitecrm/install.php
[Wed Jul 26 14:27:07.275361 2023] [authz_core:debug] [pid 72852] mod_authz_core.c(815): [client 192.168.1.2:54321] AH01626: authorization result of Require all granted: granted
[Wed Jul 26 14:27:07.275434 2023] [authz_core:debug] [pid 72852] mod_authz_core.c(815): [client 192.168.1.2:54321] AH01626: authorization result of <RequireAny>: granted
[Wed Jul 26 14:27:07.286347 2023] [php:warn] [pid 72852] [client 192.168.1.2:54321] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/suitecrm/include/utils.php on line 1919
[Wed Jul 26 14:27:07.286396 2023] [php:warn] [pid 72852] [client 192.168.1.2:54321] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/suitecrm/include/utils.php on line 1873
[Wed Jul 26 14:27:07.292414 2023] [deflate:debug] [pid 72852] mod_deflate.c(869): [client 192.168.1.2:54321] AH01384: Zlib: Compressed 48222 to 15642 : URL /suitecrm/install.php
[Wed Jul 26 14:27:07.417104 2023] [authz_core:debug] [pid 72852] mod_authz_core.c(815): [client 192.168.1.2:54321] AH01626: authorization result of Require all granted: granted, referer: http://example.com/suitecrm/install.php

我按照 SuiteCRM 文档中的指南进行操作,并以这种方式设置文件的访问级别

    sudo chmod -R 755 .
    sudo chmod -R 775 cache custom modules themes data upload

并尝试使用 root 以及 Suitecrm 用户连接到数据库。通过控制台连接到数据库是可行的。我在安装中使用了 Apache2 和 MariaDB。任何帮助和提示表示赞赏

php apache suitecrm
1个回答
0
投票

这是 PHP 8.2 版本错误的问题,未完全卸载 7.4 存在不同的错误

© www.soinside.com 2019 - 2024. All rights reserved.