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

#   Checkout shows Hikashop error on login page

##

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

Less More

- Posts: 24
- Thank you received: 4
-
-

8 years 2 months ago [\#297386](#297386) by [beemerrider](/forum/user/906-beemerrider "View beemerrider's Profile")  *[Checkout shows Hikashop error on login page](/forum/27-checkout/895624-checkout-shows-hikashop-error-on-login-page#297386 "-- url of the page with the problem -- :   buttonshanks.com/products/6mm-shanks/checkout/task-show/cid-2  -- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31 -- Browser(s) name and version -- : Chrome 65 -- Error-message(debug-mod must be tuned on) -- : Hikashop error:  function hikashopToggleFields(new&#95;value, namekey, field&#95;type, id, prefix) { if(!window.hikashop) return false; return window.hikashop.toggleField(new&#95;value, namekey, field&#95;type, id, prefix); } window.hikashop.ready(function() { if(!document.formvalidator) return; var container = document.getElementById('hikashop&#95;checkout&#95;login&#95;2&#95;0'); if(container) document.formvalidator.attachToForm(container); });  No error in the Joomla Debug console  Appears that the guest checkout works and the user can purchase products. But this error comes up and scares users off and off course the error should not be there.")* was created by *[beemerrider](/forum/user/906-beemerrider "View beemerrider's Profile")*

-- url of the page with the problem -- : [ buttonshanks.com/products/6mm-shanks/checkout/task-show/cid-2](https://buttonshanks.com/products/6mm-shanks/checkout/task-show/cid-2)
-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.0.31
-- Browser(s) name and version -- : Chrome 65
-- Error-message(debug-mod must be tuned on) -- : Hikashop error:

function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } window.hikashop.ready(function() { if(!document.formvalidator) return; var container = document.getElementById('hikashop_checkout_login_2_0'); if(container) document.formvalidator.attachToForm(container); });

No error in the Joomla Debug console

Appears that the guest checkout works and the user can purchase products. But this error comes up and scares users off and off course the error should not be there.  [ ![loginguestpage.jpg](/forum/attachment/44690) ](/forum/attachment/44690 "...nguestpage.jpg")

- [ ![loginguestpage.jpg](/forum/attachment/44690) ](/forum/attachment/44690 "...nguestpage.jpg") [ ](/forum/attachment/44690?download=1 "...nguestpage.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTYyNC1jaGVja291dC1zaG93cy1oaWthc2hvcC1lcnJvci1vbi1sb2dpbi1wYWdlP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

8 years 2 months ago [\#297398](#297398) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Checkout shows Hikashop error on login page](/forum/27-checkout/895624-checkout-shows-hikashop-error-on-login-page#297398 "-- url of the page with the problem -- :   buttonshanks.com/products/6mm-shanks/checkout/task-show/cid-2  -- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12 -- PHP version -- : 7.0.31 -- Browser(s) name and version -- : Chrome 65 -- Error-message(debug-mod must be tuned on) -- : Hikashop error:  function hikashopToggleFields(new&#95;value, namekey, field&#95;type, id, prefix) { if(!window.hikashop) return false; return window.hikashop.toggleField(new&#95;value, namekey, field&#95;type, id, prefix); } window.hikashop.ready(function() { if(!document.formvalidator) return; var container = document.getElementById('hikashop&#95;checkout&#95;login&#95;2&#95;0'); if(container) document.formvalidator.attachToForm(container); });  No error in the Joomla Debug console  Appears that the guest checkout works and the user can purchase products. But this error comes up and scares users off and off course the error should not be there.")*

Hi,

The issue, is that you have edited one of the view files of the login view of the checkout system, but you have a security system on your website/web server which detected the javascript of the view file as potentially harmful and added some dashes in the script tag of the javascript code in order to deactivate it.
These dashes shouldn't be here: [ monosnap.com/file/mnE0ZCp9AmE1Yt5rEg1RkOfirqm8mm](https://monosnap.com/file/mnE0ZCp9AmE1Yt5rEg1RkOfirqm8mm)
So you need to remove your view override and if you need to redo it, you'll have to either deactivate that security system temporarily, or do the override manually by copying the view file from the core of HikaShop to the template's override folder at the correct place:
[ docs.joomla.org/How\_to\_override\_the\_outp...rom\_the\_Joomla!\_core](https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core)

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

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