Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/shop (category) crashes the server #45

Open
YT-Duckyyy opened this issue Apr 21, 2022 · 0 comments
Open

/shop (category) crashes the server #45

YT-Duckyyy opened this issue Apr 21, 2022 · 0 comments
Assignees

Comments

@YT-Duckyyy
Copy link

Please make sure your issue complies with these guidelines:

    • Server Software must be the official PMMP w/o vanilla patching plugins (i.e. TeaSpoon)
    • Issue must have not been reported previously
    • Make sure you are on the latest version of PMMP & PiggyShopUI
    • Have a detailed title.

Issue Description

  • Expected result: Open the UI
  • Actual result: Crashed the server

Steps to Reproduce the Issue

  1. Run /shop (category)
  2. Server will crash

OS and Versions

  • PocketMine-MP: 4.3.0
  • PiggyShopUI: 3.0.1
  • PHP: 8.0.16
  • Server OS: Linux

[17:06:30.404] [Server thread/CRITICAL]: ErrorException: "preg_match(): Unknown modifier 'q'" (EXCEPTION) in "plugins/PiggyShopUI (2).phar/src/DaPigGuy/PiggyShopUI/libs/CortexPE/Commando/args/StringEnumArgument" at line 59

--- Stack trace ---
#0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(integer 2, string[34] preg_match(): Unknown modifier 'q', string[127] phar:///home/container/plugins/PiggyShopUI (2).phar/src/DaPigGuy/PiggyShopUI/lib, integer 59)
#1 plugins/PiggyShopUI (2).phar/src/DaPigGuy/PiggyShopUI/libs/CortexPE/Commando/args/StringEnumArgument(59): preg_match(string[76] /^(blocks|gear / equipment |raiding|farming|spawners|minerals|mob drops)$/iu, string[3] Mob)
#2 plugins/PiggyShopUI (2).phar/src/DaPigGuy/PiggyShopUI/libs/CortexPE/Commando/traits/ArgumentableTrait(116): DaPigGuy\PiggyShopUI\libs\CortexPE\Commando\args\StringEnumArgument->canParse(string[3] Mob, object pocketmine\console\ConsoleCommandSender#113225)
#3 plugins/PiggyShopUI (2).phar/src/DaPigGuy/PiggyShopUI/libs/CortexPE/Commando/BaseCommand(134): DaPigGuy\PiggyShopUI\libs\CortexPE\Commando\BaseCommand->parseArguments(array[2], object pocketmine\console\ConsoleCommandSender#113225)
#4 plugins/PiggyShopUI (2).phar/src/DaPigGuy/PiggyShopUI/libs/CortexPE/Commando/BaseCommand(111): DaPigGuy\PiggyShopUI\libs\CortexPE\Commando\BaseCommand->attemptArgumentParsing(object DaPigGuy\PiggyShopUI\commands\ShopCommand#130326, array[2])
#5 pmsrc/src/command/SimpleCommandMap(220): DaPigGuy\PiggyShopUI\libs\CortexPE\Commando\BaseCommand->execute(object pocketmine\console\ConsoleCommandSender#113225, string[4] shop, array[2])
#6 pmsrc/src/Server(1409): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\console\ConsoleCommandSender#113225, string[14] shop Mob Drops)
#7 pmsrc/src/Server(1041): pocketmine\Server->dispatchCommand(object pocketmine\console\ConsoleCommandSender#113225, string[14] shop Mob Drops)
#8 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine{closure}()
#9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#10 pmsrc/src/Server(1661): pocketmine\snooze\SleeperHandler->sleepUntil(double 1650560790.4271)
#11 pmsrc/src/Server(1047): pocketmine\Server->tickProcessor()
#12 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#13 pmsrc/src/PocketMine(327): pocketmine\server()
#14 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants