Page 1 of 1

Failure but deployed

Posted: 12 January 2026, 07:45
by Inaofr
I just have deployed a new version of Stone Age and in the deploy log there is this failure indicated:

Code: Select all

Scan for new translations 🚨
Failed to parse file Game.php
PhpParser\ParserAbstract::parse(): Argument #1 ($code) must be of type string, false given, called in /var/tournoi/release/tournoi-260107-0936/www/Bga/Translations/TranslationsScanner.php on line 22
Despite this, it is deployed, at least it appears so in the manage game panel, and it seems to run without issue in production.

In this new version, I have moved and renamed stoneage.game.php to modules/php/Game.php, and done stuff indicated in Namespaced game class.

What may I have missed?

Re: Failure but deployed

Posted: 12 January 2026, 08:05
by thoun
Scanning translations doesn't prevent deploy, at worst some translations won't be in the translation center. Is the error still here if you hit re deploy ?

Re: Failure but deployed

Posted: 12 January 2026, 08:36
by Inaofr
Done. No error this time.