#705 Alt text deleting all copy after any punctuation

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Olivier on Monday, 23 March 2026 18:29 UTC

Alison Meeks

Hi Guys

Have been grooving along double checking the products that got moved over via CSV. Had to take a break due to illness and during that time there was a J2 update. Before the update adding the alt text details was no issues. Now anything after punctuation, in this case a ", deletes everything after upon save. NB: Using the article title as alt text.

There are others but this is a sample product with this behaviour. https://tools.alisonmeeks.com/products/p8-long-nose-plier-cushion-grip 

Side point adding additional images is big time consuming and frustrating. If you wish to test this as well choose any images on the above product. 

Thanks always for your help,

Alison

Olivier

Hello Alison,

I wish you well and I am very glad you are back :-)

I will look at it this afternoon and if there is something we broke in the last update, I will add it to the small update that was due also this week.

I will keep yoy posted!

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

Thanks so much Olivier

I guess that was a big assumption on my part but the update was the only change during that time. 

Ali 

Olivier

OK, here what I have checked:

  • all code in J2Commerce escapes the alt and title attributes so they cannot fail.
  • when there is no 'alt' attribute, the product name is used instead for that attribute (so you basically don't have to enter them).
  • it's the validation of the 'alt' field that fails on your site. However, adding the same alt text on my test site functions...
  • laborious image entry: this is fixed in the upcoming v6: drag and drop all at once, resized, optimized images. You won't remember hat annoying image entry ever again.

After investigation, there are several reasons for this kind of issue.

Your table may have wrong table or column encoding (it should be something like utf8mb4_unicode_ci).

That could actually happen after a database migration, MySQL 8 is stricter that previous versions.

Can you check the #__j2store_productimages table for it's structure? Thank you!

 

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

Hey Olivier 

I didn't expect it to auto alt text - just that prior to the last patch I could paste in the title including " and the whole text field would save. Pretty cool on it doing it automatically when it gets to 6. 

Just tested and the alt text is still crapping out after " is used. 

#__j2store_productimages - INNODB if that is what you mean. 

Super exciting on the photo manangement in 6.

Poke me with a stick if I've missed the point on this. 

Alison

Olivier

Hi Alison,

have you checked the data structure of #__j2store_productimages ? What is the encoding of the table and columns? I am looking for somthing like utf8mb4_unicode_ci. 

You can export the structure and show it in the post if you are more comfortable.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

Hey Olivier

I don't even know what you are talking about. I just want to be able to put in the alt text. I kind of thought that was why I provided a login. 

Alison

Olivier

Hi Alison, 

access to your site is not enough, I need to see how your database is set up :-) because most of the time, when data is not saving properly, it is because of a missing column (not here) or not properly structured one.

Do you know how to access your database (using phpMyAdmin)? If so, go to the table _j2store_productimages, check 'structure' and report that back to us. Thank you!

If not, we will try some other way.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

Hi Olivier

The main concern is the alt text being fixed. I can't burn more time with this not working. It went from working to not working after an update. There was no change in the database file during that time. I thought I had answered the question from the SQL DB but it is not a space I'm very comfortable in. Sorry 

This is the craziest J2 build I've ever done.

Ali

Olivier

Hi Alison,

I understand the frustration, especially when something that used to work suddenly doesn’t.
I haven’t been able to reproduce the issue on my own setup, but I did encounter it on a client’s site in version 4.0.19 (so it's older than the last version), so I’ll base my investigation on that environment. That will give me a reliable way to trace the cause.

I’m not asking questions to take up your time; I just want to make sure I’m not missing any detail that could help.

I’ll continue working on this and will only come back to you once I have a confirmed fix. If it turns out to be an issue in the extension itself, it will be included in the next release.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

May I ask why you haven't logged into my site to investigate? I'm on the latest release of J5 and the current release of J2Comm v 4.0.20 PRO that was just updated. I built on it as the J6 version wasn't available. 

 

Olivier

I actually did log into your site, two days ago.
Here’s what I did during that session:

  • Installed a diagnostic toolkit to review the J2Commerce database tables, then removed it afterward,
  • Copied the article you mentioned, edited it to test the behavior, and then deleted it,
  • And of course checked your site's information to try and replicate the issue.

I went to your website today to check the action logs, but that feature isn’t enabled on your site, so there’s no audit trail to confirm activity.

As mentioned above, the issue also happens in 4.0.19, so the latest 4.0.20 update is not the problem. I have resolved the issue, I am doing more testing right now.

And just as a reminder, you already have a simple workaround while I work on the fix: leave the alt text field empty. Since you’re using the title as the image’s alt text, J2Commerce automatically falls back to the title when the alt field is blank. By entering alt text manually, you’re actually giving yourself extra work for the same result.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

Thanks Olivier

I've also messaged Troy to get you the info you requested from the DB. 

 

Alison Meeks

Hi Olivier 

On with Bear - Have this info for you. The structure is fine and the encoding is fine. 

The root issue is when the article is examined the fields for alt has the " extra info stripped out even though it is correct in the DB. 

Please see the screen shots attached for your information.

Thanks for your assistance in this matter,

Ali

Olivier

Thanks Alsion for the update.

This should no longer be a problem in version 4.1.x of the extension, you can download it from our site or wait for the extension to appear in the Joomla extensions update section of your site (give it another couple days).

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Alison Meeks

Good morning Olivier

I downloaded the release and can confirm it fixed the issue. 

Many thanks,

Alison

Olivier

You are welcome, Alison, thanks for bringing this issue to our attention.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.