Started by addlife, March 24, 2019, 03:19:33 pm
Quote from: addlife on March 24, 2019, 03:19:33 pmHi I installed the mod from this site.When clicking on the arcade admin settings to edit games, manage installations, and manage uploads it gives me this error"Too few arguments to function mb_substr(), 2 passed in /home/xyz1/public_html/Sources/Subs-ArcadeAdmin.php on line 2244 and exactly 3 expected"my site is 001002.xyzand I attached the file mentionedAny ideas how I can fix it?Thanks.
Quote from: Chen Zhen on March 28, 2019, 12:32:16 amIf I remember correctly, substr was swapped out with mb_substr a while back but the length parameter was not added.Odd thing is that I do not get this error.The PHP manual shows that length and char encoding have defaults if not included.ref. https://www.php.net/manual/en/function.mb-substr.phpI attached your file with that function edited to include the length parameter.What PHP version are you using?
http://001002.xyz/index.php?action=admin;area=managegames;sa=main;dda83f97bf6=76902c6ab5738584641c10b8fab50d798: Undefined variable: allDirsFile: /home/xyz1/public_html/Sources/Subs-ArcadeAdmin.phpLine: 2656
http://001002.xyz/index.php?action=admin;area=managegames;sa=main;dda83f97bf6=76902c6ab5738584641c10b8fab50d792: in_array() expects parameter 2 to be array, null givenFile: /home/xyz1/public_html/Sources/Subs-ArcadeAdmin.phpLine: 2656
Quote from: undefinedPurge /home/napalmz0/public_html/Games Directory Of Compressed ArchivesPurge /home/napalmz0/public_html/Games Directory Of Unused Game Folders
$_SESSION['qaction_data'] = installGames($install, $setCategory);
$_SESSION['qaction_data'] = installGames($install, $setCategory, false);