• Resolved mjouest

    (@mjouest)


    Certain pages load as a white screen when I have Jetpack activated. When I deactivate Jetpack, the pages load in properly with the content displayed. I would rather have Jetpack activated. Any ideas, suggestions for solving this issue?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you add the following to your site’s wp-config.php file, so we can find our more about what’s causing the white screen?

    
    define( 'WP_DEBUG', true );
    
    if ( WP_DEBUG ) {
    
            @error_reporting( E_ALL );
            @ini_set( 'log_errors', true );
            @ini_set( 'log_errors_max_len', '0' );
    
            define( 'WP_DEBUG_LOG', true );
            define( 'WP_DEBUG_DISPLAY', false );
            define( 'CONCATENATE_SCRIPTS', false );
            define( 'SAVEQUERIES', true );
    
    }
    

    Your wp-config.php file may already include a line that says “define(‘WP_DEBUG’, false);”. You can remove it, and replace it by the code above.

    Once you’ve done so, try to reproduce that white screen on a page of your site, and then check the wp-content/debug.log file for errors. You can paste the results here. You can then replace define('WP_DEBUG', true); by define('WP_DEBUG', false); in the code above.

    Thank you!

    Thread Starter mjouest

    (@mjouest)

    Hi Jeremy
    Thank you very much for your suggestion. I followed your directions and this is what happened:

    1) After after adding the code to wp-config.php the site would not load (wp-admin and the front page yielded white screens).

    2) I searched for wp-content/debug.log but it was not found. Consequently, I cannot paste the error log results here.

    3) I replaced wp-config.php with the original file and the site came back.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    1) After after adding the code to wp-config.php the site would not load (wp-admin and the front page yielded white screens).

    Could you try to add the code again, but make sure you copy and paste it, and paste it before the line in the wp-config.php that says that you can’t edit after that line?

    Let me know what you find!

    Thread Starter mjouest

    (@mjouest)

    Hi Jeremy
    Thank you once again for your assistance. Here’s what I’ve done and the consequences:

    1) I retried, as you advised, being more precise about where I pasted the code, and the site loaded as per usual.

    2) I activated Jetpack and the certain pages did not load. This is selective. It loads the home page, but it does not load a specific landing page I was using in a campaign. Instead, it yields a white screen.

    3) I searched and found the wp-content/debug.log — Here is what the log states:
    [17-Oct-2017 21:11:01 UTC] jp-sitemap-mF7b9: — Updating…
    [17-Oct-2017 21:11:01 UTC] jp-sitemap-mF7b9: — WARNING: Jetpack can not load necessary XML manipulation libraries. This can happen if XML support in PHP is not enabled on your server. XML support is highly recommended for WordPress and Jetpack, please enable it or contact your hosting provider about it.
    [17-Oct-2017 21:11:01 UTC] jp-sitemap-mF7b9: — Building sitemap-1.xml
    [17-Oct-2017 21:11:01 UTC] jp-sitemap-mF7b9: — Cleaning Up jp_sitemap
    [17-Oct-2017 21:11:01 UTC] jp-sitemap-mF7b9: — Cleaning Up jp_sitemap_index
    [17-Oct-2017 21:11:01 UTC] jp-sitemap-mF7b9: — Building image-sitemap-1.xml
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Cleaning Up jp_img_sitemap
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Cleaning Up jp_img_sitemap_index
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Building video-sitemap-1.xml
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Cleaning Up jp_vid_sitemap
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Cleaning Up jp_vid_sitemap_index
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Building Master Sitemap.
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: — Finished.
    [17-Oct-2017 21:11:02 UTC] jp-sitemap-mF7b9: 9.331 seconds elapsed.
    [17-Oct-2017 21:11:52 UTC] PHP Fatal error: Class ‘DOMDocument’ not found in /home/ouest/public_html/wp-content/plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php on line 250
    [17-Oct-2017 21:12:14 UTC] PHP Fatal error: Class ‘DOMDocument’ not found in /home/ouest/public_html/wp-content/plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php on line 250

    4) I deactivated Jetpack and the page loads in again

    Thread Starter mjouest

    (@mjouest)

    An update: After taking into account some of the results of the error log, I had my host server enable XML support in PHP. It also turns out that the version of PHP being used is 5.5 and I’ve petitioned an upgrade to the latest version.
    However, the PHP Fatal error: Class DOMDocument not found… etc. is beyond my ken.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    PHP Fatal error: Class ‘DOMDocument’ not found in /home/ouest/public_html/wp-content/plugins/jetpack/modules/shortcodes/class.filter-embedded-html-objects.php on line 250

    That’s indeed the error. If enabling php-xml didn’t help, I would recommend that you get in touch with your host again and let them know you still experience issues; they should be able to get this fixed for you.

    Thread Starter mjouest

    (@mjouest)

    Ok. The PHP upgrade didn’t hold. So I did it again. Now it’s held. The pages are now loading. So far, things seem to be back on track. Thanks for your help!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Jetpack prevents certain pages from loading’ is closed to new replies.