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

#   0 - syntax error, unexpected '}'

##

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

Less More

- Posts: 59
- Thank you received: 2
-
-

9 years 6 months ago [\#270065](#270065) by [avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")  *[0 - syntax error, unexpected '}'](/forum/27-checkout/890351-0-syntax-error-unexpected#270065 "-- url of the page with the problem -- :   balancedequine.com.au/theshop/checkout.html  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.19 -- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110 -- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'  I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors: checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:82 checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:115 checkout.html Failed to load resource: the server responded with a status of 500 () Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){ Line 115 shows window.Oby.registerAjax(, function(params){ Both of these lines finish with a { but this is opposite to the error message which shows that the error is } If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve")* was created by *[avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")*

-- url of the page with the problem -- : [ balancedequine.com.au/theshop/checkout.html](https://balancedequine.com.au/theshop/checkout.html)
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.0
-- PHP version -- : 7.0.19
-- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110
-- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'

I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors:
checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined
at checkout.html:82
checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined
at checkout.html:115
checkout.html Failed to load resource: the server responded with a status of 500 ()
Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){
Line 115 shows window.Oby.registerAjax(, function(params){
Both of these lines finish with a { but this is opposite to the error message which shows that the error is }
If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDM1MS0wLXN5bnRheC1lcnJvci11bmV4cGVjdGVkP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

9 years 6 months ago [\#270067](#270067) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[0 - syntax error, unexpected '}'](/forum/27-checkout/890351-0-syntax-error-unexpected#270067 "-- url of the page with the problem -- :   balancedequine.com.au/theshop/checkout.html  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.19 -- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110 -- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'  I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors: checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:82 checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:115 checkout.html Failed to load resource: the server responded with a status of 500 () Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){ Line 115 shows window.Oby.registerAjax(, function(params){ Both of these lines finish with a { but this is opposite to the error message which shows that the error is } If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve")*

Hi,

Unfortunately, we can't help with the information you provided:
- Your website is in maintenance and thus we can't reproduce the problem and analyze the situation.
- The javascript error indicates a problem with the return of an AJAX call being erroneous. The javascript error itself is just happening because the return of the AJAX call is erroneous. So I don't think that the problem comes from the javascript code but something else and trying to fix the javascript won't help you.
- The function registerAjax is a standard function of HikaShop's main javascript file in media/com_hikashop/js/hikashop.js
"Cannot read property 'registerAjax' of undefined" indicates that the hikashop.js was not loaded. Either because the file has been removed or its attributes or the way you configured the server doesn't allow the browser to retrieve it.

That's all we can say without being able to see the problem.

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

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

Less More

- Posts: 59
- Thank you received: 2
-
-

9 years 6 months ago [\#270128](#270128) by [avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")  Replied by *[avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")* on topic *[0 - syntax error, unexpected '}'](/forum/27-checkout/890351-0-syntax-error-unexpected#270128 "-- url of the page with the problem -- :   balancedequine.com.au/theshop/checkout.html  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.19 -- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110 -- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'  I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors: checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:82 checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:115 checkout.html Failed to load resource: the server responded with a status of 500 () Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){ Line 115 shows window.Oby.registerAjax(, function(params){ Both of these lines finish with a { but this is opposite to the error message which shows that the error is } If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve")*

Hi Nicolas,
Have sent you a private message with details of log in so that you can access the site. I have tried restoring the site back to 11th of May, last backup and tried to restore the database tables from phpmyadmin backup yesterday but this resulted in a fatal 0 - Call to undefined method JApplicationSite::isClient() error and would not display Joomla front or backend. Since then, I have restored the backup I took after putting the site down for maintenance. This has returned the original problem so I'm hoping that you can give me some direction as to what has gone wrong or what we can do to fix the problem. I have purchased the latest version of Hikashop yesterday and installing it resulted in the same issue so if the site is using the earlier version, it makes no difference to upgrade it and I will upgrade as soon as things are running again. Hoping you can make something out of this, Steve

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDM1MS0wLXN5bnRheC1lcnJvci11bmV4cGVjdGVkP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

9 years 6 months ago [\#270141](#270141) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[0 - syntax error, unexpected '}'](/forum/27-checkout/890351-0-syntax-error-unexpected#270141 "-- url of the page with the problem -- :   balancedequine.com.au/theshop/checkout.html  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.19 -- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110 -- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'  I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors: checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:82 checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:115 checkout.html Failed to load resource: the server responded with a status of 500 () Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){ Line 115 shows window.Oby.registerAjax(, function(params){ Both of these lines finish with a { but this is opposite to the error message which shows that the error is } If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve")*

Hi,

Unfortunately, I was not able to login with the access you provided:
[ monosnap.com/file/PQBkQcgNCHtqAdAHaGfqfkitcRuvvc](https://monosnap.com/file/PQBkQcgNCHtqAdAHaGfqfkitcRuvvc)
Please double check the access.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5MDM1MS0wLXN5bnRheC1lcnJvci11bmV4cGVjdGVkP3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14326
-
-

9 years 6 months ago [\#270175](#270175) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[0 - syntax error, unexpected '}'](/forum/27-checkout/890351-0-syntax-error-unexpected#270175 "-- url of the page with the problem -- :   balancedequine.com.au/theshop/checkout.html  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.19 -- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110 -- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'  I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors: checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:82 checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:115 checkout.html Failed to load resource: the server responded with a status of 500 () Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){ Line 115 shows window.Oby.registerAjax(, function(params){ Both of these lines finish with a { but this is opposite to the error message which shows that the error is } If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve")*

Hi

I was now able to login and could see the error.
I was even able to get the callstack: [ monosnap.com/file/BZbVTBGD4Ryz7yx5zQIuTR6w52oyCE](https://monosnap.com/file/BZbVTBGD4Ryz7yx5zQIuTR6w52oyCE)
You said that you had HikaShop 3.0.1 but you actually have the 2.6.2. Please provide accurate information.

Also, I found the issue. It comes from a customization you did. You've moved the line:
{address_title} {address_firstname} {address_lastname}
before the :
?&gt;
in the "address_template" view file:
[ monosnap.com/file/OVRwrJdlAQWbez4mH6VkHYahkuhCKT](https://monosnap.com/file/OVRwrJdlAQWbez4mH6VkHYahkuhCKT)
This creates an invalid PHP file and thus breaks the display of the page.
Remove the customization on that view file via the menu Display&gt;Views and that will fix the problem.

The following user(s) said Thank You: [avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")

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

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

Less More

- Posts: 59
- Thank you received: 2
-
-

9 years 6 months ago [\#270220](#270220) by [avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")  Replied by *[avonrivercs](/forum/user/38726-avonrivercs "View avonrivercs's Profile")* on topic *[0 - syntax error, unexpected '}'](/forum/27-checkout/890351-0-syntax-error-unexpected#270220 "-- url of the page with the problem -- :   balancedequine.com.au/theshop/checkout.html  -- HikaShop version -- : 3.0.1 -- Joomla version -- : 3.7.0 -- PHP version -- : 7.0.19 -- Browser(s) name and version -- : Firefox 53.03 and Chrome 58.0.3029.110 -- Error-message(debug-mod must be tuned on) -- : 0 - syntax error, unexpected '}'  I am getting this message 0 - syntax error, unexpected '}' when going to the checkout. This began about 11:00 this morning and I can't understand how it happened. Checking the sources in Chrome, shows that there are 3 errors: checkout.html:82 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:82 checkout.html:115 Uncaught TypeError: Cannot read property 'registerAjax' of undefined at checkout.html:115 checkout.html Failed to load resource: the server responded with a status of 500 () Looking at the line numbers, line 82 shows window.Oby.registerAjax(, function(params){ Line 115 shows window.Oby.registerAjax(, function(params){ Both of these lines finish with a { but this is opposite to the error message which shows that the error is } If the curly bracket on the ends of the respective lines is the problem, where do I find the file to edit and remove these brackets? It tells me that the file is in theshop/checkout.html, but for the life of me I can't find this, or am I going about this all wrong? Thanks in advance for any help with this, Steve")*

Hi Nicolas,
Thank you for that, not sure how that happened but all good now. I did purchase the latest version of Hikashop and I did install it like I said in the PM but it didn't fix the issue so I did a restore back to the original version where the issue showed. I will re-install version 3.0.1 as soon as I get a chance, from what I saw before, it looks like it changes the CSS of Hikashop so will need to address that when I upgrade. Again, a big thank you to the team at Hikashop for their work in this issue. All the best,
Steve

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

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

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