• Hello Everyone,

    I am currently running WP 3.2.1 and the theme is Xebax.

    I have been having no problems until I installed Membership plugin from WPDEV and allocated a Protected Content landing page. The page I created as the protected content page rendered fine until I allocated it in the Membership settings page, then when you go on it you get:

    Cannot modify header information – headers already sent by (output started at /homepages/8/d329546477/htdocs/test/interpro/wp-content/themes/xebax/header.php:2) in /homepages/8/d329546477/htdocs/test/interpro/wp-includes/pluggable.php

    I have been through header.php and pluggable.php and there are no extra spaces or lines. I have also checked every .php file in the Membership plugin as well as copying across a known working version from another site I run. Also I have looked at line 2 in headers.php and replaced the php with the output code, then the error just moved on to line 4 which was the next lot of php code.

    The page affected is https://www.interpro-it.co.uk/test/interpro/protected-content/

    Please help!!

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Clicked the think and it Looks great to me!

    Thread Starter Interpro

    (@interpro)

    Lol is there content showing up on yours? My html source has this right at the bottom:

    <b>Warning</b>: Cannot modify header information – headers already sent by (output started at /homepages/8/d329546477/htdocs/test/interpro/wp-content/themes/xebax/header.php:2) in <b>/homepages/8/d329546477/htdocs/test/interpro/wp-includes/pluggable.php</b> on line <b>934</b>

    Instead of the content and footer :/

    No content, no error

    Just your header and background

    Which Browser are you using?

    Is there meant to be text? I thought this was a protected page?

    Thread Starter Interpro

    (@interpro)

    The error is hidden behind the header menu – the page works beautifully until the content – then the content, sidebar and footer are all eaten ??

    The idea is that (if you go to any other page from that link) in the bottom right corner there is a staff area. When you click directly on it without being logged in, instead of seeing the staff area page, you get sent to this protected content page which should read “I’m sorry but you have tried to access a protected staff-only area. You will need to log in to continue.”.

    If you view source on this broken page and scroll right to the bottom you can see the headers sent error. This page works perfectly if it hasn’t been nominated in Membership plugin as the protected content page.

    I’m using Chrome but checked it in IE and FF.

    Interpreting the Error Message:

    If the error message states: Warning: Cannot modify header information – headers already sent by (output started at /path/blog/wp-config.php:34) in /path/blog/wp-login.php on line 42, then the problem is at line #34 of wp-config.php, not line #42 of wp-login.php. In this scenario, line #42 of wp-login.php is the victim. It is being affected by the excess whitespace at line #34 of wp-config.php.

    If the error message states: Warning: Cannot modify header information – headers already sent by (output started at /path/wp-admin/admin-header.php:8) in /path/wp-admin/post.php on line 569, then the problem is at line #8 of admin-header.php, not line #569 of post.php. In this scenario, line #569 of post.php is the victim. It is being affected by the excess whitespace at line #8 of admin-header.php.

    this means you need to look in your theme file.

    Also, which version are you running of Membership? If it’s the full you need to ensure that you have the latest version, it’s been updated in the last 48 hours, one of the fixes was a header issue

    Thread Starter Interpro

    (@interpro)

    I have already gone through headers.php and amended the line 2 it quoted but when I changed the php on that line to the output code, the error just moved two lines down to the next bit of php. But this problem only occurs when the Membership plugin is running.

    I am currently using Membership 2.0.7, I checked for updates when I found it not working ??

    Thank you for your help

    Thread Starter Interpro

    (@interpro)

    Update: When I go to the protected content page when I am logged in as admin, it displays properly. If I am logged out or logged in as a user, it gives that headers error. I found this thread when I first started to try to find out what was going on https://premium.wpmudev.org/forums/topic/cannot-modify-header-error-when-membership-upgraded-to-30 and she mentions a problem with getting the user id.

    I will continue….

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Membership WPDEV] Protected Content Page creates headers already sent’ is closed to new replies.