I understand, I will paste you the content I added in LocalSettings.php, but I did a test before updating, I removed this content from LocalSettings.php and during the update I also got this error.
# PERSONAL CONFIGURATION:
# * - Group of guests
# user - Users group
# autoconfirmed - Confirmed users
# Restriction on creating all pages:
# Only users with accounts older than four days can create pages
# Requires MW 1.6 or later version
$wgGroupPermissions['*' ]['createpage'] = false; // Guests cannot create pages
$wgGroupPermissions['user' ]['createpage'] = false; // Users cannot create pages
$wgGroupPermissions['autoconfirmed']['createpage'] = true; // Verified users can create pages
# Editing restriction
$wgGroupPermissions['*']['edit'] = false; // Guests cannot edit pages
$wgGroupPermissions['user']['edit'] = false; // Users cannot edit pages
$wgGroupPermissions['autoconfirmed']['edit'] = true; // Confirmed users can edit pages
# Allowed file types that can be uploaded
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
# Disallowed file types that cannot be uploaded
/**
* Files with these extensions will not be able to be uploaded
* An array of file extensions to blacklist
* If you want to blacklist additional files, you should add them to this array
*/
$wgProhibitedFileExtensions = [
# HTML may contain JavaScript that steals cookies and web errors
'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
# PHP scripts can execute arbitrary code on the server
'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
# Other file types that may be interpreted by some servers
'shtml', 'jhtml', 'pl', 'py', 'cgi',
# It may contain malicious executable files for Windows victims
'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl',
# T341565
'xml',
];
# Allowed file upload size from computer and link
$wgMaxUploadSize = [
'*' => 500 * 1024, // 500 KB - File size from your computer
'url' => 500 * 1024, // 500 KB - File size from link
];
# Warning when uploading a file over 500 KB
$wgUploadSizeWarning = 500 * 1024;
# Regular users cannot upload the file
$wgGroupPermissions['user']['upload'] = false;
# Confirmed users can upload a file and resend the file to the server
$wgGroupPermissions['autoconfirmed']['upload'] = true;
$wgGroupPermissions['autoconfirmed']['reupload'] = true;
# Verified users can upload the file via the link
$wgGroupPermissions['autoconfirmed']['upload_by_url'] = true;
$wgAllowCopyUploads = true;
$wgCopyUploadsFromSpecialUpload = true;
# Enabling the CreatePageUw extension - Create a page
wfLoadExtension( 'CreatePageUw' );
# Enable the ConfirmEdit extension - CAPTCHA against spambots
wfLoadExtension( 'ConfirmEdit' );
# QuestyCaptcha
wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/QuestyCaptcha' ]);
# Add your questions in LocalSettings.php using this format:
$wgCaptchaQuestions = [
'xx' => 'xx', // In response, the letter size does not matter
'xx' => 'xx', // In response, the letter size does not matter
'xx' => 'xx', // In response, the letter size does not matter
'xx' => [ 16, 'xx' ], // The question may have many answers
];
$wgMainCacheType = CACHE_ANYTHING;
$wgCaptchaTriggers['edit'] = true;
$wgCaptchaTriggers['create'] = true;
$wgCaptchaTriggers['createtalk'] = true;
$wgCaptchaTriggers['addurl'] = true;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;
# User must confirm email address before they can edit
$wgEmailConfirmToEdit = true;
# Enabling the TinyMCE extension - WYSIWYG editor
wfLoadExtension( 'TinyMCE' );
$wgTinyMCEEnabled = true;
# Displaying the TinyMCE editor when creating a new page in the CreatePageUw extension.
$wgCreatePageUwUseTMCE = true;
# Enabling the Page Forms extension
wfLoadExtension( 'PageForms' );
# Access the Edit tab using the form
$wgGroupPermissions['*']['viewedittab'] = false; // Guests do not have access to edit using the form
$wgGroupPermissions['user']['viewedittab'] = false; // Users do not have access to edit using the form
$wgGroupPermissions['sysop']['viewedittab'] = true; // Administrators have access to editing via the form
# Enabling the DarkMode extension
wfLoadExtension( 'DarkMode' );
# Enabling the Citizen skin
wfLoadSkin( 'Citizen' );