2Moons
2Moons copied to clipboard
imposible playing while attack incoming
When somebody atack, you can only sit down and wait, because game render this error
Message: sprintf(): Too few arguments
File: /includes/classes/class.FlyingFleetsTable.php
Line: 220
URL: http://xnova.hcg.sld.cu/game.php
PHP-Version: 7.0.19-1
PHP-API: fpm-fcgi
2Moons Version: 1.8.git
Debug Backtrace:
#0 [internal function]: errorHandler(2, 'sprintf(): Too ...', '/i...', 220, Array)
#1 /includes/classes/class.FlyingFleetsTable.php(220): sprintf('Una %s hostil d...', '<a href="#" dat...', 'lazaro <a href=...', 'Planeta', 'Laconia', '<a href="game.p...', 'Planeta', 'Seres Hive', '<a href="game.p...', 'Atacar')
#2 /includes/classes/class.FlyingFleetsTable.php(141): FlyingFleetsTable->getEventData(Array, 0)
#3 /includes/classes/class.FlyingFleetsTable.php(94): FlyingFleetsTable->BuildFleetEventTable(Array, 0)
#4 /includes/pages/game/ShowOverviewPage.class.php(74): FlyingFleetsTable->renderTable()
#5 /includes/pages/game/ShowOverviewPage.class.php(280): ShowOverviewPage->GetFleets()
#6 /game.php(57): ShowOverviewPage->show()
#7 {main}
Do you modify any language file?
nop! modifing not, but using spanish, I solved changing line 220 by a string concatenating instead os sprintf, therefore, message are almost impossible to understand
does it happend with other langauges, too?
hum.. https://github.com/jkroepke/2Moons/blob/5768ea3a12ad67e40b7b241721916497e3db372b/language/es/INGAME.php#L964 should be have 9 %s. can you verify it?
In the German and English version one does not have this error.