Possible Bug: Public page showing Matrix comments, empty metadata fields


(Douglas (@finnatic at @waikato)) #1

Matrix Version:

I think we may have hit a possible bug with Matrix, wondering if anyone has seen anything similar. The page in question is displaying Matrix comments in it’s source code e.g.

< !–@@ start: head @@-- >

and where there’s a metadata field that is empty those are also being shown:

<meta name="description" content="%metadata_field_qualification.Description% </blockquote> <p>I suspect we’ll need to log a support request, but just posting to the forums first (and Squiz NZ isn’t back at work until next week…)</p>

(Peter McLeod) #2

Hi

Is the Sys Config > Misc Settings > Strip Matrix Comments from Frontend? - set to Yes? (also guessing the addittional spaces in the example are so it is hidden in this forum).

If using a metadata design area to show the metadata - what are the ‘Show On Frontend’ settings for the metadata fields.

If they being printed using keywords like in your example then would need to use conditions or notempty keyword to show the whole meta element.

Thanks
Peter


(Douglas (@finnatic at @waikato)) #3

[quote=“PeterM, post:2, topic:9195”]
Sys Config > Misc Settings > Strip Matrix Comments from Frontend? - set to Yes? (also guessing the addittional spaces in the example are so it is hidden in this forum).[/quote]

Yes. Other pages in the same section of the site are showing fine, but one page is showing matrix keywords in place of rendered content, along with the Matrix design comments (from the design parse file) alongside the metadata fields.


(Douglas (@finnatic at @waikato)) #4

https://matrix.squiz.net/manuals/designs/chapters/design-asset says:

You can use the following comment syntax format to add notes within the Design code that won’t be printed on the front-end: <!–@@ Comment goes here @@–>

Given the “won’t be printed” I’m still inclined to suspect a design+page rendering bug that the page in question is triggering.

I’ll send in a support request to see if we can get this sorted.


(Bart Banda) #5

Yes, please do. Might be a specific way that that page is being printed, or just the comment part, that has snuck past the testing of that feature. Let us know how you go.


(Douglas (@finnatic at @waikato)) #6

Squiz NZ found and corrected a problem with a rest resource js asset. Seems when that failed it resulted in the undesirable display of design comments and empty metadata tags. I’ve suggested we get a squizmap bug, since it doesn’t seem ideal that a rest resource asset failure would trigger that.


(Douglas (@finnatic at @waikato)) #7

https://squizmap.squiz.net/matrix/10433