Skip to content

Plugin crashes server after upgrading to PHP 7.4 #76

Description

@stefan131

After my host upgraded PHP to version 7.4 the server does start up with this plugin anymore.
I got the following exception:

08.05 12:56:07 [Server] INFO Loading MapImageEngine v1.1.3 08.05 12:56:07 [Server] CRITICAL ErrorException: "Array and string offset access syntax with curly braces is deprecated" (EXCEPTION) in "plugins/MapImageEngine.phar/src/FaigerSYS/MapImageEngine/MapImageEngine" at line 64 08.05 12:56:07 [Server] CRITICAL #0 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(138): pocketmine\utils\Utils::errorExceptionHandler(integer 8192, string[69] Array and string offset access syntax with curly braces is deprecated, string[130] phar:///plugins/MapImageEngine.ph, integer 64, array[2]) 08.05 12:56:07 [Server] CRITICAL #1 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(138): include() 08.05 12:56:07 [Server] CRITICAL #2 pmsrc/vendor/pocketmine/classloader/src/BaseClassLoader(124): BaseClassLoader->loadClass(string[39] FaigerSYS\MapImageEngine\MapImageEngine) 08.05 12:56:07 [Server] CRITICAL #3 (): BaseClassLoader->{closure}(string[39] FaigerSYS\MapImageEngine\MapImageEngine) 08.05 12:56:07 [Server] CRITICAL #4 (): spl_autoload_call(string[39] FaigerSYS\MapImageEngine\MapImageEngine) 08.05 12:56:07 [Server] CRITICAL #5 pmsrc/src/pocketmine/plugin/PluginManager(167): class_exists(string[39] FaigerSYS\MapImageEngine\MapImageEngine, boolean 1) 08.05 12:56:07 [Server] CRITICAL #6 pmsrc/src/pocketmine/plugin/PluginManager(346): pocketmine\plugin\PluginManager->loadPlugin(string[75] /plugins/MapImageEngine.phar, array[2]) 08.05 12:56:07 [Server] CRITICAL #7 pmsrc/src/pocketmine/Server(1529): pocketmine\plugin\PluginManager->loadPlugins(string[56] /plugins/) 08.05 12:56:07 [Server] CRITICAL #8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /, string[56] /plugins/) 08.05 12:56:07 [Server] CRITICAL #9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() 08.05 12:56:07 [Server] CRITICAL #10 pmsrc(11): require(string[103] phar:///PocketMine-MP.phar/src/po) 08.05 12:56:07 [Server] EMERGENCY An unrecoverable error has occurred and the server has crashed. Creating a crash dump

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions