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

#   Bug in the comments form and address register fiel

##

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

Less More

- Posts: 57
- Thank you received: 5
-
-

13 years 4 months ago [\#110872](#110872) by [Hristov](/forum/user/12584-hristov "View Hristov's Profile")  *[Bug in the comments form and address register fiel](/forum/3-bug-report/84174-bug-in-the-comments-form-and-address-register-fiel#110872 "Hi Hika team,  I have noticed that whenever you use the apostrophe symbol or ' the comment fails and the message that is displayed is &quot;an error has occurred&quot;. The comments in hikashop are called votes but i refer to them as comments.  For example if you post - this is svens comment - it will succeed.  However - this is sven's comment - fails.  You can test it for yourself at   www.myfoodathome.nl . Just go to any product and try leave a comment with an apostrophe in it. ----- About the register field  This is more of a validation issue I believe. Since the address field is required I have been getting registrations with empty address fields as of late. I found out that if you just press space once the field validates as filled and registration will complete successfully. Since the field is specified as text in the back end I believe a space counts as a valid input, however practically it is still an empty field. More so you can complete the whole registration process just by typing spaces in all fields.  Is it possible to count space inputs as invalid field inputs?  Kind Regards,  Drago.")* was created by *[Hristov](/forum/user/12584-hristov "View Hristov's Profile")*

Hi Hika team,

I have noticed that whenever you use the apostrophe symbol or ' the comment fails and the message that is displayed is "an error has occurred". The comments in hikashop are called votes but i refer to them as comments.

For example if you post - this is svens comment - it will succeed.

However - this is sven's comment - fails.

You can test it for yourself at [ www.myfoodathome.nl](http://www.myfoodathome.nl). Just go to any product and try leave a comment with an apostrophe in it.

---

About the register field

This is more of a validation issue I believe. Since the address field is required I have been getting registrations with empty address fields as of late. I found out that if you just press space once the field validates as filled and registration will complete successfully. Since the field is specified as text in the back end I believe a space counts as a valid input, however practically it is still an empty field. More so you can complete the whole registration process just by typing spaces in all fields.

Is it possible to count space inputs as invalid field inputs?

Kind Regards,

Drago.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NDE3NC1idWctaW4tdGhlLWNvbW1lbnRzLWZvcm0tYW5kLWFkZHJlc3MtcmVnaXN0ZXItZmllbD90bXBsPW1hcmtkb3du) 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)
-

13 years 4 months ago [\#110987](#110987) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Bug in the comments form and address register fiel](/forum/3-bug-report/84174-bug-in-the-comments-form-and-address-register-fiel#110987 "Hi Hika team,  I have noticed that whenever you use the apostrophe symbol or ' the comment fails and the message that is displayed is &quot;an error has occurred&quot;. The comments in hikashop are called votes but i refer to them as comments.  For example if you post - this is svens comment - it will succeed.  However - this is sven's comment - fails.  You can test it for yourself at   www.myfoodathome.nl . Just go to any product and try leave a comment with an apostrophe in it. ----- About the register field  This is more of a validation issue I believe. Since the address field is required I have been getting registrations with empty address fields as of late. I found out that if you just press space once the field validates as filled and registration will complete successfully. Since the field is specified as text in the back end I believe a space counts as a valid input, however practically it is still an empty field. More so you can complete the whole registration process just by typing spaces in all fields.  Is it possible to count space inputs as invalid field inputs?  Kind Regards,  Drago.")*

Hi,

Regarding the simple quotes in a comment I just tried on your website and it's working fine.
I posted a comment on the product [ www.myfoodathome.nl/index.php/nl/ons-men...product/59-jambalaya](http://www.myfoodathome.nl/index.php/nl/ons-menu/week-25/product/59-jambalaya)
When posting the message was a thanks for post message.
Which browser are you using ?

For the registration fields, you will probably have to edit the file "components/com_hikashop/controllers/address.php" function "save()" and do a foreach on the variable $addressData and foreach Data do a trim() on it to remove the spaces before at the beginning of the string.

It require good PHP knowledges.

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

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

Less More

- Posts: 57
- Thank you received: 5
-
-

13 years 4 months ago [\#111010](#111010) by [Hristov](/forum/user/12584-hristov "View Hristov's Profile")  Replied by *[Hristov](/forum/user/12584-hristov "View Hristov's Profile")* on topic *[Bug in the comments form and address register fiel](/forum/3-bug-report/84174-bug-in-the-comments-form-and-address-register-fiel#111010 "Hi Hika team,  I have noticed that whenever you use the apostrophe symbol or ' the comment fails and the message that is displayed is &quot;an error has occurred&quot;. The comments in hikashop are called votes but i refer to them as comments.  For example if you post - this is svens comment - it will succeed.  However - this is sven's comment - fails.  You can test it for yourself at   www.myfoodathome.nl . Just go to any product and try leave a comment with an apostrophe in it. ----- About the register field  This is more of a validation issue I believe. Since the address field is required I have been getting registrations with empty address fields as of late. I found out that if you just press space once the field validates as filled and registration will complete successfully. Since the field is specified as text in the back end I believe a space counts as a valid input, however practically it is still an empty field. More so you can complete the whole registration process just by typing spaces in all fields.  Is it possible to count space inputs as invalid field inputs?  Kind Regards,  Drago.")*

Hi Xavier,

The prbolem occurs when I try it through google chrome and mobile safari. I guess it could be thorougout all webkit browsers. Try it through chrome and see that it will produce and error.

In firefox it works just fine as you noticed.

Kind Regards,

Drago

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NDE3NC1idWctaW4tdGhlLWNvbW1lbnRzLWZvcm0tYW5kLWFkZHJlc3MtcmVnaXN0ZXItZmllbD90bXBsPW1hcmtkb3du) 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)
-

13 years 4 months ago [\#111048](#111048) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Bug in the comments form and address register fiel](/forum/3-bug-report/84174-bug-in-the-comments-form-and-address-register-fiel#111048 "Hi Hika team,  I have noticed that whenever you use the apostrophe symbol or ' the comment fails and the message that is displayed is &quot;an error has occurred&quot;. The comments in hikashop are called votes but i refer to them as comments.  For example if you post - this is svens comment - it will succeed.  However - this is sven's comment - fails.  You can test it for yourself at   www.myfoodathome.nl . Just go to any product and try leave a comment with an apostrophe in it. ----- About the register field  This is more of a validation issue I believe. Since the address field is required I have been getting registrations with empty address fields as of late. I found out that if you just press space once the field validates as filled and registration will complete successfully. Since the field is specified as text in the back end I believe a space counts as a valid input, however practically it is still an empty field. More so you can complete the whole registration process just by typing spaces in all fields.  Is it possible to count space inputs as invalid field inputs?  Kind Regards,  Drago.")*

Hi,

Thanks for the report, we have fixed it on our end and it will be available in the next release which should arrive soon.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84NDE3NC1idWctaW4tdGhlLWNvbW1lbnRzLWZvcm0tYW5kLWFkZHJlc3MtcmVnaXN0ZXItZmllbD90bXBsPW1hcmtkb3du) 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.102 seconds

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

[](#top)
