Message: Undefined array key

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

    • Message: Undefined array key

      Also ich hab diue Engine mal aufn localhost unter Apache aufgespielt, weil ich probieren wollte der Engine Elemente hinzuzufügen, mir die anzusehen und vielleicht einen Pserver auf der Basis zu eröffnen. Allerdings gibt es da ein kleines Problem.

      Die Installation läuft bis auf die gdlib Meldung unter PHP 8.0.10 ganz gut ab, bis ich ins Admin Panel komme. Da merkt man schon dass dann einige Module nicht funktionieren.

      Message: Undefined array key "mode"
      File: /includes/pages/adm/ShowModulePage.php
      Line: 27
      URL: localhost/2Moons-master/admin.php?page=module
      PHP-Version: 8.0.10
      PHP-API: apache2handler
      2Moons Version: 1.8.git
      Debug Backtrace:
      #0 /includes/pages/adm/ShowModulePage.php(27): errorHandler(2, 'Undefined array...', 'E://xampp//htdocs...', 27)
      #1 /admin.php(83): ShowModulePage()
      #2 {main}


      Und auch beim Einloggen ins Spiel kommt ein PHP Fehler:

      Message: Undefined constant "FILTER_FLAG_SCHEME_REQUIRED"
      File: /includes/pages/game/AbstractGamePage.class.php
      Line: 153
      URL: localhost/2Moons-master/game.php
      PHP-Version: 8.0.10
      PHP-API: apache2handler
      2Moons Version: 1.8.git
      Debug Backtrace:
      #0 /includes/pages/game/AbstractGamePage.class.php(164): AbstractGamePage->getNavigationData()
      #1 /includes/pages/game/AbstractGamePage.class.php(234): AbstractGamePage->getPageData()
      #2 /includes/pages/game/ShowOverviewPage.class.php(298): AbstractGamePage->display('page.overview.d...')
      #3 /game.php(57): ShowOverviewPage->show()
      #4 {main}


      Hab schon PHP Downgrades versucht bis runter zu 5, wo dann Apache auch nicht mehr läuft

      Jemand ne Idee für nen Fix?
    • Sie verwenden eine PHP-Version, die von 2moons nicht unterstützt wird. Wenn Sie diese Version behalten möchten, müssen Sie einige Teile des Hauptcodes ändern/korrigieren
      Try the new Deployment module: More info
      V1.1.9 has been rolled out <3
    • Derzeit liegt das noch außerhalb meines Kenntnisbereiches. ich muss erst noch lernen mit PHP umzugehen also muss ich wohl erstmal auf eine kompatible PHP Version zurückgreifen.
    • Shivero wrote:

      Message: Undefined array key "mode"
      File: /includes/pages/adm/ShowModulePage.php
      Line: 27
      URL: localhost/2Moons-master/admin.php?page=module
      PHP-Version: 8.0.10
      PHP-API: apache2handler
      2Moons Version: 1.8.git
      Debug Backtrace:
      #0 /includes/pages/adm/ShowModulePage.php(27): errorHandler(2, 'Undefined array...', 'E://xampp//htdocs...', 27)
      #1 /admin.php(83): ShowModulePage()
      #2 {main}
      Esto te sucede por tu versión de php localiza

      PHP Source Code

      1. if($_GET['mode']) {

      Y cámbialo por esto

      PHP Source Code

      1. if(isset($_GET['mode'])) {
    • remove that code - it is depreciated:

      original

      PHP Source Code: includes/pages/game/AbstractGamePage.class.php

      1. 'hasBoard' => filter_var($config->forum_url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)

      to this:

      Source Code: includes/pages/game/AbstractGamePage.class.php

      1. 'hasBoard' => filter_var($config->forum_url, FILTER_VALIDATE_URL)
    • Gamb!t wrote:

      remove that code - it is depreciated:

      original

      PHP Source Code: includes/pages/game/AbstractGamePage.class.php

      1. 'hasBoard' => filter_var($config->forum_url, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)




      to this:

      Source Code: includes/pages/game/AbstractGamePage.class.php

      1. 'hasBoard' => filter_var($config->forum_url, FILTER_VALIDATE_URL)
      Ademas debe ir a

      PHP Source Code: ShowBoardPage.class.php

      1. if(filter_var($boardUrl, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED))


      remplazar por

      PHP Source Code: ShowBoardPage.class.php

      1. if(filter_var($boardUrl, FILTER_VALIDATE_URL))
      VERY SAD :/ :/ :/ :/