Jump to content
  • Navigating to an empty forum gives a 404


    If I click the link to one of my demo forums (most of them are currently empty), I get redirected almost immediately and see this in the console:

    Uncaught SyntaxError: Failed to execute 'appendChild' on 'Node': Unexpected token ':'
        at m ([snip]/static/js/global/root_library.js?v=5e1e3884101733533176:2:880)
        at Function.globalEval ([snip]/static/js/global/root_library.js?v=5e1e3884101733533176:2:3031)
        at text script ([snip]/static/js/global/root_library.js?v=5e1e3884101733533176:2:80994)
        at [snip]/static/js/global/root_library.js?v=5e1e3884101733533176:2:77349
        at l ([snip]/static/js/global/root_library.js?v=5e1e3884101733533176:2:77466)
        at XMLHttpRequest.<anonymous> ([snip]/static/js/global/root_library.js?v=5e1e3884101733533176:2:80265)

     


    User Feedback

    Recommended Comments

    Marc

    Posted

    Im not able to replicate this. Please could I check you are using beta 7?

    Mick23

    Posted

    I sure am.  Let me see if there's anything in the system logs.

    Nothing in the system logs.  I'm not that fussed about it because when I upgrade my live site there will not be any empty forums.

    Mick23

    Posted

    Actually, it also happens when navigating to a forum with content.  I see it has been moved to github so I guess it was reproducible?

    Marc

    Posted

    3 hours ago, Mick23 said:

    Actually, it also happens when navigating to a forum with content.  I see it has been moved to github so I guess it was reproducible?

    Actually no, its not been reproducible in any way on our end. Is this an upgrade from 4?

    Mick23

    Posted

    I originally installed beta 4, then each release since then.  I can't be sure when it started happening.

    I'm going to just reinstall from scratch for my test site.  I'm also getting template errors on the activity stream since several versions ago so I must have broken something somewhere, but there are no customisations beyond the theme.

    Mick23

    Posted

    On 12/12/2024 at 10:52 PM, Marc said:

    Please let us know if you see it on a new installation

    Yes, unfortunately it is happening on a new installation.

    I deleted the database and files, re-installed the latest beta and got the same error going to the demo forum.

    I've made zero changes, I simply clicked the "go to the suite" button.

    It briefly shows the forum, gives the JS error I posted above then redirects to my live site's 404 page but with this url (I've redacted the actual domain):

    https://www.mydomain.com/devcommunity/community/static/js/cloud/front_front_realtime.js?v=166982fc561734310691&csrfKey=&antiCache=166982fc561734310691

    image.png.ea26bc86081247174dd330a565c4f00b.png

    Live site is at /public_html/community

    Test site is at /public_html/devcommunity/community

    PHP version 8.1.

    Nothing in the system or error logs.

    I've updated my dev site login details so you can have a look if you like.

    Mick23

    Posted

    Also, this is for a self-hosted instance.

    /cloud/front_front_realtime.js

    The above in the url makes me wonder if perhaps there's an online feature trying to escape into the real world... 😝

    Esther E.

    Posted

    You should indeed be getting a 404 for that JS file (and you are), but the redirect is definitely not coming from our end. If you look, your site actually redirects to your live site when that happens. I'm wondering if you have a custom error page or an htaccess rule that is triggering this?

    Mick23

    Posted (edited)

    Thanks @Esther E. for looking into it.

    Edited by Mick23

×
×
  • Create New...