• Resolved hki429

    (@hki429)


    Hi,

    The plugin (version 2.0.5) generates blank pages for me in WordPress 3.8.1, after performing an action. For example, if I update a post, I get the blank ***/wp-admin/post.php page or after activating or deactivating a plugin I get the blank ***/wp-admin/plugins.php page.

    If I deactivate this plugin, the blank pages disappear and WordPress works correctly.

    This is the accompanying output of WP_DEBUG:

    Warning: Cannot modify header information - headers already sent by (output started at ***/wp-content/plugins/google-analytics-dashboard/gad-admin-dashboard.php:29) in ***/wp-admin/post.php on line 233 
    
    Warning: Cannot modify header information - headers already sent by (output started at ***/wp-content/plugins/google-analytics-dashboard/gad-admin-dashboard.php:29) in ***/wp-includes/pluggable.php on line 896

    (Excluding the strict standard errors that I reported already here, since these strict errors are reported on every page, and the above mentioned errors are only added on blank pages).

    Does anyone has an idea what causes this problem?

    Thanks in advance,

    https://ww.wp.xz.cn/plugins/google-analytics-dashboard/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hki429

    (@hki429)

    According to the WordPress FAQ for this error this issue is caused by excess whitespace in line 29. However, I cannot see where this excess whitespace should be located:

    function __construct()
      {
      }

    Even if I change line 29 to..

    function __construct(){}

    (so no whitespace at all), the problem still persists.

    Thread Starter hki429

    (@hki429)

    I’ve seem to have solved it for now.

    I read here that this error can also be triggered by the wp-config file, even in the case if the error message does not mention wp-config (according to that topic).

    When I inspected that file, the closing php tag ?> was missing. So I added that; but the problem persisted. Inspecting the file again showed that a blank line was added after the ?> tag (not by me).

    Then I recalled this topic about Better WP Security (that I also use). Since I had set Better WP Security to write to the wp-config file, I turned that off (figuring it was the plugin that added the blank line), removed the last blank line of the wp-config file, and everything then worked correctly.

    So, people who use the Google Analytics Dashboard plugin and have a similar issue might want to turn off that Better WP Security setting.

    (I don’t know why this only caused an error with the Google Analytics Dashboard plugin and not with any other of my 20 plugins; perhaps behind the screens there is some conflict between both plugins).

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

The topic ‘Generates blank pages in wp-admin’ is closed to new replies.