This is exactly the module I needed in trying to stay away from external analytics on a highly secure site.
However, I must be doing something wrong.
The Visitor block is showing markup instead of the rendered HTML.
For example, this is what I see on the page:
Total Visitors: <em class="placeholder">17</em>
Unique Visitors: <em class="placeholder">1</em>
Registered Users: <em class="placeholder">4</em>
Last Registered User: <a title="View user profile." href="/user/11" class="username">peter</a>
Published Nodes: <em class="placeholder">13</em>
Your IP: <em class="placeholder">[redacted]</em>
Since: <em class="placeholder">01/22/2024 - 09:33</em>
It's almost as if some of the HTML is escaped instead of being rendered.
Where would you look to find the issue?
I am using Bootstrap 5.3 (via Bootstrap5), as well as Drupal 10.2.2.
This particular block does not seem to have a twig template.
Any guidance would be greatly appreciated!
Thanks!
Comments
Comment #2
nour eldin essamComment #3
nour eldin essamComment #4
nour eldin essamComment #5
nour eldin essamComment #6
nour eldin essamComment #7
mahmoud barhouma commentedAn error occurred after applying the patch
InvalidArgumentException: $string ("7057153") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct(
Comment #8
mahmoud barhouma commentedComment #9
mahmoud barhouma commentedComment #10
mahmoud barhouma commentedComment #11
g-brodieiThanks for the patch, works fine on 2.16, just some nit picks I see here, need to add space for concatenation.
Comment #12
immaculatexavier commentedAs per #11 created patch by fixing the concatenation.
Kindly review
Comment #13
g-brodiei#12 applies cleanly to 2.x-dev, but the render array of 'Last registered user' still escapes html element, setting back to NW, thanks!
Comment #16
bluegeek9 commentedComment #19
bluegeek9 commentedThis issue was resolved. A new release, 8.x-2.17, will be made soon, May 31st.
This is an excellent opportunity to beta test the dev branch, and report any issues.
Contributors (5)
bluegeek9, roshni27, abhishek_gupta1, sarwan_verma, SandeepSingh199
Changelog
Issues: 32 issues resolved.
Changes since 8.x-2.16:
Bug
Feature
Task