Zen Cart Logo
Forums / Bug Reports / Ajax security fix November 2015

Ajax security fix November 2015

Views: 5,833

Results 1 to 10 of 10
27 Nov 2015, 4:53 PM
#1
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Ajax security fix November 2015

On Applying the Ajax fix for the security update I am now receiving the following error on the Ckeckout page.

"An unknown response null: :text/html; charset=utf-8: :SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data was received while processing an ajax call. The action you requested could not be completed"

every time I complete a step. The error does not stop the processing but you have to click ok to continue. I have reverted back to the previous version.

Any Ideas?

27 Nov 2015, 5:45 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ajax security fix November 2015

brittainmark:

On Applying the Ajax fix for the security update I am now receiving the following error on the Ckeckout page.

"An unknown response null: :text/html; charset=utf-8: :SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data was received while processing an ajax call. The action you requested could not be completed"

every time I complete a step. The error does not stop the processing but you have to click ok to continue. I have reverted back to the previous version.

Any Ideas?

Ideas that come to mind are the following:

  1. Template is not "updated" to ZC 1.5.4 (Does problem persist if temporarily use default ZC template?)
  2. There is another "error" occurring that is perhaps logged in the /logs directory.
  3. Database is not utf-8/utf8 as applicable/appropriate
  4. Language file(s) are not utf-8/utf8 as applicable/appropriate
  5. configure.php file(s)are not utf-8/utf8 as applicable/appropriate
  6. There is already a problem with the code that is being highlighted by the usage of the correct ajax.php file... Compare files against a known unaltered set to verify that all files are modified only to the extent expected... This includes images and other extraneous files/folders/locations.
  7. Javascript error/conflict.
  8. SSL certificate issue. (does the same error occur when attempting to login, or go to the contact_us page?) Do you use a SSL certificate? Do you have your site a) partially or b) fully assigned to https or c) not using a SSL nor https:?

More information about your setup would be needed I think to give much else of a suggestion.

Nevermind the above... Apparently between the time that I read the message, went to download/install and test the update, and then post here??? Well DrB posted an updated version... :) So, I've left my "thoughts" above but it appears that the issue has been resolved as reported by the previous message.

Huh.. Although the version I tested was the old version and didn't get an error... But, I also don't have SSL on the test site... So, maybe more to follow...

27 Nov 2015, 10:30 PM
#4
brittainmark avatar

brittainmark

Totally Zenned

Join Date:
Apr 2009
Posts:
507
Plugin Contributions:
1

Re: Ajax security fix November 2015

New ajax file works fine. Thanks for the work and the feedback.

28 Nov 2015, 9:42 AM
#5
veronicathecow avatar

veronicathecow

New Zenner

Join Date:
Jun 2009
Posts:
65
Plugin Contributions:
0

Re: Ajax security fix November 2015

Hi, I was about to apply this fix but cannot find the ajax file on the server.
I am wondering if this file is only an addon in which case I don't want or need to put this file in.
If it is in the standard install please can someone tell me where. Many thanks.

28 Nov 2015, 11:46 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Ajax security fix November 2015

veronicathecow,
If you are using ZenCart v1.5.4 it should be at the root of your shop - if not then if you upgraded you missed something or if not you need to check your distribution files

28 Nov 2015, 6:59 PM
#7
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,699
Plugin Contributions:
56

Re: Ajax security fix November 2015

To clarify Kobra's remarks, if you are not using 1.5.4, this change does not apply.

28 Nov 2015, 11:30 PM
#8
veronicathecow avatar

veronicathecow

New Zenner

Join Date:
Jun 2009
Posts:
65
Plugin Contributions:
0

Re: Ajax security fix November 2015

Hi Kobra and SWguy thanks for your replies.
I am using 1.54 it was upgraded by a professional a while back.
I have now found it in the root of public, thank you I did a search before (using FTP and the Zen Cart tools) and it didn't seem to come up, strange I will look into that later.
I have now updated it, many thanks to you both for your help.

13 May 2016, 1:02 AM
#9
bushpilot444 avatar

bushpilot444

New Zenner

Join Date:
Apr 2016
Location:
Savannah, Georgia
Posts:
9
Plugin Contributions:
0

Re: Ajax security fix November 2015

I downloaded and replaced my ajax.php with your file and I still get the same error. Could it be caused by the server setup? We are building a new store and just got our SSL installed an hour ago and I am trying it out for the first time.

It happens wherever I try to click on anything that requires SSL. For example, clicking on Sign In. Could the server guru's have done something wrong? Help.... This is way over my little perl experience head.... :)

13 May 2016, 3:50 AM
#10
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Ajax security fix November 2015

bushpilot444:

I downloaded and replaced my ajax.php with your file and I still get the same error. Could it be caused by the server setup? We are building a new store and just got our SSL installed an hour ago and I am trying it out for the first time.

It happens wherever I try to click on anything that requires SSL. For example, clicking on Sign In. Could the server guru's have done something wrong? Help.... This is way over my little perl experience head.... :)

Which ZC version are you running?

Also, can we have a link to the site please?