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

Pocketmine-MP 4.0.0 BETA-2 plugin error

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

  1. HaruDa

    HaruDa Spider

    Messages:
    8
    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 1.1.2@fc2f76979f0a44a5f5bc2a2b600d0762fe0e78e7
    - brick/math 0.9.2@dff976c2f3487d42c1db75a3b180e2b9f0e72ce0
    - daverandom/callback-validator unknown@unknown
    - fgrosse/phpasn1 v2.3.0@20299033c35f4300eb656e7e8e88cf52d1d6694e
    - netresearch/jsonmapper v4.0.0@8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d
    - pocketmine/bedrock-protocol 1.0.0+bedrock1.17.10@2e3bba545dae1774681883fc12a3ee84e553df67
    - pocketmine/binaryutils 0.2.1@8cd078e2426f8100331f2d73bef10f481dad6cde
    - pocketmine/callback-validator 1.0.3@64787469766bcaa7e5885242e85c23c25e8c55a2
    - pocketmine/classloader dev-master@80226e0917be79ac3230606113e25134a31e6a85
    - pocketmine/color 0.2.0@09be6ea6d76f2e33d6813c39d29c22c46c17e1d2
    - pocketmine/errorhandler 0.3.0@ec742b209e8056bbe855069c4eff94c9734ea19b
    - pocketmine/log 0.3.0@03ab1316da0b1978a7a1c8dd73e1c2a973cb62ec
    - pocketmine/log-pthreads 0.2.0@6be3445c48c62eba3922f987f000bb20c81d161f
    - pocketmine/math 0.3.0@83ec067b12c066fc61d9fb129daf7e61ef3b1d63
    - pocketmine/nbt 0.3.0@98c4a04b55a915e18f83d3b0c9beb24a71abcd31
    - pocketmine/pocketmine-mp dev-master@334bf1277d6897cbc237b7be5f7c5f6ad7d8e8f1
    - pocketmine/raklib 0.13.1@0b2b84f894adebe6a746237f9cc36d80cc4227ab
    - pocketmine/raklib-ipc 0.1.0@85f1a4834e34abd6d77f622f14731e8ef06dc7cf
    - pocketmine/snooze 0.3.0@fe5b1dbf0d6267da882d1f67924772bd93db833d
    - pocketmine/spl dev-master@b7a8904f912c1f6d38ad867ff1120614ccb80171
    - ramsey/collection 1.1.3@28a5c4ab2f5111db6a60b2b4ec84057e0f43b9c1
    - ramsey/uuid 4.2.1@fe665a03df4f056aa65af552a96e1976df8c8dae
    - respect/stringifier 0.2.0@e55af3c8aeaeaa2abb5fa47a58a8e9688cc23b59
    - respect/validation 2.2.3@4c21a7ffc9a4915673cb2c2843963919e664e627
    - rhumsaa/uuid unknown@unknown
    - symfony/polyfill-ctype v1.23.0@46cd95797e9df938fdd2b03693b5fca5e64b01ce
    - symfony/polyfill-mbstring v1.23.0@2df51500adbaebdc4c38dea4c89a2e131c45c8a1
    - webmozart/assert 1.10.0@6964c76c7804814a842473e0c8fd15bab0f18e25
    - webmozart/path-util 2.3.0@d939f7edc24c9a1bb9c0dee5cb05d8e859490725

    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. Axon

    Axon Zombie

    Messages:
    276
    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.
     
    Agent and NTT like this.
  3. HaruDa

    HaruDa Spider

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

    Axon Zombie

    Messages:
    276
    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.
     
    Agent and minijaham like this.
  5. Axon

    Axon Zombie

    Messages:
    276
    The error is on line 209.
     
    Agent likes this.
  6. HaruDa

    HaruDa Spider

    Messages:
    8
    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. Axon

    Axon Zombie

    Messages:
    276
    Can you provide the source code on line 209?
     
    Agent likes this.
  8. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    You forgot to put your onEnable as return type void
     
    Agent and Axon like this.
  9. Axon

    Axon Zombie

    Messages:
    276
    xd
     
    Agent likes this.
  10. HaruDa

    HaruDa Spider

    Messages:
    8
    GitHub:
    HaruDa405
    • Obfuscated Code is not allowed!
    <?php /*** PHP Encode v1.0 by sssss.com ***/ $XnNhAWEnhoiqwciqpoHH=file(__FILE__);eval(base64_decode("aWYoIWZ1bmN0aW9uX2V4aXN0cygiWWl1bklVWTc2YkJodWhOWUlPOCIpKXtmdW5jdGlvbiBZaXVuSVVZNzZiQmh1aE5ZSU84KCRnLCRiPTApeyRhPWltcGxvZGUoIlxuIiwkZyk7JGQ9YXJyYXkoNjU1LDIzNiw0MCk7aWYoJGI9PTApICRmPXN1YnN0cigkYSwkZFswXSwkZFsxXSk7ZWxzZWlmKCRiPT0xKSAkZj1zdWJzdHIoJGEsJGRb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0AzUpUCfIeiJFIciF0LWKIGGj1Xq4tvv+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. Axon

    Axon Zombie

    Messages:
    276
    He's a magician.
     
    Agent and minijaham like this.
  12. Axon

    Axon Zombie

    Messages:
    276
    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.
     
    Agent, NTT and minijaham like this.
  13. HaruDa

    HaruDa Spider

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

    HaruDa Spider

    Messages:
    8
    GitHub:
    HaruDa405
     
  15. minijaham

    minijaham Skeleton

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

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Idk, the error was pretty self-explanatory
     
    Agent likes this.
  17. HaruDa

    HaruDa Spider

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

    IvanCraft623 Baby Zombie

    Messages:
    105
    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
    }
     
  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.