I just downloaded the latest, recommended upgrade of OG Teampage and as soon as I deployed it, I started to get "Cannot modify header information - headers already sent" warnings as the one below:

warning: Cannot modify header information - headers already sent by (output started at /xxxxxxxx/xxxxxxxxxx/public_html/sites/all/modules/og_teampage/og_teampage.module:1) in /home/ciudades/public_html/includes/common.inc on line 141.

Furthermore, the update.php process did not succeed, first displaying this screen:

An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the update summary
{ "status": true, "percentage": 100, "message": "Updating og_teampage module" }

And the followin update summary screen:

The update process was aborted prematurely while running update # in .module. All other errors have been logged. You may need to check the watchdog database table manually.

    * Main page
    * Administration pages

The following queries were executed
og_teampage module
Update #6

    * CREATE TABLE {og_teampage} ( gid INT( 11 ) NOT NULL , show_in_mission SMALLINT( 1 ) DEFAULT '0' NOT NULL , use_user_images SMALLINT( 1 ) DEFAULT '0' NOT NULL , PRIMARY KEY ( gid ))
    * Failed:
    * DELETE FROM {og_teampage_members} WHERE uid='0' OR gid = '0'; 

After this, I tried to uninstall the module, but admin/build/modules/list/confirm would show an error or blank screen, although it did succeed in uninstalling the module.

Comments

MartinSfromB’s picture

Assigned: Unassigned » MartinSfromB

Does the module do its job?
Are both tables (og_teampage and og_teampage_members) now in your database?
Does your watchdog table give another hint on the failed query?

humble’s picture

Exact same problem here. Both tables are now in the database. Watchdog keeps telling me:

Cannot modify header information - headers already sent by (output started at /xxx/modules/og_teampage/og_teampage.module:1) in /xxx/includes/common.inc on line 141.

and gives me a WSOD.

thanks,

Scott

MartinSfromB’s picture

Sorry for the problem but I need to install a drupal 5 with the old version of og_teampage 5.x-1.x-dev to see, what happens.
But the module works? Both tables are filled with data?

timgilmour’s picture

got the same issue here.

could it be related to this? http://drupal.org/node/306920

sanduhrs’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Attached is a patch, that fixes the issue, at least for me.
Please have a look.

asak’s picture

I'm getting this too. but i checked the files and they are ok...

dmclark’s picture

is there an update on this?

sanduhrs’s picture

StatusFileSize
new1.65 KB

The "Headers already sent" problem seems to be related to #306920: Strange characters on top of og_teampage.module
The "Failed" message is related to a wrong call to db_query(), where update_sql() should be called.
This results in the "Failed" messages, but the queries should be executed well - so this is only cosmetics.

A patch is attached, that fixes both.

The blank screen may be a lack of memory.

lelizondo’s picture

The patch solves the wsod when installing the module for the first time.