Broken Upgrade

Carlos Miranda Levy - August 28, 2008 - 11:46
Project:OG Teampage
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:MartinSfromB
Status:needs review
Description

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.

#1

MartinSfromB - August 28, 2008 - 17:16
Assigned to:Anonymous» 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?

#2

humble - August 29, 2008 - 02:33

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

#3

MartinSfromB - August 29, 2008 - 10:27

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?

#4

timgilmour - October 2, 2008 - 18:44

got the same issue here.

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

#5

sanduhrs - October 21, 2008 - 09:31
Status:active» needs review

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

AttachmentSize
weird_characters_patch_0.patch 1.19 KB

#6

asak - October 25, 2008 - 18:01

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

#7

dmclark - October 30, 2008 - 14:57

is there an update on this?

#8

sanduhrs - November 17, 2008 - 22:01

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.

AttachmentSize
weird_characters_patch_1.patch 1.65 KB

#9

lelizondob - November 30, 2008 - 11:13

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

 
 

Drupal is a registered trademark of Dries Buytaert.