Pocketmine-MP 4.0.0 BETA-2 plugin error

Discussion in 'Development' started by HaruDa, Sep 14, 2021.

  1. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
    PocketMine-MP Crash Dump Tue Sep 14 14:45:52 AWST 2021

    Error: Declaration of pbol377\dungeon\Main::eek:nEnable() must be compatible with pocketmine\plugin\PluginBase::eek:nEnable(): void
    File: plugins/PDungeon_V1.8.8.0/src/pbol377/dungeon/Main(1) : eval()'d code
    Line: 209
    Type: E_COMPILE_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:

    Backtrace:

    PocketMine-MP version: 4.0.0-BETA2+dev [Protocol 448]
    Git commit: 334bf1277d6897cbc237b7be5f7c5f6ad7d8e8f1-dirty
    uname -a: Windows NT DESKTOP-C60V89R 10.0 build 19041 (Windows 10) AMD64
    PHP Version: 8.0.10
    Zend version: 4.0.10
    OS : WINNT, win
    Composer libraries:
    - adhocore/json-comment [email protected]
    - brick/math [email protected]
    - daverandom/callback-validator [email protected]
    - fgrosse/phpasn1 [email protected]
    - netresearch/jsonmapper [email protected]
    - pocketmine/bedrock-protocol [email protected]
    - pocketmine/binaryutils [email protected]
    - pocketmine/callback-validator [email protected]
    - pocketmine/classloader [email protected]
    - pocketmine/color [email protected]
    - pocketmine/errorhandler [email protected]
    - pocketmine/log [email protected]
    - pocketmine/log-pthreads [email protected]
    - pocketmine/math [email protected]
    - pocketmine/nbt [email protected]
    - pocketmine/pocketmine-mp [email protected]
    - pocketmine/raklib [email protected]
    - pocketmine/raklib-ipc [email protected]
    - pocketmine/snooze [email protected]
    - pocketmine/spl [email protected]
    - ramsey/collection [email protected]
    - ramsey/uuid [email protected]
    - respect/stringifier [email protected]
    - respect/validation [email protected]
    - rhumsaa/uuid [email protected]
    - symfony/polyfill-ctype [email protected]
    - symfony/polyfill-mbstring [email protected]
    - webmozart/assert [email protected]
    - webmozart/path-util [email protected]

    Loaded plugins:
    BuilderTools 1.3.0-beta1 by CzechPMDevs, VixikHD for API(s) 4.0.0-beta1
    DevTools 1.15.0+dev by PocketMine Team for API(s) 4.0.0
    ParticleAPI SKY by skymin for API(s) 3.0.0, 4.0.0
    reboot SKY by skymin for API(s) 4.0.0



    What happened to this problem? If you can fix it, find someone who can fix it.
     
  2. ErikX

    ErikX Zombie

    Messages:
    219
    Helpful tip!
    Add code blocks between your code to make it look neater.
    Eg (Type it without the space in front of PHP:
    [ CODE]
    Code…
    [ /CODE]

    Or click the + sign intop of the chat box, and click code.
     
    NTT likes this.
  3. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
    Please tell me how to fix that error rather than tips!
     
  4. ErikX

    ErikX Zombie

    Messages:
    219
    Hey there and welcome to the forums.
    I'll remind you the developers on this forum aren't magicians(expect the OPS) and we don't know your source code.
    Send the code that caused the error.
     
    minijaham likes this.
  5. ErikX

    ErikX Zombie

    Messages:
    219
    The error is on line 209.
     
  6. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
    Fatal error: Declaration of pbol377\dungeon\Main::eek:nEnable() must be compatible with pocketmine\plugin\PluginBase::eek:nEnable(): void in C:\Users\abc\Desktop\Kara\Kara sv\plugins\PDungeon_V1.8.8.0\src\pbol377\dungeon\Main.php(1) : eval()'d code on line 209


    The only error codes are dump and this.
     
  7. ErikX

    ErikX Zombie

    Messages:
    219
    Can you provide the source code on line 209?
     
  8. minijaham

    minijaham Zombie Pigman

    Messages:
    693
    GitHub:
    minijaham
    You forgot to put your onEnable as return type void
     
    ErikX likes this.
  9. ErikX

    ErikX Zombie

    Messages:
    219
    xd
     
  10. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
    • Obfuscated Code is not allowed!
    <?php /*** PHP Encode v1.0 by sssss.com ***/ $XnNhAWEnhoiqwciqpoHH=file(__FILE__);eval(base64_decode("aWYoIWZ1bmN0aW9uX2V4aXN0cygiWWl1bklVWTc2YkJodWhOWUlPOCIpKXtmdW5jdGlvbiBZaXVuSVVZ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17bQaOC7K5sPFygXZrG6SDndifvFNA1MGXptw0IWhG/Zj0PLyH9i9rX2f9za/bfN+VEwPJkti5Cz2lWM+uBtA7O/yIBYCSB+mQFxDSHm7Nn2H+60PmDZPAdsL43HAjIYut9QFcg0iNMDETdjOEt0T0uiezqHfDFuJe1v74CYHZAIH0L18OS0AzUpUCfIeiJFIciF0LWKIGGj1Xq4tvv+4/bd6wTKtm7+GYOP7U9uBOHGwe9Or5ytmf5hn+D42bD/JxPck+NgasQeqlmNcV903ulAmiq9lmZh/yiU7q4E9Zl2o+mHNqVshiY8p9C2X19r391u3blDibv1Zvvft9GFWnvU/vgOKex8tQ0TUetP99tfgB744gZLLyYNWKisZlzSmxayHkldIOlmMqv0I7sb0Ic/QU/WQDO909r6HFzBsBtdWivL/ME28uE2NK23RqYsoWOETps/yAbvfP3NzsN70NIEZ+RtrU7PLB9sa3ffvA/6LY2P87bWM68ZB9tW5q9itGK/mtzQr9gH3OZ3f9v63Vq6noBOfP1o58HvyYnflMvFHlpvGLUDbv3dR+2bd8GYuQMWUZdOjAzn74KrgwI/4C58s9m6dZ3zDsyPPfBNoOtSd88cZONbazdaf8sg/Le32p98DoQfxd1A+UnP9ygdaOvf/T1OMQfRerEX6mBnni/b797qoG4K7e0b+ZtOo9sHPAU9/PvuhxvCg9mjkqQLv/vf2vbb77X/jh47beMX19t/uI2e0vt3QtO1fRec3whYfAB2b90GX4oM/eY4eQOssm9a97fbb9+A38eKYHndaq//nbQ/fLe9+bh1b5vMHi3PUzticwvq68nYSa5lWI6bpM6eQ5LjeMPGYffZgjtCfvDa9rgkQ4P6lDUPX1SSs+J+Bg6j+z0SkcO0LUFyQfpreJ7vzKAfC5Xjx+R9qQgILcne1jEs9nWIrWa2Xqf
     
  11. ErikX

    ErikX Zombie

    Messages:
    219
    He's a magician.
     
    minijaham likes this.
  12. ErikX

    ErikX Zombie

    Messages:
    219
    We cannot read obfuscated code(Maybe @minijaham can)

    De-obfuscated code:
    PHP:
    <?php function YiunIUY76bBhuhNYIO8($g$b 0) {
        
    $a implode("
    "
    $g);
        
    $d = array(65523640);
        if (
    $b == 0$f substr($a$dundefined0], $d[1]);
        elseif (
    $b == 1$f substr($a$d[0] + $d[1], $d[2]);
        else 
    $f trim(substr($a$d[0] + $d[1] + $d[2]));
        return (
    $f);
    }
    if (!
    function_exists("YiunIUY76bBhuhNYIO8")) {
        function 
    YiunIUY76bBhuhNYIO8($g$b 0) {
            
    $a implode("
    "
    $g);
            
    $d = array(65523640);
            if (
    $b == 0$f substr($a$d[0], $d[1]);
            elseif (
    $b == 1$f substr($a$d[0] + $d[1], $d[2]);
            else 
    $f trim(substr($a$d[0] + $d[1] + $d[2]));
            return (
    $f);
        }
    }
    Use code blocks, it makes it neater.
     
    NTT and minijaham like this.
  13. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
    I'm a Korean.
    I'm not sure I understand the meaning very well due to the automatic translation.
     
    NTT and ErikX like this.
  14. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
     
  15. minijaham

    minijaham Zombie Pigman

    Messages:
    693
    GitHub:
    minijaham
    저도 한국인인데…뭘 도와드릴까요?
     
  16. minijaham

    minijaham Zombie Pigman

    Messages:
    693
    GitHub:
    minijaham
    Idk, the error was pretty self-explanatory
     
  17. HaruDa

    HaruDa Spider

    Messages:
    9
    GitHub:
    HaruDa405
    Could you please give me the file to solve it?
     
  18. IvanCraft623

    IvanCraft623 Slime

    Messages:
    83
    GitHub:
    IvanCraft623
    와~ 한국인이 있는 줄 몰랐어요! :eek:
     
  19. xLeakDev Enzo

    xLeakDev Enzo Spider Jockey

    Messages:
    38
    GitHub:
    nya-enzo
    in your onEnable line, it should look like this
    PHP:
    public function onEnable(): void
    {
          
    //Code
    }
     

Share This Page

  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.