Please select To the mobile version | Continue to access the desktop computer version
| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 3381|Reply: 2
Collapse the left

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

[Copy link]
Post time: 2023-04-09 16:59
| Show all posts |Read mode
本帖最後由 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:
  1. if(!($_G['adminid'] == 1 && $_GET['formhash'] == formhash()) && $_G['setting']) {
  2.   exit('Access Denied');                                                        
  3. }
Copy the Code

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.


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2023-04-09 21:51
| Show all posts
Tnx, now digging the problem...
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-14 07:50 GMT+3 , Processed in 0.044209 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list