• Hi all

    For some reason, just recently, my posts page is blank – white screen. The rest of my site is 100% working etc it’s just the posts page. I can also still see individual posts when I enter their URLs

    I have tried disabling all plugins with no luck.
    I tried switching to another theme (parent theme – twenty eleven) and it worked. So I am guessing there is an issue with my child theme somewhere?

    Any ideas on where I should start looking?

    Thanks in advance

    Tim

Viewing 8 replies - 1 through 8 (of 8 total)
  • A white screen typically means your server is set to log–not display–PHP errors, so there should be an error_log file in the root folder for your site. It will most likely show there is a PHP error in one of the files in your child theme. If you download the error_log file and open it in a text editor, it should help you identify the source of the problem.

    Thread Starter Tim69

    (@tim69)

    Great thanks for your help. I couldn’t find the error log but I managed to turn on wp_debug and I got the following errors on my posts page. Are there any errors here that could be causing it?

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /wp-includes/functions.php on line 3078

    Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /wp-includes/functions.php on line 3078

    Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /wp-includes/functions.php on line 3078

    Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /wp-includes/functions.php on line 3078

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /wp-includes/functions.php:3078) in /wp-content/plugins/event-espresso/espresso.php on line 55

    Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /wp-includes/functions.php on line 3078

    Notice: Undefined index: action in /wp-content/plugins/flexi-quote-rotator/flexi-quote-rotator.php on line 41

    Notice: Undefined index: addQuote in /wp-content/plugins/flexi-quote-rotator/flexi-quote-rotator.php on line 46

    Notice: Undefined index: editQuote in /plugins/flexi-quote-rotator/flexi-quote-rotator.php on line 51

    If I’d seen that without knowing that your site was fine using your parent theme Twenty Eleven, I would have said you had some problem plugins, but you’re saying everything is fine with all your plugins active running the Twenty Eleven (parent) theme, correct?

    What version of WordPress are you using?

    In your child theme folder, what files do you have other than style.css?

    Thread Starter Tim69

    (@tim69)

    Hi v.late reply but I was away on holidays.

    Yes with the Twenty Eleven parent theme activated and nothing else changed, the post page appears.

    I am using the latest version of WP 3.9.2

    I am an assortment of child theme files
    – content, functions, footer, index, instrument hooks, sidebar, sidebar page, single, style

    I tried deleting these php child files one by one but it made no difference.

    Could there be a problem in the database somewhere?

    Thanks for you help

    You really need to find the error_log. Take a look in your child theme folder, your WP root folder, and in your /wp-content/plugins folders to see if you can find a file called “error_log”. Finding the error_log will probably tell you exactly where the error is occurring. It seems like it has to be in your child theme, but if you deleted each of the files there it seems you would have ruled that out.

    The answer will be in the error log. If you can’t find the file, the next thing I would do is check the php.ini for the site and make sure error logging is on and see where the files are being kept.

    Thread Starter Tim69

    (@tim69)

    OK I had a look around

    error_log for child theme
    There are no recent reported errors from within the last month. The last reported errors are memory exhuasted errors from a plugin not related to my blog/posts. I increased my server memory allocation awhile ago.

    error log on root
    displays only one error from January
    PHP Fatal error: Call to undefined function get_header() in child theme
    404.php on line 10

    error log in plugin folder
    I can’t see a error_log there??

    The error:

    PHP Fatal error: Call to undefined function get_header() in child theme
    404.php on line 10

    is usually from some miscreant attempting to access the 404.php page directly. I don’t think that’s it.

    Usually, a blank white page means a PHP error, but you’re not finding one that’s relevant. I’m at a loss. It seems like it’s got to be something in your child theme from what you’ve said, but eliminating all the PHP files in your child theme folder doesn’t fix it. I’m out of ideas.

    Thread Starter Tim69

    (@tim69)

    I finally worked it out. I had an index.php file in the child folder for some reason (I’m guessing I copied it in there by mistake). I didn’t list this is my posts above which you may have pointed out. Anyway once I deleted this file everything is working fine now. Thanks for all your help. All resolved, cheers.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blank posts page’ is closed to new replies.