Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Blocks administration page is destroyed after enabling Modal forms module, showing all blocks as disabled, except
Navigation (module: user) and User login (module: user) , that show up as beeing in the "Content" region, even if they are not actually in there. More than this, the options for the regions are limited to "Content" and " none ".
Comment | File | Size | Author |
---|---|---|---|
#4 | modal_forms_block_admin_1786072_4.patch | 1.41 KB | dalin |
Comments
Comment #1
zet CreditAttribution: zet commentedAfter further review, i see the issue described above happens when there is a specific administration theme set up. So the blocks page display just that administration theme's blocks configuration, regardless clicking links for other themes blocks page configuration.
After disabling Modal forms module, everything goes back to normal.
Comment #2
cluke009 CreditAttribution: cluke009 commentedCould you let me know which theme you are using and perhaps add a screenshot
Comment #3
graysadler CreditAttribution: graysadler commentedI have the same issue using RootCandy admin theme. The issue appears to be related to hook_init and not returning when on admin urls.
For some reason I can't create a patch, but here's my code to fix it. First check if _modal_forms_doheader returns true and if not return:
and then in _modal_forms_doheader be sure to return true:
Comment #4
dalinMarking as critical since this can result in data loss if someone saves the block admin page while the page is in this broken state.
My problem was actually two-fold. I was dealing with the issue described in #3. But there was an additional problem where a WYSIWYG had mangled the "Deactivate modal forms on specific pages" field at /admin/settings/modal_forms (wrapping in p tags and replacing line breaks with spaces). So for other people dealing with this, be sure to check that as well.
Patch attached that instead moves the ctools calls to the bottom of
_modal_forms_doheader()
(Since we those are mandatory to make the whole thing work).Comment #5
frjo CreditAttribution: frjo commentedIt was user cluke009 that committed the D6 version but noting has happened after the first commit. If anyone is interested in taking over the D6 branch please let my know.
Comment #5.0
frjo CreditAttribution: frjo commentedtypo
Comment #6
aiphesi had this issue and just find the cause trouble : modal_forms on D6 multisite.
thanks for the patch.