"Cannot modify header information" When loading mobile page

Bug #675837 reported by vad710
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bbPress Mobile
Invalid
Undecided
Unassigned

Bug Description

I get the following errors when loading my mobile page:

Warning: Cannot modify header information - headers already sent by (output started at /homepages/.../mobile/index.php:718) in /homepages/.../mobile/index.php on line 759

I shortened the paths for security reasons.

link: http://beta.wow-synergy.net/mobile/

Revision history for this message
master5o1 (iam5o1) wrote :

I just updated my testing (http://dump.master5o1.com/mobi) and it appears to work for me.

Have you turned on access to the bbPress XMLRPC api in bb-admin?

Revision history for this message
master5o1 (iam5o1) wrote :

http://launchpad.net/bbpress-mobile/trunk/0.5/+download/bbPress-Mobile-pre-0.5.zip <-- I tested it using here, I'll turn off my xmlrpc on my testing bbPress (http://dump.master5o1.com/bbpr)

Revision history for this message
vad710 (vad710) wrote :

I have turned on XMLRPC in the bb-admin menu under "writing"

I am also running pre 0.5 version

I still have the problem though :(

Revision history for this message
vad710 (vad710) wrote :

I figured it out... there seems to be an issue with the bb_die function... there is a situation where its trying to spit out error codes but fails as it is trying to write the header...

As a hack, i changed the outer else statement in the bb_die function to look like this:

 } else {
  echo $e;
  die();
  //header( "Location: {$uri}/?error=". urlencode( base64_encode( $e ) ) . "&ref=". urlencode( base64_encode( $_SERVER['REQUEST_URI'] ) ) );
 }

the commented header() line was what was giving me the original error, while it was hiding the real problem that i had

Having access to the real error code, I was able to trace down the fact that I had a type in my $host variable

maybe it would be worthwhile having a quick "diagnostic" page that would verify those variables?

Revision history for this message
master5o1 (iam5o1) wrote :

Thanks :D

Changed in bbpress-mobile:
milestone: none → 0.5
master5o1 (iam5o1)
Changed in bbpress-mobile:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.