[Skip to main content](#vessel-content)

#   Comma in category causes title truncation.

##

- **[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")**
- [![andylinde's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28325-andylinde "View andylinde's Profile") Topic Author
- [ Offline](/forum/user/28325-andylinde)

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 11 months ago -  12 years 11 months ago [\#132614](#132614) by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile")  *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#132614 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")* was created by *[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")*

Hello,

It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.

Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.

I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.

Screenshots attached!

-- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com_hikashop&amp;ctrl=category
-- HikaShop version -- : Business 2.2.2
-- Joomla version -- : 3.2.0
-- PHP version -- : 5.3.2
-- Browser(s) name and version -- : Chrome Beta 32
-- Error-message(debug-mod must be tuned on) -- : None thrown

- [ ![hfc3ec46.jpg](/forum/attachment/13701) ](/forum/attachment/13701 "hfc3ec46.jpg") [ ](/forum/attachment/13701?download=1 "hfc3ec46.jpg")

Last edit: 12 years 11 months ago by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 11 months ago [\#132628](#132628) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#132628 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")*

Hi,

Thanks for the report.
Please edit the file **administrator/components/com\_hikashop/classes/category.php** and replace Code:

$val = str_replace(' ','_',strtoupper($category-&gt;category_name)); $rows[$k]-&gt;translation = JText::_($val);

By Code:

$val = str_replace(array(' ',','),'_',strtoupper($category-&gt;category_name)); $rows[$k]-&gt;translation = JText::_($val);

It will fix the problem.
We will include this fix in the next HikaShop packages.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")**
- [![andylinde's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28325-andylinde "View andylinde's Profile") Topic Author
- [ Offline](/forum/user/28325-andylinde)

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 11 months ago [\#132964](#132964) by [andylinde](/forum/user/28325-andylinde "View andylinde's Profile")  Replied by *[andylinde](/forum/user/28325-andylinde "View andylinde's Profile")* on topic *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#132964 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")*

Sounds good. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tinadevi](/forum/user/32504-tinadevi "View tinadevi's Profile")**
- [![tinadevi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32504-tinadevi "View tinadevi's Profile")
- [ Offline](/forum/user/32504-tinadevi)

Less More

- Posts: 12
- Thank you received: 1
-
-

12 years 3 months ago [\#165058](#165058) by [tinadevi](/forum/user/32504-tinadevi "View tinadevi's Profile")  Replied by *[tinadevi](/forum/user/32504-tinadevi "View tinadevi's Profile")* on topic *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#165058 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")*

Hi,

I have same problem in HikaShop version 2.3.1 business. Please advise.

Thank you
Tina

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86309
- Thank you received: 14274
-
-

12 years 3 months ago [\#165067](#165067) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#165067 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")*

Hi,

This patch has been included in HikaShop since then. So the problem is probably different even though the result is the same.
Could you provide a link to the page with the issue and a screenshot of the category options so that we can analyze the issue you have ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tinadevi](/forum/user/32504-tinadevi "View tinadevi's Profile")**
- [![tinadevi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32504-tinadevi "View tinadevi's Profile")
- [ Offline](/forum/user/32504-tinadevi)

Less More

- Posts: 12
- Thank you received: 1
-
-

12 years 3 months ago [\#165158](#165158) by [tinadevi](/forum/user/32504-tinadevi "View tinadevi's Profile")  Replied by *[tinadevi](/forum/user/32504-tinadevi "View tinadevi's Profile")* on topic *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#165158 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")*

Hi Nicolas,

Actually, I feel a bit silly wasting your time with this. The problem is only in the admin area. Here are the screenshots.

No Comma

[ ![h5c8f5b5.jpg](/forum/attachment/18643) ](/forum/attachment/18643 "h5c8f5b5.jpg")

With Comma

[ ![hb55cf60.jpg](/forum/attachment/18644) ](/forum/attachment/18644 "hb55cf60.jpg")

- [ ![h5c8f5b5.jpg](/forum/attachment/18643) ](/forum/attachment/18643 "h5c8f5b5.jpg") [ ](/forum/attachment/18643?download=1 "h5c8f5b5.jpg")
- [ ![hb55cf60.jpg](/forum/attachment/18644) ](/forum/attachment/18644 "hb55cf60.jpg") [ ](/forum/attachment/18644?download=1 "hb55cf60.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#165159](#165159) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Comma in category causes title truncation.](/forum/3-bug-report/863644-comma-in-category-causes-title-truncation#165159 "Hello,  It seems that when you add a comma in a category title, it causes the title to be truncated at the comma. It also causes the title to display in all caps.  Interestingly, the title still seems to be saved correctly, as I can go in and edit it. If I remove the comma, the error corrects itself.  I don't know if other punctuation causes this, though I have used an ampersand (&amp;) and slash (/) in other category titles without issue.  Screenshots attached!  -- url of the page with the problem -- : non-public site, but the path is ...administrator/index.php?option=com&#95;hikashop&amp;ctrl=category -- HikaShop version -- : Business 2.2.2 -- Joomla version -- : 3.2.0 -- PHP version -- : 5.3.2 -- Browser(s) name and version -- : Chrome Beta 32 -- Error-message(debug-mod must be tuned on) -- : None thrown")*

Hi,

Thanks to update to the version 2.3.2 available from our website.

Regarding your issue, don't you have the category displayed on frontend ? In a menu, or module ?
If it is displayed, is the name correctly displayed ?

Else we will need a backend access in order to see what is happening directly on your website.
You can send it via pm, don't forget to give the link to this topic.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NjM2NDQtY29tbWEtaW4tY2F0ZWdvcnktY2F1c2VzLXRpdGxlLXRydW5jYXRpb24/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.107 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
