Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm not sure if this is really a bug or by design however i seem to have a tab on the admin/build/panels/layouts page for every single layout i've created (see first image). Not sure the purpose of each tab though, when i click on them i go to a page like this: admin/build/panels/layouts/add-flexible:multi_3_column (see second image).
Strangely, if you edit the new layout, it seems like the layout thinks it is a panel itself, with the normal panels interface for adding content to the regions (see the bottom of image 2)?
Comment | File | Size | Author |
---|---|---|---|
#9 | 877810-add-flexible.patch | 763 bytes | merlinofchaos |
panels-tabs-page.jpg | 90.1 KB | codewatson | |
panels-layout-tabs.jpg | 70.1 KB | codewatson |
Comments
Comment #1
codewatson CreditAttribution: codewatson commentedForgot to say this is with Drupal 6.17/Panels 3.7/Ctools 1.7
Comment #2
codewatson CreditAttribution: codewatson commentedAck, went to delete the layout and get this:
user warning: Table 'database.panels_layout' doesn't exist query: DELETE FROM panels_layout WHERE name = 'erm' in /home2/globanf0/public_html/drupal6/sites/all/modules/ctools/includes/export.inc on line 189.
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThat's crazy. Have you run update.php? Try rerunning update 6308 for Panels which is what creates that table.
Comment #4
codewatson CreditAttribution: codewatson commentedI dont think its a lack of the table, i think that the query itself is not adding the prefix to the table, in this case i have a prefix of "d6_" yet the query is looking for 'database.panels_layout' (instead of database.d6_panels_layout), i ran into this error on the ctools custom content panes as well: #874052: Error on deleting a custom content pane from the ctools interface
Comment #5
codewatson CreditAttribution: codewatson commentedjust to confirm, the table exists and has the layouts i've created in it, however the delete query seems to be leaving off the table prefix
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedOk, can you file a separate issue on the delete query? Much easier to deal with when there is one item per issue.
Comment #7
codewatson CreditAttribution: codewatson commentedDone: #878114: DB error on delete a panel layout
Comment #8
codewatson CreditAttribution: codewatson commentedTo update this issue, i did a fresh drupal 6.17 install with panels 3.7 and ctools 1.7.
Created 2 panel layouts with a name of test and test2.
No extra tabs appeared
Cleared the cache at admin/settings/performance
2 extra "Add Flexible Layout" tabs appeared, both with ":layoutname" after the normal add flexible layout url (admin/build/panels/layouts/add-flexible)
so that gives:
admin/build/panels/layouts/add-flexible:test
and
admin/build/panels/layouts/add-flexible:test2
Comment #9
merlinofchaos CreditAttribution: merlinofchaos commentedThis patch is a shot in the dark but I bet does the trick.
Comment #10
merlinofchaos CreditAttribution: merlinofchaos commentedYou'll need to make sure menu gets rebuilt after applying the patch.
Comment #11
codewatson CreditAttribution: codewatson commentedThat indeed did the trick
Comment #12
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted!