Page 1 of 1

Error Game module not found: module.mainsite.award

Posted: 18 April 2020, 13:49
by Inaofr
Hi,

I'm working on fixing bugs on a released game (Stone Age), and since a few days I randomly meet an error at launch of my test game :
Sorry, an unexpected error has occured ...

Game module not found: module.mainsite.award

#0 /var/tournoi/release/tournoi-200417-2009-gs/www/include/APP_GameFactory.inc.php(25): APP_GameFactory->getNewGameModule('module.mainsite...', true)
#1 /var/tournoi/release/tournoi-200417-2009-gs/www/include/APP_GameClass.inc.php(23): APP_GameFactory->getNewUnique('module.mainsite...')
#2 /var/tournoi/release/tournoi-200417-2009-gs/www/game/module/website/auth.game.php(956): APP_GameClass->getNewUnique('module.mainsite...')
#3 /var/tournoi/release/tournoi-200417-2009-gs/www/game/module/website/auth.game.php(540): Auth->LogUserIn(Array, true)
#4 /var/tournoi/release/tournoi-200417-2009-gs/www/game/module/website/auth.game.php(581): Auth->cookie_autologin_using('TournoiEnLigneS...', 'TournoiEnLigneS...', 0)
#5 /var/tournoi/release/tournoi-200417-2009-gs/www/game/module/website/auth.game.php(432): Auth->cookie_autologin()
#6 /var/tournoi/release/tournoi-200417-2009-gs/www/index.php(126): Auth->autologin_or_visitor()
#7 {main}


F5 allow to reach the board game and after everything is working.
Nothing in this error log seems to be related to Stone Age code or my modifications, so I would like to know if other people have the same issue. If not, I guess that I have broke something but I currently have no idea where.

Re: Error Game module not found: module.mainsite.award

Posted: 19 April 2020, 13:13
by Inaofr
I reverted my code to the current in production version. The issue is still there, so it is not related to my modifications.

Re: Error Game module not found: module.mainsite.award

Posted: 19 April 2020, 16:03
by Victoria_La
I have this error randomly too, so not your code

Re: Error Game module not found: module.mainsite.award

Posted: 19 April 2020, 17:00
by Een
Yes, probably something linked to recent changes on the mainsite that cause some trouble on the studio. As it's not blocking, noted and we'll fix that when possible.

Re: Error Game module not found: module.mainsite.award

Posted: 19 April 2020, 19:39
by Een
A class file was missing in the studio gamserver build. I have added it, I think it should fix this trouble but as I haven't seen it myself I'm not sure. Please let me know if the problem persists.

Re: Error Game module not found: module.mainsite.award

Posted: 19 April 2020, 22:21
by Inaofr
It is still not working, but the logs changed, now it is :
Warning: require(/var/www/tournoi/game/module/mainsite/award_types.inc.php): failed to open stream: No such file or directory in /var/tournoi/release/tournoi-200417-2009-gs/www/game/module/mainsite/award.game.php on line 22

Fatal error: require(): Failed opening required '/var/www/tournoi/game/module/mainsite/award_types.inc.php' (include_path='.:/usr/share/php') in /var/tournoi/release/tournoi-200417-2009-gs/www/game/module/mainsite/award.game.php on line 22

As before, F5 fix it.
In fact it is not so random. It is systematic at first express launch of a Stone Age game since opening of browser (I'm using Firefox 75). So if your browser is running, first stop any game, then close it and relaunch.

Re: Error Game module not found: module.mainsite.award

Posted: 20 April 2020, 11:26
by Een
I have copied this file too to the studio gameserver. Hope it fixes it!

Re: Error Game module not found: module.mainsite.award

Posted: 20 April 2020, 18:05
by Inaofr
Yes, now it seems to be fixed, thanks!

Re: Error Game module not found: module.mainsite.award

Posted: 23 April 2020, 04:29
by QuasarDuke
Unfortunately, it was broken again for me tonight.

Re: Error Game module not found: module.mainsite.award

Posted: 23 April 2020, 10:27
by Een
QuasarDuke wrote: 23 April 2020, 04:29 Unfortunately, it was broken again for me tonight.
Indeed, typo in the deploy script. Fixed.