1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

My Xenforo started displaying all messed up

Discussion in 'Troubleshooting and Problems' started by Alex Vojacek, Mar 9, 2013.

  1. Alex Vojacek

    Alex Vojacek Member

    Well, I succesfully re-built my xenforo after 3 months with ipboard.

    All was working perfectly up until a moment in which all sstopped working for no other reason.

    I did not touch anything on the server, It just started displaying wrong, Ajax won't load anymore and it seems that not even JS is loading.


    Banners all display at the same time, the whole page is a mess.

    Does anyone know what could be wrong here?. I tried disabling all plugins to no avail, this happens at random and then it fixes all by itself but mostly, works like this.

    Any ideas?. Server is running nginx with nginx xenforo rules.
  2. Chris D

    Chris D XenForo Developer Staff Member

    You have some javascript errors on the page.

    Specifically one is relating to a Twitter widget... do you have an add-on that uses a Twitter widget? If so disable it, see if that makes a difference.
  3. Alex Vojacek

    Alex Vojacek Member

    I don't have any twitter widget installed and the thing is.

    Ajax wont even work on the admin panel !
  4. Chris D

    Chris D XenForo Developer Staff Member

    I beg to differ...

    <script>$(".twitter-tweet").css("border","1px solid rgb(236,236,236)");</script>
    <script>$(".twitter-tweet").css("border-radius", "7px");</script>
    <script>$(".twitter-tweet").css("box-shadow", "0px 0px 7px 0px rgb(37, 37, 37)");</script>
    <script>$(".twitter-tweet").children("p").css("border-bottom", "3px double rgb(236,236,236)"), ;</script>
    An add-on has added that code and it's causing an error. That being removed might reveal other issues.
  5. Alex Vojacek

    Alex Vojacek Member

    I don't see any addons name "Twitter-tweet".

    How can I check this manually and delete it ?
  6. Chris D

    Chris D XenForo Developer Staff Member

    Search for twitter-tweet in:

    Admin CP > Appearance > Search Templates

    Search for twitter-tweet in the "Template contains" box.

    Once you've found the template, don't delete it or anything...

    Instead put <xen:comment> at the beginning of the template and </xen:comment> at the end.
  7. Chris D

    Chris D XenForo Developer Staff Member

    Alex Vojacek likes this.
  8. Alex Vojacek

    Alex Vojacek Member

    Done, it's the BBCode Media Pack plugin.

    But still displays all wrong and the admin panel does not have ajax enabled.
  9. Alex Vojacek

    Alex Vojacek Member

    Actually, is not empty.

    OMG, nginx is doing some nasty thing to that file since is not loading it at all !
  10. Alex Vojacek

    Alex Vojacek Member

    Ok, you're a genius.

    The file was NOT loading through nginx and it was due to the same file being already packed in .gz on the same folder. Removing all the .js.gz made the file visible again, I really don't understand exactly why, probably has something to do with the gzip that nginx does, but as soon as I deleted the .js.gz files BANG the files is visible again and the forums started working as it should.

    Thank you !
    Slavik and Chris D like this.

Share This Page