Page 1 of 1

Can't express start

Posted: 04 June 2024, 18:09
by oscarlevin
Today I went into studio to try to hack away on my game and ran into trouble express-starting my game. I first thought I must have pushed bad code, but it seems to also produce an error when I tried to express start other games.

Here is the error I'm getting:

Unexpected error: Wrong formatted data from gameserver 2 (method: createGame): JSON_ERROR_SYNTAX
Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /var/tournoi/release/games/heartsoscarlevin/999999-9999/heartsoscarlevin.game.php:74 Stack trace: #0 /var/tournoi/release/games/heartsoscarlevin/999999-9999/heartsoscarlevin.game.php(74): implode() #1 /var/tournoi/release/tournoi-240603-1000-gs/www/game/module/table/table.game.php(357): heartsoscarlevin->setupNewGame() #2 /var/tournoi/release/tournoi-240603-1000-gs/www/game/module/gameserver/gameserver.game.php(167): Table->setupNewGameTable() #3 /var/tournoi/release/tournoi-240603-1000-gs/www/action/gameserver/gameserver.action.php(60): Gameserver->createGame() #4 /var/tournoi/release/tournoi-240603-1000-gs/www/action/gameserver/gameserver.action.php(68): action_gameserver->callClusterJob() #5 /var/tournoi/release/tournoi-240603-1000-gs/www/include/webActionCore.inc.php(185): action_gameserver->createGame() #6 /var/tournoi/release/tournoi-240603-1000-gs/www/index.php(310): launchWebAction() #7 {main} thrown in /var/tournoi/release/games/heartsoscarlevin/999999-9999/heartsoscarlevin.game.php on line 74
(reference: GS0 04/06 19:09:03)

Anyone have any ideas?

Re: Can't express start

Posted: 04 June 2024, 21:25
by hymnal
The 'implode' error will be because they've changed the PHP version. As the error says, the first argument to implode() needs to be a separator string and the second argument has to be the array, whereas I believe it was the other way around in the old version, so I think you might have to swap them.

Re: Can't express start

Posted: 04 June 2024, 21:47
by thoun
Inded, it's a consequence of the dev server being forced to PHP8.

doc to upgrade : https://en.doc.boardgamearena.com/PHP_8 ... ame's_code