giorg Posted September 17, 2018 Share Posted September 17, 2018 Hi all, I know this could seem weird, but I had my game correctly working until I did setup SSL on my site. Now I get this: TypeError: l is undefined, can't access property "data" of it error in phaser.min.js at line 157613 Does this make any sense? thanks a lo Link to comment Share on other sites More sharing options...
rich Posted September 17, 2018 Share Posted September 17, 2018 Use the unminified version, then you'll get a more helpful error message / line number to look at. Link to comment Share on other sites More sharing options...
giorg Posted September 17, 2018 Author Share Posted September 17, 2018 ok I was doing exactly that the error line is this one (34569): this.fontData = entry.data; the situation is this: in my local environment works perfectly, using git I did put all on final server, and that is the error any hint? thanks a lot Link to comment Share on other sites More sharing options...
rich Posted September 17, 2018 Share Posted September 17, 2018 My guess is the font xml file isn't loaded. Check your network panel in your browser dev tools - any 404 errors or similar there? I'll bet the font texture worked, but the xml didn't. Link to comment Share on other sites More sharing options...
giorg Posted September 17, 2018 Author Share Posted September 17, 2018 I love you yeah I'm using code like this, with relative path: this.load.image('smb02', '../games/magicd/assets/game/magicd_smb02(0).png'); which works perfectly in my local env, but in production for some reason it adds a word "games", so the final url instead of being https://games.setsnc.com/games/magicd/assets/common/s4fontciccione.png it is https://games.setsnc.com/games/games/magicd/assets/common/s4fontciccione.png I don't get why this happens... what's the best way to refer assets? thanks a lot Link to comment Share on other sites More sharing options...
rich Posted September 17, 2018 Share Posted September 17, 2018 Sounds like a server config issue to me. Just use absolute paths, rather than relative ones like you've got. Maybe some code to check the URL of the host and swap between them. Link to comment Share on other sites More sharing options...
giorg Posted September 17, 2018 Author Share Posted September 17, 2018 thanks a lot, man, got it working. keep going, u doing great job! thanks again Link to comment Share on other sites More sharing options...
Recommended Posts