AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: tosalet on October 21, 2012, 07:47:52 AM

Title: Language related bug.
Post by: tosalet on October 21, 2012, 07:47:52 AM
The cart works perfectly with all browsers on a PC as well as Chrome and  Skyfire on an iPad but it will not open at all using Safari on an iPad.

Error log shows the following:

2012-10-21 11:29:00 - database error:  AbanteCart core v.1.1.1 Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1<br />Error No: 1064<br />INSERT INTO language_definitions (language_id,block,section,language_key,language_value,create_date) VALUES  in <b>/home/e25lapo/public_html/store/core/database/mysql.php</b> on line <b>86</b>

Any ideas? Thanks . . .
Title: Re: iPad Safari issue
Post by: abantecart on October 21, 2012, 11:30:42 AM
Based on the error I see it is not browser related error and issue with database insert.

Do you get this error in Admin or Storefront? What page or task are you performing?
Title: Re: iPad Safari issue
Post by: tosalet on October 21, 2012, 11:37:18 AM
The error occurs when accessing storefront "store/index.php?rt=index/home" but only when using Safari.
Title: Re: iPad Safari issue
Post by: abolabo on October 22, 2012, 05:46:08 AM
Quote from: tosalet on October 21, 2012, 11:37:18 AM
The error occurs when accessing storefront "store/index.php?rt=index/home" but only when using Safari.
if you have v1.1.0 try to upgrade your Abantecart up to v.1.1.1.  It's just file replacing upgrade, without sql-changes.
Title: Re: iPad Safari issue
Post by: tosalet on October 22, 2012, 07:17:51 AM
Thanks for the suggestion but I have already done that . . .
Title: Re: iPad Safari issue
Post by: abantecart on October 22, 2012, 07:49:03 AM
Do you still have this error?
Title: Re: iPad Safari issue
Post by: tosalet on October 22, 2012, 01:21:27 PM
Yes, no change.
Title: Re: iPad Safari issue
Post by: abantecart on October 22, 2012, 01:30:57 PM
I tried my site in Ipad and no issues are found.

Can you post your full URL?
What gen of Ipad and version of OS do you have?
Title: Re: iPad Safari issue
Post by: tosalet on October 23, 2012, 03:30:18 AM
iPad 2 running IOS6 and the cart is under construction at lapothecary.co.uk/store/index.php?rt=index/home.

I should also add that only Chrome and Atomic Web work correctly. It is only Safari that does not, but only on iPad - the PC version is fine.

Hope that helps . . .
Title: Re: iPad Safari issue
Post by: abantecart on October 23, 2012, 08:12:40 AM
My best guess it can be related to language detection of the browser. Check what language do you have set in your Ipad.
If this is not English, it might

Let us know
Title: Re: iPad Safari issue
Post by: tosalet on October 23, 2012, 08:59:53 AM
That is extraordinary! It was (not unnaturally since that is my home country) set to 'British English'. I have reset it to 'English' (presumably American) and it now works.

Well done . . . and thanks.  Now on to the next problem.
Title: Re: iPad Safari issue
Post by: abantecart on October 23, 2012, 09:01:33 AM
We will address this issue in the next release.
Title: Re: iPad Safari issue
Post by: abantecart on October 28, 2012, 09:31:11 PM
There are 2 small bugs that came up related to languages.
If you get error page or can not setup default non-eglish language you need to do below update of the file

NOTE: This will be fixed with next version 1.1.2

Update steps:
replace file core/lib/language.php with attached