Actualizacion hasta PHP 8.3

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

    • Actualizacion hasta PHP 8.3

      Hola colegas!!

      Se actualizaron 29 archivos para el correcto funcionamiento de 2moons 2.0 desde la version 8.0 hasta 8.3(la ultima comprobada). En la pagina del repositorio esta el historial de cambios, aqui se los dejo de todas formas.

      Saludos. :thumbup:
      Gestor de proyectos para xampp
      Cardinal System for XAMPP
    • Hallo.
      Ich habe die version Getestet.Install leuft ohne Probleme durch.
      Aber nach anlegen des Admin und logout.Kommt dann ein Fehler
      Message: Array to string conversion
      File: /cache/de^df0d3fd4136d13beb011b5573a4e97d87b79a1c8_5.extends.page.overview.default.tpl.cache.php
      Line: 659
      URL: mkmatz.eno-intern.de/a/2Moons-2.0-php8-main/game.php
      PHP-Version: 8.0.30
      PHP-API: fpm-fcgi
      2Moons Version: 2.0.git
      Debug Backtrace:
      #0 /cache/de^df0d3fd4136d13beb011b5573a4e97d87b79a1c8_5.extends.page.overview.default.tpl.cache.php(659): errorHandler(2, 'Array to string...', 'FILEPATH ...', 659)
      #1 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654920a9b16878_33454425(Object(Smarty_Internal_Template))
      #2 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(377): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template), 'content_654920a...')
      #3 /cache/de^df0d3fd4136d13beb011b5573a4e97d87b79a1c8_5.extends.page.overview.default.tpl.cache.php(1100): Smarty_Internal_Template->_subTemplateRender('file:main.heade...', NULL, 'de', 9999, 604800, Array, 0, false, '303d3914c5e87d8...', 'content_654920a...')
      #4 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654920a9b15c37_19338221(Object(Smarty_Internal_Template))
      #5 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(377): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template), 'content_654920a...')
      #6 /cache/de^df0d3fd4136d13beb011b5573a4e97d87b79a1c8_5.extends.page.overview.default.tpl.cache.php(72): Smarty_Internal_Template->_subTemplateRender('file:layout.ful...', NULL, 'de', 9999, 604800, Array, 2, false, '4456be4e2c0d41b...', 'content_654920a...')
      #7 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654920a9b53d80_34365749(Object(Smarty_Internal_Template))
      #8 /includes/libs/Smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
      #9 /includes/libs/Smarty/sysplugins/smarty_internal_runtime_updatecache.php(38): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
      #10 /includes/libs/Smarty/sysplugins/smarty_template_cached.php(143): Smarty_Internal_Runtime_UpdateCache->updateCache(Object(Smarty_Template_Cached), Object(Smarty_Internal_Template), false)
      #11 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
      #12 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
      #13 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
      #14 /includes/classes/class.template.php(137): Smarty_Internal_TemplateBase->display('extends:layout....')
      #15 /includes/pages/game/AbstractGamePage.class.php(261): template->display('extends:layout....')
      #16 /includes/pages/game/ShowOverviewPage.class.php(307): AbstractGamePage->display('page.overview.d...')
      #17 /game.php(57): ShowOverviewPage->show()
      #18 {main
    • Gruss. Habe es noch mal mit denn Neusten Daten Probiert.

      Message: Undefined array key "page"
      File: /cache/de^859fc9e3cdc4d0ebc26c16ac5fdea5d79e77a40c_5.extends.page.index.default.tpl.cache.php
      Line: 336
      URL: mkmatz.eno-intern.de/a/
      PHP-Version: 8.1.22
      PHP-API: fpm-fcgi
      2Moons Version: 2.0.git
      Debug Backtrace:
      #0 /cache/de^859fc9e3cdc4d0ebc26c16ac5fdea5d79e77a40c_5.extends.page.index.default.tpl.cache.php(336): errorHandler(2, 'Undefined array...', 'FILEPATH ...', 336)
      #1 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654940ef38efb7_09791882(Object(Smarty_Internal_Template))
      #2 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(377): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template), 'content_654940e...')
      #3 /cache/de^859fc9e3cdc4d0ebc26c16ac5fdea5d79e77a40c_5.extends.page.index.default.tpl.cache.php(507): Smarty_Internal_Template->_subTemplateRender('file:main.heade...', NULL, 'de', 9999, 604800, Array, 0, false, '8ea3bc2309bf4d8...', 'content_654940e...')
      #4 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654940ef38e931_14135736(Object(Smarty_Internal_Template))
      #5 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(377): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template), 'content_654940e...')
      #6 /cache/de^859fc9e3cdc4d0ebc26c16ac5fdea5d79e77a40c_5.extends.page.index.default.tpl.cache.php(64): Smarty_Internal_Template->_subTemplateRender('file:layout.lig...', NULL, 'de', 9999, 604800, Array, 2, false, 'a31b5a8d51b0367...', 'content_654940e...')
      #7 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654940ef398083_47439133(Object(Smarty_Internal_Template))
      #8 /includes/libs/Smarty/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
      #9 /includes/libs/Smarty/sysplugins/smarty_internal_runtime_updatecache.php(38): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
      #10 /includes/libs/Smarty/sysplugins/smarty_template_cached.php(143): Smarty_Internal_Runtime_UpdateCache->updateCache(Object(Smarty_Template_Cached), Object(Smarty_Internal_Template), false)
      #11 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
      #12 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
      #13 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
      #14 /includes/classes/class.template.php(137): Smarty_Internal_TemplateBase->display('extends:layout....')
      #15 /includes/pages/login/AbstractLoginPage.class.php(169): template->display('extends:layout....')
      #16 /includes/pages/login/ShowIndexPage.class.php(79): AbstractLoginPage->display('page.index.defa...')
      #17 /index.php(57): ShowIndexPage->show()
      #18 {main}
    • Esto es que pagina ocurrio? Index.php?

      Edit: Corregido. Un error en las directivas de Smarty en la plantilla login/main.header.tpl. Agregado al repositorio y corregida (en parte) la vista de instalacion
      Gestor de proyectos para xampp
      Cardinal System for XAMPP

      The post was edited 1 time, last by Jekill ().

    • Gruss.Gibt es eine lösung für das News Problem.
      Message: Undefined array key "news_id"
      File: /cache/templates/de^0ec071ffc023ad7b42b03d2b69f22f56ac6d74a6.NewsPage.tpl.php
      Line: 145
      URL: mkmatz.eno-intern.de/a/2Moons-…p?page=news&action=create
      PHP-Version: 8.2.9
      PHP-API: fpm-fcgi
      2Moons Version: 2.0.git
      Debug Backtrace:
      #0 /cache/templates/de^0ec071ffc023ad7b42b03d2b69f22f56ac6d74a6.NewsPage.tpl.php(145): errorHandler(2, 'Undefined array...', 'FILEPATH ...', 145)
      #1 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654bd869072f13_91738671(Object(Smarty_Internal_Template))
      #2 /includes/libs/Smarty/sysplugins/smarty_template_cached.php(137): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
      #3 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
      #4 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
      #5 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
      #6 /includes/classes/class.template.php(130): Smarty_Internal_TemplateBase->display('NewsPage.tpl')
      #7 /includes/pages/adm/ShowNewsPage.php(84): template->show('NewsPage.tpl')
      #8 /admin.php(155): ShowNewsPage()
      #9 {main}

      Ich habe einiges versucht wird leider nur schlimmer ?(
    • fossil wrote:

      Gruss.Gibt es eine lösung für das News Problem.
      Message: Undefined array key "news_id"
      File: /cache/templates/de^0ec071ffc023ad7b42b03d2b69f22f56ac6d74a6.NewsPage.tpl.php
      Line: 145
      URL: mkmatz.eno-intern.de/a/2Moons-…p?page=news&action=create
      PHP-Version: 8.2.9
      PHP-API: fpm-fcgi
      2Moons Version: 2.0.git
      Debug Backtrace:
      #0 /cache/templates/de^0ec071ffc023ad7b42b03d2b69f22f56ac6d74a6.NewsPage.tpl.php(145): errorHandler(2, 'Undefined array...', 'FILEPATH ...', 145)
      #1 /includes/libs/Smarty/sysplugins/smarty_template_resource_base.php(123): content_654bd869072f13_91738671(Object(Smarty_Internal_Template))
      #2 /includes/libs/Smarty/sysplugins/smarty_template_cached.php(137): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
      #3 /includes/libs/Smarty/sysplugins/smarty_internal_template.php(212): Smarty_Template_Cached->render(Object(Smarty_Internal_Template), false)
      #4 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render(false, 1)
      #5 /includes/libs/Smarty/sysplugins/smarty_internal_templatebase.php(134): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), NULL, NULL, NULL, 1)
      #6 /includes/classes/class.template.php(130): Smarty_Internal_TemplateBase->display('NewsPage.tpl')
      #7 /includes/pages/adm/ShowNewsPage.php(84): template->show('NewsPage.tpl')
      #8 /admin.php(155): ShowNewsPage()
      #9 {main}

      Ich habe einiges versucht wird leider nur schlimmer ?(
      Este error sucede porque la tpl utilizada para crear una nueva noticia es la misma que para editarla y hay variables inexistentes. Ha sido corregido este tpl y php. En concreto fueron actualizados 3 archivos php y 2 tpl.

      ShowNewsPage.php
      ShowCronjobPage.php
      ShowLogPage.php
      CronjobDetail.tpl
      NewsPage.tpl

      Todos han sido subidos a GitHub.

      Saludos!
      Gestor de proyectos para xampp
      Cardinal System for XAMPP
    • Hello, I'm currently testing your version.If I go to colonize to send a ship it doesn't go any further.I hope I haven't overlooked something.Thanks

      Display Spoiler

      [23-Feb-2024 17:44:42]: "Trying to access array offset on value of type bool"
      File: /www/htdocs/w01.de/a/2Moons-2.0-php8-main/includes/pages/game/ShowFleetStep1Page.class.php | Line: 270
      URL: mkmatz.eno-intern.de/a/2Moons-…net_type=1&lang=de&kolo=1 | Version: 2.0.git
      Stack trace:
      #0 /includes/pages/game/ShowFleetStep1Page.class.php(270): errorHandler(2, 'Trying to acces...', '/www/htdocs/w01...', 270)
      #1 /game.php(57): ShowFleetStep1Page->checkTarget()
      #2 {main}

      The post was edited 1 time, last by fossil ().

    • @Jekill ando probando tu versión, hasta ahora todo me funciona bien, pero no me deja colonizar, tampoco me da ningún error. pero cuando marco un colonizador, y paso a la otra pagina para darle las coordenadas, que le doy enviar, simplemente no hace nada.
      Tengo ya las tecnologías de expedición y todo.

      uso php 8.3