Syntax errors in local language but not in english
Posted: Mon Apr 03, 2017 5:44 am
Hi,
So I'm building this webshop using OC 2.3.0.2, vQmod installed and Journal2 theme.
I'm using Norwegian as default language for the shop, and English as secondary (my intention is to disable english before go-live). Admin language is English. The host does not support cpanel, so all alterations in the folder structure happens through ftp.
Shop is in maintenance mode, the issues listed below appears also in "live" mode.
Now, I could until a couple of days back complete an order on both languages. But, now once I go (using Chrome browser) to a product page and hit "add to cart" a (Syntax error: Unexpected token) and in MS Edge (Syntax Error: Invalid character) appears.
And it pretty much lists that I have added a product to the cart... But the cart does not get updated until i hit F5. (In English, no problems)
Another funny thing, if I do not go to the product page, but click "add to cart" from the product grid - it works well in both languages!??
When I afterwards get to the checkout page, in Norwegian, regardless of how I got the product in the cart, it shows the same issues as above: in chrome (Syntax error: Unexpected token) and in MS Edge (Syntax Error: Invalid character), and apparently it cannot detect the zone-id/county area which is interconnected with the preferenced delivery country. In English, it lists all the zones in Norway (and in other countries) but in Norwegian, the dropdown menu for the zones is left empty.
So, I've spent many hours in trying to read through applicable/familiar topics on the forum, but none really helps. I believe that the issue in the product page and the checkout page is connected, but I can't really understand why and how.
I've tried to add a new API, not using the default, problem continues.
I've also tried to overwrite all the files in controller/checkout/ folder, with files I new worked back when there were no issues, but that doesn't help.
all applicable files in the path noted above, are of UTF-8 no BOM format, so there should not be an issue with that. (They are visible using the English language, so yeah it makes sense).
The thought has crossed my mind that I could perhaps change the locale settings to point to English, but then using the codes for the norwegian language, and replace all the files in the English language folder path with all the Norwegian ones, and then rename the language from English to Norwegian but I don't know if that will only create issues and if that really addresses the problem.
All help is highly appreciated!
So I'm building this webshop using OC 2.3.0.2, vQmod installed and Journal2 theme.
I'm using Norwegian as default language for the shop, and English as secondary (my intention is to disable english before go-live). Admin language is English. The host does not support cpanel, so all alterations in the folder structure happens through ftp.
Shop is in maintenance mode, the issues listed below appears also in "live" mode.
Now, I could until a couple of days back complete an order on both languages. But, now once I go (using Chrome browser) to a product page and hit "add to cart" a (Syntax error: Unexpected token) and in MS Edge (Syntax Error: Invalid character) appears.
And it pretty much lists that I have added a product to the cart... But the cart does not get updated until i hit F5. (In English, no problems)
Another funny thing, if I do not go to the product page, but click "add to cart" from the product grid - it works well in both languages!??
When I afterwards get to the checkout page, in Norwegian, regardless of how I got the product in the cart, it shows the same issues as above: in chrome (Syntax error: Unexpected token) and in MS Edge (Syntax Error: Invalid character), and apparently it cannot detect the zone-id/county area which is interconnected with the preferenced delivery country. In English, it lists all the zones in Norway (and in other countries) but in Norwegian, the dropdown menu for the zones is left empty.
So, I've spent many hours in trying to read through applicable/familiar topics on the forum, but none really helps. I believe that the issue in the product page and the checkout page is connected, but I can't really understand why and how.
I've tried to add a new API, not using the default, problem continues.
I've also tried to overwrite all the files in controller/checkout/ folder, with files I new worked back when there were no issues, but that doesn't help.
all applicable files in the path noted above, are of UTF-8 no BOM format, so there should not be an issue with that. (They are visible using the English language, so yeah it makes sense).
The thought has crossed my mind that I could perhaps change the locale settings to point to English, but then using the codes for the norwegian language, and replace all the files in the English language folder path with all the Norwegian ones, and then rename the language from English to Norwegian but I don't know if that will only create issues and if that really addresses the problem.
All help is highly appreciated!