WordPress.org

Forums

Theme not working locally (6 posts)

  1. oddcrap
    Member
    Posted 2 years ago #

    I have LAMP up and running. I created a wordpress theme and installed it without permission issues on my local server (on the folder /var/www/wordpress). But when I'm trying to run it or preview it, I get a blank page. If I check the source code of the blank page, it's completely blank.

    But this only happens locally. I tried to upload it to an online server and everything worked ok. First I thought it was permissions issue but I have the same ones as the other themes - that work without problems.

    As you can see, the permissions for my theme are:
    http://pastebin.com/4t6R7A26

    and the permissions for the other templates are:
    http://pastebin.com/SPymdTDB

    Help.

  2. wpismypuppet
    Member
    Posted 2 years ago #

    If it's blank, it might be a PHP error happening locally. Try looking at your LAMP error logs. Perhaps you don't have your PHP's ini file configured properly? Hard to tell... but a completely white screen, in my experience, means there's a fatal PHP error and you have errors suppressed in your ini file so you aren't seeing the error. The log will tell all.

  3. Mike
    Member
    Posted 2 years ago #

    You say you created a theme.

    Does this also happen locally with the default WordPress theme?

  4. oddcrap
    Member
    Posted 2 years ago #

    @wpismypuppet How do I see the log?

    @Mike, No, only with my theme (and only locally).

  5. Mike
    Member
    Posted 2 years ago #

    ok, so that is a good sign.

    wpismypuppet has a point, by enabling wp_debug http://codex.wordpress.org/WP_DEBUG you can see if you have any errors or warnings locally.

    read more about debugging in WordPress here: http://codex.wordpress.org/Debugging_in_WordPress

  6. oddcrap
    Member
    Posted 2 years ago #

    Ok, I really though I submitted this but I just want to let you know that with the wp_debug I was able to trace the bug and it was a syntax error (I forgot a '?' in <?php ...

    SO thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic