0
Welcome Guest! Login
0 items Join Now

SOLVED Rt_Denali > Uncaught SyntaxError: Unexpected token <

    • Jeff S's Avatar
    • Jeff S
    • Sr. Rocketeer
    • Posts: 136
    • Thanks: 8
    • MAD Media Production

    SOLVED Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • This is the issue after adding headroom.min.js to templates/rt_denali/custom/js (btw the link in the documentation page to Template Atoms > Fixed Header is broken: www.rockettheme.com/docs/joomla/template.../atom_fixedheader.md loads this error "Unable to locate /home/shared/sites/rockettheme.com/site/Documentation/Docs/joomla/templates/denali/atom_fixedheader.md")

      it is creating 2 script entries into each page. THe second one is what is kicking out the error "Uncaught SyntaxError: Unexpected token <"
          <script type="text/javascript" src="/templates/rt_denali/custom/js/headroom.min.js?5b143e26"></script>
          <script type="text/javascript"><script type="text/javascript" src="/{{ url('gantry-theme://custom/js/headroom.min.js') }}"></script>
      I also discovered a little later that there is already a headroom.min.js in the main templates/rt_denali/js folder. Not to sound like a complainer, but your documentation is lacking big time.
    • Last Edit: 5 years 10 months ago by Jeff S.
    • Jeff
      Maximum-Aperture.ca
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21561
    • Thanks: 3090
    • messin' with stuff

    Re: Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • The atom is already in Denali, you don't need to add it a 2nd time.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Jeff S's Avatar
    • Jeff S
    • Sr. Rocketeer
    • Posts: 136
    • Thanks: 8
    • MAD Media Production

    Re: Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • Hey Matt, thanks for the quick reply... so where is the documentation that shows you how to setup the fixed header?

      Figured it out... documentation that I had found was including the <script> tags in the inline code to activate the atom... again, documentation is very vague on this... I also noticed that most of the Gantry 5 documentation seems to be for the original Gantry 5 and hasn't been updated to reflect changes to latest versions.

      Anyways, it's all good now, and not getting any errors.
    • Jeff
      Maximum-Aperture.ca
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21561
    • Thanks: 3090
    • messin' with stuff

    Re: Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • Glad you worked through it. All of our Docs are hosted on Github and have an "Edit This Page" link at the top or bottom where you can submit revisions, corrections, suggestions :)
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21561
    • Thanks: 3090
    • messin' with stuff

    Re: Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • If a thread is solved please edit your *original / first* post and place "[SOLVED]" (no quotes; but you do need the brackets) at the beginning of your post title. Changing the post icon to the Solved Checkmark is helpful too. :)
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Jeff S's Avatar
    • Jeff S
    • Sr. Rocketeer
    • Posts: 136
    • Thanks: 8
    • MAD Media Production

    Re: Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 21561
    • Thanks: 3090
    • messin' with stuff

    Re: Rt_Denali > Uncaught SyntaxError: Unexpected token <

    Posted 5 years 10 months ago
    • I've used the Edit this page link at the bottom of that doc to create a report about that broken link. Should be fixed shortly.
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.052 seconds