thanatos Publish time 2023-04-09 16:59

[X3.5] Got an 'Access Denied' error during system initiailizing

本帖最後由 thanatos 於 2023-04-09 17:45 編輯

When the Setup Wizard tried to initialize the system, an Access Denied error messages was shown:


The errror message was generated from install/include/install_functions.php:1095. It created an AJAX request to /misc.php?mod=initsys&language=en, and source/module/misc/misc_initsys.php:25 is the actual line that raised this error:
if(!($_G['adminid'] == 1 && $_GET['formhash'] == formhash()) && $_G['setting']) {
exit('Access Denied');                                                      
}
By trying to install an official Disucz! X3.5, I found $_G['setting'] was an empty array. However, $_G['setting'] contained abundant contents when I tried to install Discuz! X3.5 ML.

I don't know how to fix this bug, but it seems that $_G['setting'] must be empty during system initialization.


vot Publish time 2023-04-09 21:51

Tnx, now digging the problem...

vot Publish time 2023-04-11 20:44

Fixed.
Pages: [1]
View full version: [X3.5] Got an 'Access Denied' error during system initiailizing