I do not know if it is related of the migration of OG menu for OG 7.1 to 7.2, but after we update the module for the correct version for OG, we were unable to create OG menu and we get blank page.
In the log we got this error:
PDOException: SQLSTATE[HY000]: General error: 1364 Field 'etid' doesn't have a default value: INSERT INTO {og_menu} (menu_name, gid, group_type) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => menu-ddddd [:db_insert_placeholder_1] => 6786 [:db_insert_placeholder_2] => node ) in og_menu_update_menu() (line 903 of /var/www/vhosts/sitename/httpdocs/sites/all/modules/og_menu/og_menu.module).
We add this line in the og_menu.module who solve our problem. Maybe it is not the correct way to do it, but for us now we are able to use it has it sould be.
LINE: 901
function og_menu_update_menu($menu_name, $gid, $group_type) {
db_merge('og_menu')
->key(array('menu_name' => $menu_name))
->fields(array(
'gid' => $gid,
'group_type' => $group_type,
+ 'etid' => '0',
))
->execute();
}
Thanks.
Comments
Comment #1
sw3b CreditAttribution: sw3b commentedComment #2
rv0 CreditAttribution: rv0 commentedPlease update og_menu, you are still using the old version.
Let me know how it works out for you
Comment #3
sw3b CreditAttribution: sw3b commentedI'm at the DEV an NO it does not work ! That's why we post the modification. We have migrate from OG Menu for 7.1 to OG Menu for 7.2 and there is a lot of stuff in the etid columns in the database but the columns need to be fill when adding new Menu in it. That's why we have to add the etid because we were not able to continue. :/ I know it is not the best way but it will not work without this.
I have another website to migrate this week-end and with what i can see on the DEV side we have the same modification to do on this Website also, even with the DEV version.
Comment #4
sw3b CreditAttribution: sw3b commentedI change it to critical beacause it make this module unusable without this patch.
Comment #5
rv0 CreditAttribution: rv0 commentedComment #6
rv0 CreditAttribution: rv0 commentedthe update is working for many people, including at least 5 sites i have updated.
there must be something else.