Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

file_put_contents crash

Comments in 'Plugin Development' started by Creeperface, Aug 5, 2015.

Thread Status:
Not open for further replies.
  1. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    hi what is this error?
    PHP:
    PocketMine-MP Crash Dump Wed Aug 5 19:55:19 UTC 2015

    Error
    file_put_contents(/hlserver/27579/worlds/STW5/level.dat): failed to open streamNo such file or directory
    File
    : /src/pocketmine/level/format/generic/BaseLevelProvider
    Line
    125
    Type
    warning

    Code
    :
    [
    116]         return $this->levelData;
    [
    117]     }
    [
    118
    [
    119]     public function saveLevelData(){
    [
    120]         $nbt = new NBT(NBT::BIG_ENDIAN);
    [
    121]         $nbt->setData(new Compound("", [
    [
    122]             "Data" => $this->levelData
    [123]         ]));
    [
    124]         $buffer $nbt->writeCompressed();
    [
    125]         \file_put_contents($this->getPath() . "level.dat"$buffer);
    [
    126]     }
    [
    127
    [
    128
    [
    129] }
    [
    130
    [
    131
    [
    132
    [
    133
    [
    134
    [
    135

    Backtrace:
    #0 /src/pocketmine/level/format/generic/BaseLevelProvider(125): file_put_contents(string /hlserver/27579/worlds/STW5/level.dat, string ‹      uTĎoăD~ŽíÔvPŘ]q€+7„įòB4M6mQÚ”8q`bOš!cŹ5§$-HpŞPń€¸ !Vh—sWZ‰˙€3BpÁa»oĆqš•`äƒgć{oŢűŢ÷^ €Ó"Š8ôH‹$¤4>Ăuó«gë¬Ň”J˘„Ü#    gȉ
     
    ľĎÉ”JęaFŽŇÜ\5BNiÖg    • ,›Ë¶ŤÁ‡ ˇ”dƒBŃ<@¸Sg“ätă90ËÇ<ń°y‘EO%äú6%\Ť`†xůX…§"H4îќ劤l^úářřdÁćŇÜ»˜Đ„¦*Ě0ß9úŹ_¸Xˇ‰RčľErH1ł•ťtRpMĚ€Spa˝1Č…Ěi#EŞ´Öö…T„7…ŕ±8Jőa >0ÎŁČZŔRwP0[Ô2ň)ţ°˙–ţác鋧§w,đąYYˇ    Kĺá_    ęśŢÁ¨VÚ„óVEˆ©ß˘DŤt… ®ć·Ý8ѱ.d}ÁÎ"ĎL·„ţ4ÓĆ{Wčëń?ËžIâu͢ţµk;%ąúěńŰöËźßA}VŐ‹ö
    ÄŢsáÂPˆ8
    @ąá3:ˇ|ăäÜĺÁŮŮ˝ď1÷nş%‘ă/üf’ćˆ.ÓłLZOšdŚą>őÁëabÚĄ«A??ńţ¸AŽż´Á
    #!
    1čŐHy<ô®ČUńńŢĄ:˙ř
    `ď‹Üä}«x÷Ł»Ż|ńÓĆ^óßăßoŻmĽőéŹ|űá›5pÚLŇłßPçWӘĘE“˛/\°˛ýňĎäxőúˆů<Ç’6_ßT{¤f=¤śFŠĆÚQČ…–TŢv!UYżšé(”eąőÁGU˘˘…śęţŞYŕ»ÔXl=jŰÔŇ´°3!ëÄ
    Ć2xá
    ?16¬ęŘú¬|IÂLÇZ˝‚Ó܃ĺXô§-)˛%ęA͈6«Ž–1Ř’Ś
    ĎĺŮ
    #‘H<›{¸[¨¬PŐŐj,vĹŔÔ^¸(çŹ/¤F#ĽGgłI—fâ“ŽçNĆX×91ŕK'ŢE¦śŽTsa8溬F…®ź!ŐzďƢ <IXZţö_(›‘±QѢ˜żY”ě×,i#ťvüĚ˝ŢŮŕ”ž~ů/ôšžť»$kSť(͸>ĂŻRYéu>©v/ßÄŢÁ>3“9FŰ7>ůőOoÁ˛kćSkĎ\yż+Ć9V؁%d˘D˦ű7Ňh„XNü°˙Úó& á쪇Î*NqÔ,K—[řvˆ7ݧÍř|Ü‚Dlł^  )
    #1 /src/pocketmine/level/Level__64bit(992): pocketmine\level\format\generic\BaseLevelProvider->saveLevelData()
    #2 /src/pocketmine/Server__64bit(2382): pocketmine\level\Level->save(boolean )
    #3 /src/pocketmine/Server__64bit(2526): pocketmine\Server->doAutoSave()
    #4 /src/pocketmine/Server__64bit(2300): pocketmine\Server->tick()
    #5 /src/pocketmine/Server__64bit(2178): pocketmine\Server->tickProcessor()
    #6 /src/pocketmine/Server__64bit(1778): pocketmine\Server->start()
    #7 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///hlserver/27579/PocketMine-MP.phar/, string /hlserver/27579/, string /hlserver/27579/plugins/)
    #8 (1): require(string phar:///hlserver/27579/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

    PocketMine-MP version1.5dev #1258 [Protocol 27; API 1.12.0]
    Git commit0000000000000000000000000000000000000000
    uname 
    -aLinux sith 3.19.0 #2 SMP Sat Jul 18 18:32:05 CEST 2015 x86_64
    PHP Version5.6.4
    Zend version
    2.6.0
    OS 
    Linuxlinux

    Loaded plugins
    :
    MTCore 1 by CreeperFace for API(s1.12.0
    BedWars 1 by CreeperFace 
    for API(s1.12.0

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

    ===
    BEGIN CRASH DUMP===
    eNoDAAAAAAE=
    ===
    END CRASH DUMP===

  2. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
    Read the error and use Google!
    Error: file_put_contents(/hlserver/27579/worlds/STW5/level.dat): failed to open stream: No such file or directory
Thread Status:
Not open for further replies.

Share This Page

Advertisement