2021.025 FIX Uncaught Error: Call to undefined function fnmatch()
daocaoit
New
fnmatch
Warning: For now, this function is not available on non-POSIX compliant systems except Windows.
Maybe you need to add this in the file library/core/functions.general.php
if(!function_exists('fnmatch')) {
function fnmatch($pattern, $string) {
return preg_match("#^".strtr(preg_quote($pattern, '#'), array('\*' => '.*', '\?' => '.'))."$#i", $string);
} // end
} // end if
0
Comments
update from 012, should exec sqls
ALTER TABLE `GDN_ConversationMessage` CHANGE `Body` `Body` MEDIUMINT NOT NULL; ALTER TABLE `GDN_User` ADD INDEX `IX_User_Deleted` (`Deleted`); ALTER TABLE `GDN_ActivityComment` CHANGE `Body` `Body` MEDIUMINT NOT NULL; ALTER TABLE `GDN_Ban` CHANGE `BanType` `BanType` ENUM('IPAddress','Name','Email','Fingerprint') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'IPAddress'; ALTER TABLE `GDN_Discussion` ADD `statusID` INT(11) NULL DEFAULT NULL AFTER `RegardingID`; ALTER TABLE `GDN_Discussion` CHANGE `statusID` `statusID` INT(11) NULL DEFAULT '0'; ALTER TABLE `GDN_Discussion` ADD INDEX `IX_Discussrion_statusID` (`statusID`); ALTER TABLE `GDN_TagDiscussion` ADD INDEX `IX_TagDiscussion_DiscussionID` (`DiscussionID`);upgrade to 025.