• Resolved romainsc89

    (@romainsc89)


    The shortcode is working, the game is showing on the website but doesn’t work and I get these errors in the console.

    3game-logic.min.js?ver=1.0.7:11 Uncaught TypeError: Cannot read properties of null (reading ‘content’)
    at T.loadSounds (game-logic.min.js?ver=1.0.7:11:6957)
    at T.onKeyDown (game-logic.min.js?ver=1.0.7:11:13498)
    at T.<anonymous> (game-logic.min.js?ver=1.0.7:11:12359)
    at T.handleEvent (game-logic.min.js?ver=1.0.7:11:12450)

    Any idea how to solve this issue?
    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chris David Miles

    (@chrisdavidmiles)

    I haven’t seen that error before on this plugin. What you pasted suggests you’re using the latest version (1.0.7) which is good.

    Usually these sorts of issues come down to two categories of problems:

    • Another plugin interfering with how markup normally works on the page.
    • Another plugin interfering with how JavaScript normally works on the page.

    The easiest way to check for this is to turn off all other plugins, clear your cache if the website hosting uses page caching, and then see if you still have the issue. If the issue goes away, then turn on your plugins one at a time to see which one might be causing an issue.

    I’m interested in hearing what you find. Depending on how/why a plugin is interfering, I may be able to update the dinosaur game to be compatible. It just depends on what the other plugin is doing. All of this is assuming it’s another plugin, which we don’t really know for sure until you try turning the other ones off.

    I’m happy to take a look at the page as well if you’d like. What’s the url of the site you are using the [dinosaur-game] shortcode on? (By the way, sometimes people aren’t comfortable sharing the URLs of their sites in these forums. If so, maybe try using https://www.temporary-url.com/ to share the link if you prefer that.)

    Hopefully these suggestions help.

    Thread Starter romainsc89

    (@romainsc89)

    Thanks for your answer.
    It’s my personal portfolio, now under construction so not accessible to public.

    I will check this later and I will let you know the result.

    Thread Starter romainsc89

    (@romainsc89)

    Very strange, it’s now working.

    I will keep an eye on it and if the problem comes back I will try with the plugins and let you know.

    Thanks

    Plugin Author Chris David Miles

    (@chrisdavidmiles)

    Sounds good. Good luck on your site! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Game displays but doesn’t work (JS error)’ is closed to new replies.