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

XF 1.2 XenForo Looking In Wrong Directory

Discussion in 'Troubleshooting and Problems' started by TruthElixirX, Jan 6, 2014.

  1. TruthElixirX

    TruthElixirX Member

    When I view a JS file I get an error message:

    ”." class="error"><br /><b>Warning</b>: require(/home/****/public_html/library/XenForo/Autoloader.php): failed to open stream: No such file or directory in <b>/home/****/public_html/index.php</b> on line <b>6</b><br /><br /><b>Fatal error</b>: require(): Failed opening required '/home/****/public_html/library/XenForo/Autoloader.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in <b>/home/*****/public_html/index.php</b> on line <b>6</b><br />
    It needs to be looking at


    I don't understand what I did wrong or where I need to reset this path at. Help would be greatly appreciated.
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    What file is called when this error is thrown? Are you outside the forums directory?
  3. TruthElixirX

    TruthElixirX Member

    XenForo is in /forums.

    When I am at forums/index.php all of my JS files throw up that error.

    I have added a second copy of the library folders and files to the folder above the /forums directory as a work around for now.
  4. TruthElixirX

    TruthElixirX Member

    Any ideas?
  5. Tracy Perry

    Tracy Perry Well-Known Member

    Check your .htaccess (if you are using Apache) for the RewriteBase location.
  6. TruthElixirX

    TruthElixirX Member

    Ah, that was it. Thanks!
    Tracy Perry likes this.
  7. TruthElixirX

    TruthElixirX Member

    Hm, looks like it may not be fixed after all.

    When someone quotes a really long post click to expand doesn't work. It is pre-expanded. The entire post is hown but "click to expand" is still at the bottom. Looking at the source for the page whenever I click the javascript files that are linked, it just takes me to the same page. If I try to navigate to them directly I get a security error message. I am not sure if this is expected.

    Where would be a good place to start trouble shooting click to expand not working?
  8. Mike

    Mike XenForo Developer Staff Member

    We'd really need to see this happening.
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Your javascript is fine. Note that some browsers have base href problems when clicking an included file in the source code. For example, I have that problem in FireFox where clicking an included js in the source loads the wrong URL. I have to copy it manually.

    The problem was your custom "bb_code.css" template. I reverted it and pasted your old template in "bb_code_old.css" in case you need it.

    The expanding quotes work now.

Share This Page