Closed (fixed)
Project:
Panels
Version:
6.x-3.7
Component:
Plugins - layouts
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2010 at 14:50 UTC
Updated:
24 Aug 2010 at 19:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
codewatson commentedForgot to say this is with Drupal 6.17/Panels 3.7/Ctools 1.7
Comment #2
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 commentedThat's crazy. Have you run update.php? Try rerunning update 6308 for Panels which is what creates that table.
Comment #4
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 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 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 commentedDone: #878114: DB error on delete a panel layout
Comment #8
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 commentedThis patch is a shot in the dark but I bet does the trick.
Comment #10
merlinofchaos commentedYou'll need to make sure menu gets rebuilt after applying the patch.
Comment #11
codewatson commentedThat indeed did the trick
Comment #12
merlinofchaos commentedCommitted!