Broken Upgrade
| Project: | OG Teampage |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | MartinSfromB |
| Status: | needs review |
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
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
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
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
got the same issue here.
could it be related to this? http://drupal.org/node/306920
#5
Attached is a patch, that fixes the issue, at least for me.
Please have a look.
#6
I'm getting this too. but i checked the files and they are ok...
#7
is there an update on this?
#8
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.
#9
The patch solves the wsod when installing the module for the first time.