• I have created my own wordpress theme with all the necessary files, however I don’t know why it comes up with nothing when I activate it? Literally a blank white screen. It doesn’t show up with anything in the preview either.

    I’m also having problems testing it locally – I have converted my html code into the correct wordpress theme files, however when I open my index.php file in my local server, I get a blank page. But my html version still works… is this normal? How do I test the theme?

    Very confused and hope to find answers!

Viewing 15 replies - 1 through 15 (of 17 total)
  • Check your site’s error logs for clues.

    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    Thanks for the reply, how do I access my error logs?

    Is it normal to not be able to view themes locally? Because I tried viewing the ‘twentyten’ theme I have in my theme folder locally but it also gives me a blank page. Am I doing this wrong?

    how do I access my error logs?

    You will need to ask your hosts for assistance with this.

    Is it normal to not be able to view themes locally?

    Unless you are using a local web server, yes.

    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    Hmmm ok, I will ask my host about it.

    How do people normally view/test their themes?

    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    I have installed wordpress locally, and use MAMP (for mac). I designed my website in html/css and tested it using a local server. But when i convert it into a wordpress theme, I cant test it because it’s blank?

    Sorry for all these questions, I’m just confused as to why I can’t even view themes that I know work (live) on my local server.

    If you are working locally, turn debug on and enable error logging.

    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    I’m having trouble enabling error logging? It says to “Just place this (code) above any require_once or include commands.” I cannot find this?

    I’ve turned debug on now… nothing has changed?

    /**
     * This will log all errors notices and warnings to a file called debug.log in
     * wp-content (if Apache does not have write permission, you may need to create
     * the file first and set the appropriate permissions (i.e. use 666) )
     */
    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);
    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    ok, I’ve pasted this code in the wp-config – replacing the define(‘WP_DEBUG’, false); with define(‘WP_DEBUG’, true);

    What should I do now to find the errors? The debug.log file hasn’t come up in my wp-content folder.

    Check your server’s error log.

    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    Shouldn’t this be in my debug.log file that hasn’t come up though? How do I check my server’s error log?

    I really appreciate this help πŸ™‚

    Shouldn’t this be in my debug.log file that hasn’t come up though?

    Not if the error kicks in before WordPress can run.

    How do I check my server’s error log?

    Check the documentation for your web server software.

    Thread Starter jeffrey_huynh

    (@jeffrey_huynh)

    Ok, i checked error logs and it says:

    [07-Dec-2012 21:09:01 UTC] PHP Fatal error: Call to undefined function get_header() in /Applications/MAMP/htdocs/wordpress/wp-content/themes/highondesign/index.php on line 1

    So this means theres something wrong with my get_header() function? I checked and it is correct though?

    Sounds like there’s a problem with your local WP install. Try re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘My WordPress Theme blank screen?’ is closed to new replies.