Post by osso12 » Thu Sep 08, 2011 1:50 pm

1.5.1 version of Open Cart.
Seems like everything is fine until I test the check out page.
In chrome I get "SyntaxError: Unexpected Token ILLEGAL"
After I click on the shipping option and click on "Continue" in the shopping cart.
i have tried other browers seamonkey, IE, and firefox.
The later three give me the "SyntaxError: JSON.parse: unexpected character"
So I have no idea as to fix it. If I knew which php or java is being called then maybe.
The only reference that is helpful I found is this but is unrelated to open cart:
"For weird characters it's always safer to use the ["@items"] notation instead of the (dot) notation .@items."
So I am assuming the fix in open cart is very close to this or similar somewhere If I had an idea where to go and look.
Anyone else?
Last edited by osso12 on Fri Sep 09, 2011 9:31 am, edited 1 time in total.

Newbie

Posts

Joined
Wed Sep 07, 2011 2:06 pm

Post by uksitebuilder » Thu Sep 08, 2011 4:17 pm

At what stage in the checkout are you getting this error ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by osso12 » Thu Sep 08, 2011 9:19 pm

As above:
"After I click on the shipping option and click on "Continue" in the shopping cart"

Newbie

Posts

Joined
Wed Sep 07, 2011 2:06 pm

Post by Xsecrets » Fri Sep 09, 2011 1:39 am

ok so you now it's in the payment maybe tell us what payment module you are using?

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by osso12 » Fri Sep 09, 2011 4:30 am

paypal. its the only one I use and the only one I want to use.
"The next step would be to contact the developer of the module to fix it."
And what developer might that be?

Newbie

Posts

Joined
Wed Sep 07, 2011 2:06 pm

Post by Xsecrets » Fri Sep 09, 2011 5:12 am

do you have any strange characters in your email address? I know for a fact that the paypal payment method works fine, though I suppose special characters may not be handled properly if your email address has some in it, or it could be some sort of corruption that happened during file upload.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by osso12 » Fri Sep 09, 2011 6:19 am

Tell ya what im not too deep into this yet. I will double check paypal
Settings and test. From there i will reupload the files. If its still there
After all this i may be trying different carts.

Newbie

Posts

Joined
Wed Sep 07, 2011 2:06 pm

Post by osso12 » Fri Sep 09, 2011 9:05 am

Just used a different payment module PayPal Website Payment Pro
with API username and password....
Same issue still exists....going to reupload all files. If that does not work, I am going delete database, reinstall open cart, and check this area first for this issue..
wish me luck...

Newbie

Posts

Joined
Wed Sep 07, 2011 2:06 pm

Post by Qphoria » Fri Sep 09, 2011 9:14 am

So lets start simple.

You are running a fresh install
You are running no custom modules
You are trying to check out with the paypal modules.

Did you disable the other paypal module? Getting the same error on the same step if the culprit payment is still enabled will yield the same result. Disable ALL payment modules and only enable Cash on delivery

Then refresh the checkout page and checkout from the start. Did you get to step 6? Good

Now enable paypal standard
Repeat the process. What happens.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Xsecrets » Fri Sep 09, 2011 11:32 am

if it's solved please post what the solution was in case someone else runs into the issue.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by victor.gatto » Mon Sep 19, 2011 10:58 am

he would of only solved it with a fresh install, it is a jquery error.

Active Member

Posts

Joined
Thu Sep 01, 2011 9:14 am

Post by spitos » Thu Sep 22, 2011 6:07 am

Erm... i'm having the same issue ???

Trying to add the sku field so that it's included in the returns info, done a lot of code changes, it's late and i probably cant say exactly what i've changed in full detail to affect this. I figured that the sku can't get passed to the returns detail unless it has already populated the db, so i've set up new fields in 'return_product' & 'order_product' for the sku, without really knowing what the result will be to be honest. I think (more so hope) i'm almost there.

What i can say is, in catalog/model/checkout/order.php, if i change this:

Code: Select all

						$this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', model = '" . $this->db->escape($product['model']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "'");
to this (adding sku):

Code: Select all

			$this->db->query("INSERT INTO " . DB_PREFIX . "order_product SET order_id = '" . (int)$order_id . "', product_id = '" . (int)$product['product_id'] . "', name = '" . $this->db->escape($product['name']) . "', sku = '" . $this->db->escape($product['sku']) . "', quantity = '" . (int)$product['quantity'] . "', price = '" . (float)$product['price'] . "', total = '" . (float)$product['total'] . "', tax = '" . (float)$product['tax'] . "'");
That's when I'm getting the error. If I revert it back I get no error.

Image
Google Analytics Expert - Advanced e-commerce tracking, Product & options reporting, transaction/conversion reporting, Google Adwords conversion & profit reporting, goal & funnel reporting, event tracking, site search tracking, multi-store compatibility, EU Cookie Law compliance and works with any theme or checkout! Easy vqmod install. Get it here


User avatar
Active Member

Posts

Joined
Mon May 23, 2011 6:19 pm
Location - UK

Post by hbg » Mon Sep 26, 2011 10:31 am

I have just started having the same issue. I upgraded VQMod in the last few days, & I cleared out any xml files (I should have backed them up) as the whole website could not be seen. I am using 1.5.0.5.
I am using Paypal std.
I also added Cash on Pickup as an option recently?

Opencart Version 1.5.1.3
https://www.opencart.homebrewinn.com.au/shop/


User avatar
hbg
Active Member

Posts

Joined
Wed Apr 13, 2011 8:52 am
Location - Newcastle NSW Australia

Post by hbg » Mon Sep 26, 2011 1:13 pm

http://forum.opencart.com/viewtopic.php?t=10227 Adjusting this back solved the problem, however I now have Paypal showing as an option twice.

Opencart Version 1.5.1.3
https://www.opencart.homebrewinn.com.au/shop/


User avatar
hbg
Active Member

Posts

Joined
Wed Apr 13, 2011 8:52 am
Location - Newcastle NSW Australia

Post by rajeshkp » Sat Feb 25, 2012 2:58 pm

I am having this same issue. So here is how it went. I was using Chrome Browser.

1. Did a fresh installation of 1.5.1.3
2. Enabled two payment modules (One COD and other Paypal)
3. Went to the site and added couple of products to the cart and clicked checkout
4. Chose "Register Account" and went on to add a billing address and shipping address.
5. Chose the shipping method on step 4 and clicked continue. That's when I got the error "SyntaxError: syntaxerror: unexpected token <"

Let me state again that this is a FRESH install and I have not made any changes to the default theme, code what so ever.

But here is what happened next.

1. I closed the pop up error window and went back to the shopping cart and clicked checkout
2. Since the account had already been created, I was automatically logged in
3. So I proceeded with the checkout and this time it all went through smoothly without any issues.

So the issue is, I went back to the cart and restarted the checkout process but a customer may not want (or know) to do that. I may need to put a note on the website regarding this error to help out the customers in case they face the same error but would be great if it can be addressed so that this error doesn't show up.

Nevertheless, this is an awesome opensource cart.

Raj Padhi

Raj Padhi
wisemusings.com


Newbie

Posts

Joined
Sat Feb 25, 2012 2:40 pm

Post by rajeshkp » Sat Feb 25, 2012 3:16 pm

An update:

This time I went on to use IE9, added products to cart and wen through the process of registering new account and such. But when I clicked continue after chosing delivery method, the continue button dimmed a bit and a circle went round and round without going forward or giving any error.

So it is confirmed that this error happens after adding items to the cart and then checking out while going through the register account process. Browser type doesn't matter but will give it a try in Opera and Safari, just in case. Of course, there is Firefox as well.

Raj Padhi
wisemusings.com


Newbie

Posts

Joined
Sat Feb 25, 2012 2:40 pm

Post by Qphoria » Sun Feb 26, 2012 4:10 am


Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by rajeshkp » Fri Mar 02, 2012 7:59 pm

Thanks. Will give it a try and see if it fixes the issue.

Raj Padhi

Raj Padhi
wisemusings.com


Newbie

Posts

Joined
Sat Feb 25, 2012 2:40 pm

Post by rajeshkp » Sat Mar 03, 2012 3:04 pm

I tried the patch but ended up with a much bigger error window. I am using 1.5.3.1 as stated earlier.

Attachments

error_opencart_01.jpg

error_opencart_01.jpg (219.68 KiB) Viewed 17080 times


Raj Padhi
wisemusings.com


Newbie

Posts

Joined
Sat Feb 25, 2012 2:40 pm

Post by Mike Guenther » Tue Mar 06, 2012 9:15 pm

I have had this problem for a while now too. I understand the patch will give more details on this error, however, this is an intermittent problem and it is only reported by a few customers. I have only seen the error once myself when I didnt have the patch installed.

I have no idea how I can replicate this myself to even see the error message to try to fix it.

Active Member

Posts

Joined
Thu Oct 13, 2011 12:00 am
Who is online

Users browsing this forum: No registered users and 7 guests