Error Game module not found: module.mainsite.award

Game development with Board Game Arena Studio
Post Reply
User avatar
Inaofr
Posts: 142
Joined: 26 March 2020, 22:26

Error Game module not found: module.mainsite.award

Post 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.
User avatar
Inaofr
Posts: 142
Joined: 26 March 2020, 22:26

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

Post 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.
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

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

Post by Victoria_La »

I have this error randomly too, so not your code
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

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

Post 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.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

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

Post 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.
User avatar
Inaofr
Posts: 142
Joined: 26 March 2020, 22:26

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

Post 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.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

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

Post by Een »

I have copied this file too to the studio gameserver. Hope it fixes it!
User avatar
Inaofr
Posts: 142
Joined: 26 March 2020, 22:26

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

Post by Inaofr »

Yes, now it seems to be fixed, thanks!
User avatar
QuasarDuke
Posts: 18
Joined: 22 March 2020, 00:46

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

Post by QuasarDuke »

Unfortunately, it was broken again for me tonight.
User avatar
Een
Posts: 3861
Joined: 16 June 2010, 19:52

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

Post by Een »

QuasarDuke wrote: 23 April 2020, 04:29 Unfortunately, it was broken again for me tonight.
Indeed, typo in the deploy script. Fixed.
Post Reply

Return to “Developers”