Capitalized Loop etc. change into Lower Case
-
Please see this screenshot:
https://share.cleanshot.com/vyCjqfbt
In the Tangible → Templates capitalized Loop etc. change into lower case when I update or publish the template. It’s been happening since day 1 when I started using L&L.
Am I missing something here?
The page I need help with: [log in to see the link]
-
Hi Gaurav, this is pretty weird! I have a hunch that this is a compatibility issue with another plugin (probably one that includes a code editor powered by Codemirror). I’ll need the following information (some of which can be copy-pasted from the L&L settings support tab) to replicate the issue on my end so we can narrow down the issue:
- PHP version
- WordPress version
- L&L version
- Active Theme
- List of installed plugins
If you’re amenable to it, you could try disabling plugins one-by-one and see if you can pinpoint one that’s causing the behavior. It would make testing on our end a lot easier!
I’m noticing in your screen capture that your
<Field />
tags are also lowercase. Are they also impacted by the bug?Thanks in advance for the extra details!
Julia @ Team Tangible
Yes. <Field> etc are also impacted. In fact all code turns into lowercase.
I did these:
- Deactivated all plugins except L&L but the code still converted to lower case.
- Changed theme to TT3 same issue
- Set up a new site on the same host and configuration the error didn’t show there. Somehow the issue is only with https://gauravtiwari.org and not on my other sites.
I am totally confused now. Is there a way I clean install the plugin?
If this helps, here are the plugins that I am using:
### wp-plugins-active (31) ### AAWP: version: 3.19.2, author: AAWP, Auto-updates disabled Advanced Custom Fields: version: 6.0.7, author: WP Engine, Auto-updates disabled Calculator Builder | CalcHub: version: 1.3, author: CalcHub, Auto-updates disabled Code Snippets Pro: version: 3.3.0, author: Code Snippets Pro, Auto-updates disabled Crypto Price Widgets - CryptoWP: version: 1.3.3, author: Alex Mangini, Auto-updates disabled Custom Post Type UI: version: 1.13.4, author: WebDevStudios, Auto-updates disabled Dynamic Month & Year into Posts: version: 1.3.1, author: Gaurav Tiwari, Auto-updates disabled EWWW Image Optimizer: version: 6.9.3, author: Exactly WWW, Auto-updates disabled FluentSMTP: version: 2.2.4, author: FluentSMTP & WPManageNinja Team, Auto-updates disabled GenerateBlocks: version: 1.7.3, author: Tom Usborne, Auto-updates disabled GenerateBlocks Pro: version: 1.5.2, author: Tom Usborne, Auto-updates disabled HTML Forms: version: 1.3.26, author: ibericode, Auto-updates disabled HTML Forms Premium: version: 1.0.13, author: ibericode, Auto-updates enabled Instant Indexing: version: 1.1.16, author: Rank Math, Auto-updates disabled Jetpack: version: 11.9.1, author: Automattic, Auto-updates disabled Kadence Blocks - PRO Extension: version: 1.7.24, author: Kadence WP, Auto-updates disabled Kadence Blocks – Gutenberg Blocks for Page Builder Features: version: 3.0.24, author: Kadence WP, Auto-updates disabled Link Whisper: version: 2.2.0, author: Link Whisper, Auto-updates disabled MD Icons into Block Editor: version: 1.0.0, author: Gaurav Tiwari, Auto-updates disabled Rank Math SEO: version: 1.0.110, author: Rank Math, Auto-updates enabled Rank Math SEO PRO: version: 3.0.32, author: Rank Math, Auto-updates enabled Redirection: version: 5.3.9, author: John Godley, Auto-updates disabled Reusable Blocks Extended: version: 0.9.1, author: audrasjb, Auto-updates disabled Shortcoder - Pro: version: 6.1, author: Aakash Chakravarthy, Auto-updates enabled TablePress: version: 2.0.4, author: Tobias B?thge, Auto-updates disabled TablePress Extension: Responsive Tables: version: 1.8, author: Tobias B?thge, Auto-updates disabled Tangible: Loops & Logic: version: 3.1.7, author: Team Tangible, Auto-updates disabled ThirstyAffiliates: version: 3.10.14, author: Caseproof, Auto-updates disabled ThirstyAffiliates Pro - Basic: version: 1.7.14, author: Caseproof, Auto-updates disabled Wicked Folders Pro: version: 2.23.12, author: Wicked Plugins, Auto-updates disabled WP Rocket: version: 3.12.5.3, author: WP Media, Auto-updates disabled
Hi @gauravtiwari – Thanks for reporting the issue.
Set up a new site on the same host and configuration the error didn’t show there. Somehow the issue is only with https://gauravtiwari.org and not on my other sites.
That’s weird that it’s only happening on this specific site, how the issue is still there when you disable all plugins, but you’re not seeing it on a fresh new site.
It might have something to do with user roles. Admin users are supposed to be able to edit any HTML, including L&L templates, but other user roles have restrictions like what HTML tags are allowed, or no HTML at all. Maybe there’s a custom user role or permission that forces template HTML to be processed so that all tags become lowercase. But, looking through your list of plugins, I don’t see what could be doing that – and in any case, the issue is still there with all plugins disabled. Hmm..
Another possibility: in your
wp-config.php
, do you have the constantDISALLOW_UNFILTERED_HTML
set to true? That affects admin users too, apparently, and it could be applying some filter to the template content.Well, well, well. You wouldn’t believe what causes the issue.
I had enabled WordPress should correct invalidly nested XHTML automatically and that was the reason behind this issue. Can you try enabling this on your end and see if the same happens?
Wow, I’d never heard of this site option. I don’t see it on my local site under Settings -> Writing, and looking in the code of WordPress itself, the option is only shown if the database was initially older than some version. Same with option “use smilies”.
It’s a really old site option added in WP 0.71 (!), and all the references I can find in the WP issue tracker are more than 10 years old. The oldest issue being 18 years old, where Matt himself fixed it: “WordPress should correct invalidly nested XHTML automatically” feature messes with posting code.
..OK, I tracked down the exact Git commit when this site option was removed: Commit 231c737, “On the Writing Options screen, hide the Balance Tags and Convert Smilies options on new installs.”. This was in 2015, about 8 years ago.
So I think you just ran into this obscure little thing that messes with the HTML. If you could please keep that option off, can we consider this resolved? (EDIT: Oh I see you’ve marked it resolved. Thanks!)
The site itself is 14 years old (switched a couple of domains, but the database remained the same). So, that may be a reason. Thanks a lot for your time. I really appreciate it.
PS: I cannot see a donate button on repo page. Is there a way I can support the development?
- This reply was modified 1 year, 8 months ago by Gaurav Tiwari.
Hi Gaurav, I’m glad that you were able to track down the issue! We don’t accept donations to support the development of L&L (the sentiment is much appreciated though), but we will eventually release a paid addon with extra integrations for plugins like WooCommerce. In the meantime the best way to support the plugin is to be part an active member of the community in our forum or Facebook group, and to participate in testing our in-beta block creation functionality ??
The site itself is 14 years old
Impressive! It’s probably why that site option was available.
Is there a way I can support the development?
Aside from issue reports like these, which are helpful in improving the plugin – it’d be great if you could spread the word and let people know about the plugin. We’re always looking for community engagement and discussion in the Discourse forum for L&L, and would love to have people participate in our beta testing program for L&L Pro and Tangible Blocks, which is based on the same template system.
I saw the nice review you’d written recently, much appreciated.
- The topic ‘Capitalized Loop etc. change into Lower Case’ is closed to new replies.