Pro 5.x Bug report: Parentheses in Quote element citation causes a warning

I have encountered a bug as follows:

I created a Quote element and set the following as the citation:
(A healthy body in a healthy mind)

Which then caused a warning to show up in the frontend (and in the builder after a refresh):
Warning: Cornerstone CSS parser unable to identify value type: (A healthy body in a healthy mind) in /********/themes/pro/cornerstone/includes/classes/Tss/Environment.php on line 139

Removing the parentheses from the citation fixed the issue and removed the warning.

Further to the above: replacing the parentheses with the relevant html entity codes ( and ) removes the warning and allows the parentheses to show up correctly in the front-end.

This is not ideal though and presumably the citation text needs to be parsed or escaped in some way to prevent special characters / parentheses from being seen as something else by the CSS parser.

EDIT: also just realised that I posted this in the Beta forum by accident. Probably better to have posted in the main support forum. Apologies!

Thank you! There’s actually nothing harmful going on here - all element values are made available to the generated CSS system, but the citation isn’t actually utilized in the styles. I’ve fixed this (by removing the warning) for the release, but it won’t be in beta1 which is going to be released today.

1 Like

Hi @alexander,
not that important, but there is a similar issue with a page I am working on right now. The warning/error -message is being output on the page’s body. I guess it’s not too bad, but I am interested in what is broken … and how I could fix it. Or how to get rid of the warning/error -message.

Warning: Cornerstone CSS parser unable to identify value type: calc( 32px + ( 50 - 32 ) * ( ( 100vw - 300px ) / ( 1400 - 300 ) ) ) in /kunden/469106_10117/webseiten/k3-d.org/wp-content/themes/pro/cornerstone/includes/classes/Tss/Environment.php on line 139 Warning: Cornerstone CSS parser unable to identify value type: calc( 16px + ( 18 - 16 ) * ( ( 100vw - 300px ) / ( 1400 - 300 ) ) ) in /kunden/469106_10117/webseiten/k3-d.org/wp-content/themes/pro/cornerstone/includes/classes/Tss/Environment.php on line 139 Warning: Cornerstone CSS parser unable to identify value type: calc( 22px + ( 28 - 22 ) * ( ( 100vw - 300px ) / ( 1400 - 300 ) ) ) in /kunden/469106_10117/webseiten/k3-d.org/wp-content/themes/pro/cornerstone/includes/classes/Tss/Environment.php on line 139 Warning: Cornerstone CSS parser unable to identify value type: calc( 28px + ( 40 - 28 ) * ( ( 100vw - 300px ) / ( 1400 - 300 ) ) ) in /kunden/469106_10117/webseiten/k3-d.org/wp-content/themes/pro/cornerstone/includes/classes/Tss/Environment.php on line 139 Warning: Cornerstone CSS parser unable to identify value type: calc( 14px + ( 16 - 14 ) * ( ( 100vw - 300px ) / ( 1400 - 300 ) ) ) in /kunden/469106_10117/webseiten/k3-d.org/wp-content/themes/pro/cornerstone/includes/classes/Tss/Environment.php on line 139

All the very best
Pavlo

Hi Pavlo,

I apologize for missing this one. Let me know if you’re still having any issues here and I can take a look.