Page 1 of 1

Zombie turn with new states classes php syntax error

Posted: 23 October 2025, 22:05
by AndrewB
Anyone else experiencing this. I have migrated my project to the new states classes. But am seeing a server side syntax error when a player is kicked when they run out of time in realtime mode. My state zombie function doesn't do anything special, and I have the same error when kicking players from different states. Is it just my project?


ly_studio.js:1 Server syntax error: isrulunarpole/isrulunarpole/skipPlayersOutOfTime.html SyntaxError: Unexpected token '<' / <br />
<b>Fatal error</b>: Uncaught TypeError: substr(): Argument #1 ($string) must be of type string, false given in /var/tournoi/release/tournoi-251022-0915-gs/www/Bga/GameFramework/Old/APP_DbObject.php:601
Stack trace:
#0 /var/tournoi/release/tournoi-251022-0915-gs/www/Bga/GameFramework/Old/APP_DbObject.php(601): substr(false, 0, 128)

Re: Zombie turn with new states classes php syntax error

Posted: 24 October 2025, 08:28
by thoun
I played a game of isrulunarpole on Studio (3 players), made 1 of them quit the game, and I hadn't see any issue. Did you manage to fix it?

Re: Zombie turn with new states classes php syntax error

Posted: 24 October 2025, 12:23
by AndrewB
Hi thoun,

Thanks for the help. You mention that you had a player quit the game, which is different from expelling the player when they have timed out. But anyway when I test quitting the game the local player (only) receives this error.

Code: Select all

GET https://studio.boardgamearena.com/table/table/quitgame.html?table=787909&s=table_quitdlg&noerrortracking=true&testuser=2296657&dojo.preventCache=1761304408253" 500 (Internal Server Error)
So another issue to track down. :?

Re: Zombie turn with new states classes php syntax error

Posted: 24 October 2025, 14:51
by thoun
This bug will be fixed in the next BGA release.

In the meantime, play in Friendly mode (no time limit), so you won't have this issue related to quitting a ranked game.

Re: Zombie turn with new states classes php syntax error

Posted: 24 October 2025, 14:52
by AndrewB
Excellent. Thanks :)