1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

E_COMPILE_ERROR with some plugins Alpha7

Discussion in 'Plugin Help' started by TeraCube, Jul 29, 2017.

  1. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    Hi,
    I'm a french newbies ;-)
    My server is hosting and turn on
    PocketMine-MP_1.6.2dev-318_aa6eef26_API-3.0.0-ALPHA7
    uname -a: Linux ns3023271.ip-151-80-230.eu 4.4.19-mod-std-ipv6-64 #1 SMP Mon Aug 22 13:05:01 CEST 2016 x86_64
    PHP Version: 7.0.17
    Zend version: 3.0.0
    OS : Linux, linux

    I need help because server is unable to load some new version plugin Alpha 7
    example : EconomyAPI v5.7.1-dev1 or KillMoney
    All other plugins worked fine on my server
    I download all latest plugin on poggit website
    example : https://poggit.pmmp.io/r/9215/KillMoney.phar
    I tried zip to phar and phar to zip no success

    I need your help
    thanks

    Crashdump example
    ---------------------------------------------------------------------------------------------------------------------------------------------
    PocketMine-MP Crash Dump Sat Jul 29 08:48:39 CEST 2017

    Error: Declaration of onebone\economyapi\command\MyMoneyCommand::execute(pocketmine\command\CommandSender $sender, $label, array $params) must be compatible with pocketmine\command\Command::execute(pocketmine\command\CommandSender $sender, string $commandLabel, array $args)
    File: EconomyAPI_v5.7.1-dev1.phar/src/onebone/economyapi/command/MyMoneyCommand
    Line: 39
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: EconomyAPI v5.7.1-dev1

    Code:
    [30]
    [31] if($sender instanceof Player){
    [32] $money = $this->plugin->myMoney($sender);
    [33] $sender->sendMessage($this->plugin->getMessage("mymoney-mymoney", [$money]));
    [34] return true;
    [35] }
    [36] $sender->sendMessage(TextFormat::RED."Please run this command in-game.");
    [37] return true;
    [38] }
    [39] }
    [40]
    [41]
    [42]
    [43]
    [44]
    [45]
    [46]
    [47]
    [48]
    [49]

    Backtrace:

    PocketMine-MP version: 1.6.2dev #318 [Protocol 113; API 3.0.0-ALPHA7]
    Git commit: aa6eef26e985ab9fc0c10e641666a4c5d0c37992
    uname -a: Linux ns3023271.ip-151-80-230.eu 4.4.19-mod-std-ipv6-64 #1 SMP Mon Aug 22 13:05:01 CEST 2016 x86_64
    PHP Version: 7.0.17
    Zend version: 3.0.0
    OS : Linux, linux

    Loaded plugins:
    PurePerms 1.4.1-dev1 by 64FF00 & ProjectInfinity for API(s) 3.0.0-ALPHA7
    BlockPets 1.1.0 by BlockHorizons for API(s) 3.0.0-ALPHA7
    EconomyAPI 5.7.1-dev1 by onebone for API(s) 3.0.0-ALPHA7
    AlwaysSpawn 2.2.3-dev1 by Philip Shilling for API(s) 3.0.0-ALPHA7
    SimpleAuth 1.8.1-dev1 by PocketMine Team, shoghicp, awzaw for API(s) 3.0.0-ALPHA7
    SimpleAuthHelper 2.0.5-dev1 by aliuly for API(s) 3.0.0-ALPHA7
    PiggyCustomEnchants 1.0.2 by DaPigGuy for API(s) 3.0.0-ALPHA7
    essentialsTP 1.1.1-dev3 by for API(s) 3.0.0-ALPHA7
    ChatToDiscord 1.1.0 by eDroid for API(s) 3.0.0, 3.0.0-ALPHA6, 3.0.0-ALPHA7
    FactionsPP 0.9.5 by HittmanA for API(s) 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6, 3.0.0-ALPHA7
    Parkour 1.5.3 by jdcraft for API(s) 3.0.0-ALPHA7

    ----------------------REPORT THE DATA BELOW THIS LINE-----------------------

    -------------------------------------------------------------------------------------------------------------------------------------------
    PocketMine-MP Crash Dump Sat Jul 29 08:26:56 CEST 2017

    Error: Declaration of kenygamer\KillMoney\Main::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args) must be compatible with pocketmine\command\CommandExecutor::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool
    File: KillMoney.phar/src/kenygamer/KillMoney/Main
    Line: 31
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [22] use pocketmine\event\entity\EntityDamageByEntityEvent;
    [23] use pocketmine\event\Listener;
    [24] use pocketmine\event\player\PlayerDeathEvent;
    [25] use pocketmine\Player;
    [26] use pocketmine\plugin\PluginBase;
    [27] use pocketmine\Server;
    [28] use pocketmine\utils\Config;
    [29] use pocketmine\utils\TextFormat;
    [30]
    [31] class Main extends PluginBase implements Listener
    [32] {
    [33] /** @var array */
    [34] protected $config;
    [35]
    [36] /**
    [37] * onEnable()
    [38] *
    [39] * Plugin enable
    [40] *
    [41] * @return null

    Backtrace:

    PocketMine-MP version: 1.6.2dev #318 [Protocol 113; API 3.0.0-ALPHA7]
    Git commit: aa6eef26e985ab9fc0c10e641666a4c5d0c37992
    uname -a: Linux ns3023271.ip-151-80-230.eu 4.4.19-mod-std-ipv6-64 #1 SMP Mon Aug 22 13:05:01 CEST 2016 x86_64
    PHP Version: 7.0.17
    Zend version: 3.0.0
    OS : Linux, linux

    Loaded plugins:
    PurePerms 1.4.1-dev1 by 64FF00 & ProjectInfinity for API(s) 3.0.0-ALPHA7
    BlockPets 1.1.0 by BlockHorizons for API(s) 3.0.0-ALPHA7

    ----------------------REPORT THE DATA BELOW THIS LINE-----------------------
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    wait! Just bumping APIs is a bad idea. Don't do that. Especially here, every plugin with commands or tasks will crash the server. the typehints need to be updated
     
    HimbeersaftLP likes this.
  3. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    thanks NickTehUnicorn, thanks robske_110
    I'll be patient
     
  4. NickTehUnicorn

    NickTehUnicorn Zombie

    Messages:
    200
    GitHub:
    unickorn
    Have you tried getting the latest EconomyAPI from GitHub?

    Also the KillMoney on poggit isn't conpatible with API 3.0.0-ALPHA7 but the GitHub link should work.

    Edit: added KillMoney link
     
    Last edited: Jul 30, 2017
  5. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    Hi NickTehUnicorn,
    I tried this two links and download zip files and create phar files with pocketmine tools zip to phar.
    Server crash with this two links, but ok with others plugins Alpha 7 version (simpleauth for example)
    same result if i download the phar file :
    https://poggit.pmmp.io/ci/poggit-orphanage/EconomyS/EconomyAPI

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PocketMine-MP Crash Dump Sun Jul 30 09:04:17 CEST 2017
    Error: Declaration of kenygamer\KillMoney\Main::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args) must be compatible with pocketmine\command\CommandExecutor::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool
    File: KillMoney_v1.1.2.phar/src/kenygamer/KillMoney/Main
    Line: 31
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [22] use pocketmine\event\entity\EntityDamageByEntityEvent;
    [23] use pocketmine\event\Listener;
    [24] use pocketmine\event\player\PlayerDeathEvent;
    [25] use pocketmine\Player;
    [26] use pocketmine\plugin\PluginBase;
    [27] use pocketmine\Server;
    [28] use pocketmine\utils\Config;
    [29] use pocketmine\utils\TextFormat;
    [30]
    [31] class Main extends PluginBase implements Listener
    [32] {
    [33] /** @var array */
    [34] protected $config;
    [35]
    [36] /**
    [37] * onEnable()
    [38] *
    [39] * Plugin enable
    [40] *
    [41] * @return null

    Backtrace:

    PocketMine-MP version: 1.6.2dev #319 [Protocol 113; API 3.0.0-ALPHA7]
    Git commit: 3e141afe4881357b76fbe9f873914b9408994f9a
    uname -a: Linux ns3023271.ip-151-80-230.eu 4.4.19-mod-std-ipv6-64 #1 SMP Mon Aug 22 13:05:01 CEST 2016 x86_64
    PHP Version: 7.0.17
    Zend version: 3.0.0
    OS : Linux, linux

    Loaded plugins:
    PurePerms 1.4.1-dev1 by 64FF00 & ProjectInfinity for API(s) 3.0.0-ALPHA7
    BlockPets 1.1.0 by BlockHorizons for API(s) 3.0.0-ALPHA7
    FactionsPro 1.4.4-dev1 by Tethered_, HostingItAll.com for API(s) 3.0.0-ALPHA7
    AlwaysSpawn 2.2.3-dev1 by Philip Shilling for API(s) 3.0.0-ALPHA7
     
  6. Intyre

    Intyre Administrator Staff Member PMMP Team

    Messages:
    81
    GitHub:
    Intyre
    What you should do when a plugin is causing a problem is to report it.
    https://github.com/kenygamer/KillMoney/issues
     
  7. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    I've updated the poggit-orphanage EconomyS repo so the latest poggit builds should now be fully compatible with API 3.0.0-ALPHA7; also onebone is back in action and in the process of updating the original repo
     
    NickTehUnicorn likes this.
  8. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    thanks Awzaw
     
    Awzaw likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.