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

Localhost showing blank forum

Discussion in 'Troubleshooting and Problems' started by Lisa, Sep 24, 2011.

  1. Lisa

    Lisa Well-Known Member

    Okay, so I use XAMPP to run localhost testsites for all sorts of things, including a testboard for xenforo.

    Last night I thought I'd better get a testboard set up for my UrbanFantastic site - using a copy of the database. A pretty straightforward process I feel - get a clean db in place, the files, etc.. then import the backup into the empty database - ensure the urls are correct in the ACP and import the skin.

    Now I can run a clean xenforo without any problems at all and I can install skins as well, but the minute I import a database, I can access the ACP absolutely fine, but the forum page is completely blank. Nada, nothing, zilch just empty space.

    Ideas for this dilemma welcome :D
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Double check the forum URL as when you import your database it will be using the settings from your live site and may be directing you to an invalid URL.

    If you view page source is there anything?
     
  3. Lisa

    Lisa Well-Known Member

    Yeah, I've amended all the URL's. No errors show up. The ACP is accessible and completely useable. If you view page source there's nothing there. Just emptiness :D
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Hmmm, interesting.
    I've never had this issue with my localhost installation, also using XAMPP.

    Have you tried restarting the Apache service?
    Although it shouldn't be required.
     
  5. ragtek

    ragtek Guest

    Any error log entries (php,apache)?
     
  6. Lisa

    Lisa Well-Known Member

    Restarted Apache a few times (and rebooted laptop too)
    No error log entries :)

    I'd say it was a dodgy install but installing a clean copy of xenforo works perfectly. And I can use the ACP, it's only when I go to view the forum.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Long shot, but try enabling debug mode.
    See if that gives you anything more to work with.
     
  8. Lisa

    Lisa Well-Known Member

    I'll give it a go and let you know :)
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    A blank page is often a suppressed error. Try adding this line to your library/config.php file:

    Code:
    ini_set('display_errors', true);
    
    Or add this to a .htaccess file on your server (only works on Apache servers):

    Code:
    php_value display_errors 1
    
    That may reveal an error message on the blank page.
     
  10. Lisa

    Lisa Well-Known Member

    okay, well that's a bit bizarre :D.. First I put the site in debug mode and nothing changed. So I turned off debug and added the code to config and now the forum is displaying perfectly.. yet two minutes earlier the page was not there!

    Thanks guys :)
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    If you remove that code from config.php does the forum still show?
    If not then there's still an error somewhere.

    Try enabling debug and adding that code, it may show the error.
     
  12. Lisa

    Lisa Well-Known Member

    Yes, seems to be working perfectly now... go figure.. it's got to be something one of you suggested LOL
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah that makes no sense. Must be coincidence.
     
  14. Lisa

    Lisa Well-Known Member

    I think if I'd only just installed the testboard and had run into the blank page I'd agree. But I've been trying to sort this out for 2 days. I have imported the db three or four times with the same result each time so god only knows what went on there. I'm going to simply work on the theory that resaving the config file performed some miracle :D
     

Share This Page