can not get in research

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • can not get in research

    can not get in
    research

    Source Code

    1. WARNING
    2. Message: Invalid argument supplied for foreach()
    3. File: /includes/pages/game/ShowResearchPage.class.php
    4. Line: 296
    5. URL: http://starwar.5v.pl/2/uni1/game.php?page=research
    6. PHP-Version: 5.6.30-0+deb8u1
    7. PHP-API: fpm-fcgi
    8. 2Moons Version: 1.9.git
    9. Debug Backtrace:
    10. #0 /includes/pages/game/ShowResearchPage.class.php(296): errorHandler(2, 'Invalid argumen...', 'FILEPATH ...', 296, Array)
    11. #1 /includes/pages/game/ShowResearchPage.class.php(360): ShowResearchPage->getQueueData()
    12. #2 /game.php(57): ShowResearchPage->show()
    13. #3 {main}
    Display All
  • yamilrh wrote:

    hello I decided to install the 2moons 1.8.git and resolved to be in the investigations, I gave without realizing to one and when I gave cancel I gave this error


    File: /includes/pages/game/ShowResearchPage.class.php


    PHP-Quellcode
    1. $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId]);
    not sure why, but yours didn't worked in my version.


    THX to mimikri he solved this! ;) :)
  • @bata
    I replace the variable that is for this that you put me

    Source Code

    1. $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId] + 1);

    by

    Source Code

    1. $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId]);
    VERY SAD :/ :/ :/ :/
  • I fixed that but it still gives me the same error
    Message: Undefined offset: 106
    File: /includes/pages/game/ShowResearchPage.class.php
    Line: 61
    URL: localhost/2moons/game.php?page=research
    PHP-Version: 7.1.4
    PHP-API: apache2handler
    2Moons Version: 1.8.git
    Debug Backtrace:
    #0 /includes/pages/game/ShowResearchPage.class.php(61): errorHandler(8, 'Undefined offse...', 'C://xampp//htdocs...', 61, Array)
    #1 /includes/pages/game/ShowResearchPage.class.php(342): ShowResearchPage->CancelBuildingFromQueue()
    #2 /game.php(57): ShowResearchPage->show()
    #3 {main}
    VERY SAD :/ :/ :/ :/
  • same with me, pls write in your motherlanguage, so i can translate it directly into mine, so the informationloss is smalest.

    bitte schreibe in deiner muttersprache.
    dann kann ich den text direkt in meine muttersprache übersetzten.
    so ist der informationsverlust am kleinsten.

    ist die variable $LNG['tech'][106] in der language/tech.php definiert?
    ist die ID in der tabelle uni1_vars vorhanden?
    ist der name der id in uni1_vars in uni1_users vorhanden?

    106 ist die nummer für spionagetechnik
  • $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $USER[$resource[$elementId]]);
    the tech level is saved in the $USER variable under its name and not it's id.

    alternertivly you can use
    $costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId);

    cause the function getElementPrice() is getting the current level and the false (for get back price/2) by itself.