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

Error with forach() function

Discussion in 'Development' started by DanielYTK, Apr 23, 2017.

  1. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    The error I'm getting is this:
    Code:
    [02:02:26] [Server thread/ERROR]: Could not load 'C:\Users\DanielYTK\Documents\PocketMine-MP\plugins\HydraCoreYTKv2' in folder 'C:\Users\DanielYTK\Documents\PocketMine-MP\plugins\': Invalid argument supplied for foreach()
    [02:02:26] [Server thread/CRITICAL]: ErrorException: "Invalid argument supplied for foreach()" (EXCEPTION) in "/src/pocketmine/plugin/PluginDescription" at line 107
    
    Before I updated api to 1.1, I did not have this error, and the code was not modified!
     
  2. Irish

    Irish Baby Zombie

    Messages:
    156
    GitHub:
    irishpacks
    Show your plugin.yml if you would.
     
    corytortoise likes this.
  3. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    I managed to solve it, thanks https://forums.pmmp.io/members/irish.133/ for telling me that the error was in plugin.yml

    If anyone needs ... before it was: authors: DanielYTK
    I just modified it to: authors: [DanielYTK]
     
  4. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    I think its due to the (s)
    Code:
    
    authors: [] // many
    author: InspectorGadget
    
    
     
    jasonwynn10 likes this.
  5. DanielYTK

    DanielYTK Zombie

    Messages:
    227
    Exatamente
     
  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.