Hi,
I was trying to update fieldable_panels_panes from 7.x-1.5 to 7.x-1.8 (I executed the database updates and everything looked good in the drush output); however when I went to the fieldable_panels_panes administration page I wasn't able to see the Default bundle "Fieldable Panel Pane", and when I went to view a panel page that was using fpp items of that type, I got some notices about undefined index of fieldable_panel_pane.
I checked fieldable_panels_pane_type database table and the type fieldable_panels_pane was not present on the table.
Obviously my site is using the default bundle and thats why I experienced this bug.
I fixed the problem re-executing some code lines of the .install file, specifically
if (!variable_get('fieldable_panels_panes_skip_default_type', FALSE)) {
ctools_include('export');
$item = ctools_export_crud_new('fieldable_panels_pane_type');
$item->name = 'fieldable_panels_pane';
$item->title = t('Panels Pane');
ctools_export_crud_save('fieldable_panels_pane_type', $item);
}
I'll provide a patch with this fix inside the actual hook_update_N.
Comment | File | Size | Author |
---|---|---|---|
#9 | fieldable_panels_pages-bundle_is_absent-2688577-2-D7.patch | 772 bytes | rigoucr |
#6 | fieldable_panels_panes-n2688577-6.patch | 2.07 KB | DamienMcKenna |
| |||
#2 | fieldable_panels_pages-bundle_is_absent-2688577-1-D7.patch | 723 bytes | rigoucr |
Comments
Comment #2
rigoucr CreditAttribution: rigoucr as a volunteer and at Manatí commentedPatch attach
Comment #3
DamienMcKennaI think the bug happens because of this code in update 7108:
If there's one custom entity then it won't add the default one.
Does this fix the problem?
Comment #4
DamienMcKennaComment #5
DamienMcKennaComment #6
DamienMcKennaThis adds back the update script, and adds some logic so it's only added again if it didn't already exist.
Comment #8
DamienMcKennaCommitted. Thanks.
Comment #9
rigoucr CreditAttribution: rigoucr as a volunteer and at Manatí commentedHi DamienMcKenna,
My patch has project specific code, it was a mistake to send that patch like that. It shouldn't have made it to the release, for some reason it got there. I'm reopening the ticket.
Comment #11
DamienMcKennaOh you're kidding me! I should have caught that!
Thanks for noticing it and providing a fix, which I've already committed.