Problem/Motivation
Error message
User warning: Invalid placeholder (!block) with string: "The Text Resize module creates a block on the page that can be used by your site visitors to quickly and easily adjust the sizing of text as it displays for them. In order to enable the functionality of the Text Resize module, you will need to make sure that you have enabled the Text Resize block on the blocks page. You will also probably want to configure the behavior of the module at the administration pages listed at the bottom of this page." in Drupal\Component\Render\FormattableMarkup::placeholderFormat() (line 245 of core/lib/Drupal/Component/Render/FormattableMarkup.php).
Steps to reproduce
Clean install of the module on Drupal 10.0.9 with Claro theme
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | warning_text_resize.png | 371.85 KB | raveen_thakur51 |
Issue fork text_resize-3360624
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
dhruv.mittal commentedCan you provide the screenshot because I have installed the module in drupal 10 and I'm not getting any error message
Comment #4
raveen_thakur51 commentedYes, There is a warning on /admin/help/text_resize path. Attaching screenshot as well.
Infact On click of link, It was showing as Page not found
In your code, you're using !block, which was allowed in older versions of Drupal (Drupal 7), but is no longer valid. It needs to be replaced !block with @block or :block.
I have added an MR! , Please review & Thank You
Comment #6
raveen_thakur51 commentedComment #7
kopeboyThat fixed the issue, thank you!
Comment #8
vitaliyb98 commented+1 RTBC
Comment #9
vitaliyb98 commentedMerged, thanks!