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

Odd 404 error with a simple addon of mine

Discussion in 'XenForo Development Discussions' started by lasertits, Mar 9, 2012.

  1. lasertits

    lasertits Active Member

    Hopefully someone can give some light as to why this might be happening, and out of the blue too when before the addon functioned perfectly.

    Basically it's a simple addon that adds a NavTab for a custom page / template I make. That page has a sidebar with links to other pages/templates the addon serves. What's odd though, is for one of the templates/pages, the link is 'site.com/servers/css' and this will result in a 404 error, however, I have other pages, such as 'site.com/servers/tf2' and these function perfectly fine.

    If I add an end slash to the css one, site.com/servers/css/ it works, but why are all the other pages working with no end slash? I looked up my error logs and found this:

    I can't figure out why that link would actually be trying to open a folder/file relative to the site's doc root... especially when its controller matches all the others

    Anyone have any ideas why this is happening all of the sudden?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What is in your .htaccess file?
  3. lasertits

    lasertits Active Member

    On nginx, but the htaccess.TXT in the XF root is the default contents. I could supply my nginx server definition? Or any related config. I haven't touched the configs though, very odd that this was working before and now it isn't... but eh, I guess that's how most issues are... just pop up seemingly out of the blue. :confused:

    These are the only rules in the actual server definition, rest is just the regular crap, defining the root, the access/error log, the listen ip/port..

    There is this in my php location definition:
    That's the closest thing I can find that would warrant a weird 404, I commented it out though and restarted the services, behavior continued.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Dunno. :(

    I can only assume it's something with your server config.
  5. lasertits

    lasertits Active Member

    Yeah I'm pretty stumped... to my knowledge the configs haven't been touched, packages haven't been upgraded... was working for weeks and all of the sudden it doesn't. Guess I've got some deeper digging to do... :(

    Thanks for taking a look.

Share This Page