Trouble parsing <img src="./?a=234:v1" />

I have a page with multiple <img src="./?a=XXX"> elements and it's not being parse correctly. Of course, I could have just made I typo somewhere, but I've double-checked and am out of ideas.


The following code works.

    

[Infrared photograph of a soffit with missing insulation]



If I add a second image, parsing breaks.
    

[Infrared photograph of a soffit with missing insulation] [Infrared photograph of poor insulation in a ceiling]



The error is as follows:
    PHP Notice
    File:	[SYSTEM_ROOT]/data/private/assets/bodycopy_div/0014/68/content_file.php	Line:	14
    Message:	Undefined index: 234:v1" alt="[Infrared photograph of a soffit with missing insulation]"/>


The outputted HTML is as follows:
    

">[Infrared photograph of poor insulation in a ceiling]



However, the image appears correctly in the Asset Edit Content pane (with the locks released).

Any tips would be appreciated.

When you are only adding one image, what does the outputted code look like? Does it give you a full path to the image and href? Or is it still a ./?a= style link in the source?

When I just add one image, it outputs the full URL for a href attribute, and ./?a= for the img src attribute:

    

[Infrared photograph of a soffit with missing insulation]


[edit: fixed typo in outputted HTML code]

[quote]When I just add one image, it outputs the full URL for a href attribute, and ./?a= for the img src attribute:

    

img src="./?a=234:v1" alt="[Infrared photograph of a soffit with missing insulation]"/>

[/quote]

Strange, your image tag in the HTML is broken.

Can you verify that the HTML is correct when you are saving it into Matrix? It seems like the code is breaking somehow. Could you also try this in another location in your site just to test it?

[quote]Strange, your image tag in the HTML is broken.


Can you verify that the HTML is correct when you are saving it into Matrix? It seems like the code is breaking somehow. Could you also try this in another location in your site just to test it?[/quote]



Whoops, I thought I copied and pasted it, but I must have retyped it. There is a < in front of the img in the actual output.



As another note, if I put the second link and image into a separate div created with MySource Matrix (not an embedded div inside the content div), it works. Just not in the same div.

[quote]Whoops, I thought I copied and pasted it, but I must have retyped it. There is a < in front of the img in the actual output.


As another note, if I put the second link and image into a separate div created with MySource Matrix (not an embedded div inside the content div), it works. Just not in the same div.[/quote]



I can confirm that this is happening on my 3.20.1 system as well. But, it only happens when using an image variety (:v1 or whatever) but not when using just the normal image.



This sounds like a bug to me, could you log it in the bug tracker?