XF 1.4 JavaScript Error?

Brogan

XenForo moderator
Staff member
#2
What custom JS do you have in the style?

Does it still happen with all add-ons disabled, in a completely default unedited style with all custom JS removed?
 
#3
I've disabled all my addons except one that i can't disable because it says that there aren't the file for the disintallation, i tried to create a default style and tried to edit the "forum_list" and it still happen, i also tried to copy/paste a backup of the forum where there wasn't the problem but nothing changed :( how can i know if i removed all the custom JS?

edit: the 1st time i saw the error was after i've restored the template bacause there were something outdated
 

Mike

XenForo developer
Staff member
#4
This is almost certainly caused by something like mod_security. It's triggering an error and trying to load an error message and failing, which ends up with it falling back to another page. Your host can likely identify the specific rule behind the issue.
 
#5
So.. i found out the problem.. it was this string of code
Code:
<xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:forums'}" /></xen:container>
it was in the forum_list, is there something wrong in that code?
 

Tracy Perry

Well-known member
#6
it was in the forum_list, is there something wrong in that code?
Most likely the REAL issue is a security rule violation for whatever setup the server uses (as Mike said, odds are it's mod_security) and you can find the issue by looking at the server log files and finding what triggered it. If you are self-hosted (VPS/dedi) then you will need to investigate that aspect, otherwise let your hosting provider know about it and have them research it and exclude whatever rule (or modify it) that is triggering.
Odds are that's a standard template statement in all XF installs (I found it in forum_list template) and if it was an issue it would be reflected on other sites also.
 
Top