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

Solved Unknown End of file error

Comments in 'Plugin Development' started by Legoboy0215, May 31, 2016.

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I seriously don't know WTF is happening here:

    Code:
    ParseError: "syntax error, unexpected end of file, expecting '`'" (EXCEPTION) in "/Plugin/src/PluginName/BaseBox" at line 143
    My end-of-file ends like this: }. Normal, but suddenly PHP goes nuts.
    Oneeb likes this.
  2. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Here is the debug backtrace:
    Code:
    #0 /LegoCore/src/LegoCore/Core/Lobby/Box/CommonBox(25): spl_autoload_call(string LegoCore\Core\Lobby\Box\BaseBox)
    2016-05-31 [08:19:29] [Server thread/DEBUG]: #1 /src/spl/BaseClassLoader(128): include(string /root/pm/plugins/LegoCore/src/LegoCore/Core/Lobby/Box/CommonBox.php)
    2016-05-31 [08:19:29] [Server thread/DEBUG]: #2 (): BaseClassLoader->loadClass(string LegoCore\Core\Lobby\Box\CommonBox)
    2016-05-31 [08:19:29] [Server thread/DEBUG]: #3 /LegoCore/src/LegoCore/Core/Lobby/BrickManager(66): spl_autoload_call(string LegoCore\Core\Lobby\Box\CommonBox)
    2016-05-31 [08:19:29] [Server thread/DEBUG]: #4 /LegoCore/src/LegoCore/Core/Lobby/BrickManager(55): LegoCore\Core\Lobby\BrickManager->loadBoxes(boolean)
    Oneeb likes this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I don't make those mistake :p
    Oneeb likes this.
  4. CraftYourBukkit
    Offline

    CraftYourBukkit Notable Member Plugin Developer

    Joined:
    Jan 20, 2015
    Posts:
    1,022
    Plugins:
    2
    Minecraft User:
    CraftYourBukkit
    How should we know? We can't see your code. (-> Show us)
    applqpak, Primus and Oneeb like this.
  5. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Invalid encoding, pasted code, invisible char? Try rewriting that line and/or line above.
    applqpak likes this.
  6. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    Show the code, or atleast the end of it.
    applqpak and Legoboy0215 like this.
  7. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Here: }.
  8. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    Guys he probably doesn't want to show a lot of his code because it's what his server runs off of. If he makes his code public then anyone could copy his server.
  9. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    No one asked him to share his code. We just need to see the part where the problem is and try to help him fix it.
    Plus, if he is trying to get help without showing the code, he might as well had not asked for help at all.
    Primus likes this.
  10. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Lol sorry I thought I posted the code. I'll post it when I get on my laptop
  11. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Solved. There was a secret ` mark in my code. *facepalm*

    BTW, the ` was ACTUALLY hidden. I had to restart my laptop to find it.
  12. BlubberBoy333
    Offline

    BlubberBoy333 Active Member

    Joined:
    Aug 31, 2014
    Posts:
    177
    Minecraft User:
    Blubberboy333
    Oh nice lol
  13. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Legoboy0215 likes this.
  14. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Yes, that's how I fixed it :p
    Primus likes this.

Share This Page

Advertisement