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.
I'm encountering this error when I try to add any block to my zentrope sub theme.
Steps to recreate:
- used drush to download and install zentrope in my D7 site.
- used drush to create zentrope subtheme
- used drush to enable maximizr.
- created basic block with links.
- placed basic block in footer forth column. Saved.
- created a second basic block and placed in footer third column.
- on Save got error "An illegal choice has been detected. Please contact the site administrator."
- in debugging I discovered that I was able to save both first and second blocks to Zentrope base and other themes.
drush ins "Subtheme Name" "subtheme_machine_name"
drush zdl "subtheme_machine_name" "maximizr"
I've conducted a few searches but haven't found anything conclusive. I'm filing as a bug simply because it is so early in the site development that I'm assuming that it isn't custom work or conflicts. I'll continue my debug and report back if I isolate the issue. Meanwhile, I'll appreciate any pointers or assistance.
Comments
Comment #1
alexweber CreditAttribution: alexweber commentedThanks for the detailed error report.
Will look into it.
Comment #2
alexweber CreditAttribution: alexweber commentedComment #3
alexweber CreditAttribution: alexweber commented@cluther I've tried replicating this bug with no success.
Could you please try this again with 7.x-2.0-rc2 and confirm that it still happens?
Comment #4
greta_drupal CreditAttribution: greta_drupal commentedFor the record, I am getting this error, and I do not have Zentropy enabled.
Comment #5
alexweber CreditAttribution: alexweber commentedAwesome! :)
Comment #6
greta_drupal CreditAttribution: greta_drupal commentedUhhh, easy for you to say. (I am using Marinelli beta 11...are they brothers of another mother? Also using Display Suite.)
Comment #7
alexweber CreditAttribution: alexweber commented@greta_drupal Sorry I didn't mean to laugh at your problems, I'm just glad this isn't related to Zentropy! :)
Comment #8
greta_drupal CreditAttribution: greta_drupal commentedyeah, i got that. thought it was funny.
Comment #8.0
greta_drupal CreditAttribution: greta_drupal commentedcleaned up message formatting
Comment #9
JThan CreditAttribution: JThan commentedJust for documenting it here:
A permament workaround was found in this comment (#7)
https://www.drupal.org/node/2192685#comment-9022315
Basically, somehow the "main page content" block is missing in the subtheme. Jump to another theme, configure the block and add it to the content region in your subtheme. After that it should work fine.
Comment #10
andriyun CreditAttribution: andriyun commentedIn my case a have the same reason!
Error was caused by the lack of required block Main page content in Content region.
This block setting could be restored on this page:
/admin/structure/block/manage/system/main/configure
After restores all will be ok!
Please check your Main page content block configuration!
Comment #11
munge83 CreditAttribution: munge83 commented#10 Saved my day. Thanks @andriyun !