I get the error "The website encountered an unexpected error. Please try again later." after clicking on Demonstrate block regions (Clean Blog) under the Structure > Block Layout.
Steps to reproduce:
1. Installed drupal 8.6.7 using composer.
2. Installed Bootstrap base theme using the command $ composer require drupal/bootstrap
3. Above command installed Bootstrap 8.x-3.16 inside ./themes/conrib folder.
4. Enabled the bootstrap theme.
5. Downloaded the clean_blog-8.x-2.1.tar.gz from theme page on 'drupal.org'.
6. Installed it through Appearance>Install new theme.
7. Enabled the theme and set it default.
8. Went to structure > block layout. Clicked on the Demonstrate block regions (Clean Blog) link.
9. Getting the error "The website encountered an unexpected error. Please try again later." .
I am attaching the screenshot of the problem.
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff_5-12.txt | 1.21 KB | sarvjeetsingh |
#12 | demonstrate_block_regions_fix-3026693-12.patch | 2.58 KB | sarvjeetsingh |
#8 | After_Patch.png | 52.42 KB | divya.sejekan |
#8 | before_patch.png | 14.06 KB | divya.sejekan |
#5 | demonstrate-block-regions-fix.patch | 1.15 KB | rohittiwari |
Comments
Comment #2
JayKandariThis is the error thrown:
Comment #3
JayKandariComment #4
rohittiwari CreditAttribution: rohittiwari as a volunteer commentedI can work on this @JayKAndari
Comment #5
rohittiwari CreditAttribution: rohittiwari as a volunteer commentedDemonstrate block regions loads the hook_preprocess_page, with generated inline_templates. The behavior which was coded in hook_preprocess_page would not work on the demo block page needed to handle it with proper validations. Created patch which takes care of validation
Comment #6
rohittiwari CreditAttribution: rohittiwari as a volunteer commentedComment #7
divya.sejekan CreditAttribution: divya.sejekan at QED42 commentedComment #8
divya.sejekan CreditAttribution: divya.sejekan at QED42 commented@rohittiwari
Applied patch : demonstrate-block-regions-fix.patch , comment #5
Testing steps:
1. Install and set the theme
2. In Block Layout > Demonstrate block regions (Clean Blog)
Observation :
1. Issue of Demonstrate link not working - Fixed. Now the block layout is visible
Before applying patch:
After Applying patch:
Issue : All the regions in block layout are not highlighted , Only navigation region is highlighted.
Comment #9
divya.sejekan CreditAttribution: divya.sejekan at QED42 commentedComment #10
divya.sejekan CreditAttribution: divya.sejekan at QED42 commentedComment #11
sarvjeetsingh CreditAttribution: sarvjeetsingh as a volunteer and at QED42 for Drupal India Association commentedComment #12
sarvjeetsingh CreditAttribution: sarvjeetsingh as a volunteer and at QED42 for Drupal India Association commentedupdated patch to display used regions in block Layout.
please review.
Comment #13
rohittiwari CreditAttribution: rohittiwari as a volunteer commentedComment #15
JayKandariLooks good. Committed & pushed to 3.x. Thank you all for contributions.