Forums / General Questions / Getting ajax error in v155 with v154 Westminster template

Getting ajax error in v155 with v154 Westminster template

Locked

Views: 11,841

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
20 Mar 2016, 8:20 PM
#1
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Getting ajax error in v155 with v154 Westminster template

Okay since upgrading to 155 I am having an issue with clicking on the LOGIN option, when I click it I am getting this come up ..
Attachment 16134

This is happening on a site I have upgraded from 154 to 155 and it is also happening on a new site running 155. However a site running 154 with the same theme works fine??

The site that's working okay on 154 is .. http://www.testmcs.mikes-cs.co.uk/

The site that has the issue is .. http://www.suessweets.co.uk/

I know those 2 links are running different themes but even if I use the same theme the error is still there.

Any advice but be appreciated as I have no idea where to look. Many thanks in advance.

20 Mar 2016, 9:33 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Getting ajax error in v155 with v154 Westminster template

That's an error during an ajax call ... which suggests that the ajax-related files (/ajax.php, /includes/classes/ajax/*, and /includes/templates/your_template/jscript/jscript_framework.php) are damaged or altered from what comes with v155 out-of-the-box.

Can you confirm WITH ABSOLUTE CERTAINTY that it has nothing to do with the new templates you've been adding?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 Mar 2016, 11:16 PM
#3
patclay avatar

patclay

New Zenner

Join Date:
Dec 2008
Location:
New Zealand
Posts:
88
Plugin Contributions:
1

Re: Getting ajax error in v155 with v154 Westminster template

I previously had an error with ajax.php because the subversion script I had to update for changes didn't update the files in the root directory.

Check that your /ajax.php file has been properly updated.

21 Mar 2016, 12:02 AM
#4
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Re: Getting ajax error in v155 with v154 Westminster template

The suessweets website was a clean install of 155 and a clean install of the theme, the other website in my post is running 154. My own website gets the same error when using the same theme however if I change the theme back to Bask Black the login link works.

I have also attempted to replace the ajax.php file from the Zencart 155 zip

21 Mar 2016, 12:08 AM
#5
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Re: Getting ajax error in v155 with v154 Westminster template

DRBYTE taking your comments I changed the Sues Sweets theme to the default responsive theme that comes with 155 and it worked, swapped it back to Winchester Blue and the error comes back ???

It seems weird that I`m using the same files uploaded to 2 sites, the one on 154 works fine the one on 155 errors ??

21 Mar 2016, 1:55 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Getting ajax error in v155 with v154 Westminster template

As I said earlier, the Westminster template replaces some core v155 files with older versions.
Two of note are:
/includes/templates/YOUR_TEMPLATE_FOLDER/jscript/jscript_framework.php
/
includes/classes/Mobile_Detect.php

And maybe others. Copy the v155 versions of those files back in, and see what happens.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

21 Mar 2016, 10:37 AM
#7
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Re: Getting ajax error in v155 with v154 Westminster template

DrByte:

As I said earlier, the Westminster template replaces some core v155 files with older versions.
Two of note are:
/includes/templates/YOUR_TEMPLATE_FOLDER/jscript/jscript_framework.php
/
includes/classes/Mobile_Detect.php

And maybe others. Copy the v155 versions of those files back in, and see what happens.

I have replaced the mobile_detect.php as advised but I`m unsure what you want me to do about the Jscript_framework, you say that the Westminster replaces the core files but the file you specify is in the Westminster folder anyway ??

21 Mar 2016, 10:45 AM
#8
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Getting ajax error in v155 with v154 Westminster template

MCS_Computers:

I have replaced the mobile_detect.php as advised but I`m unsure what you want me to do about the Jscript_framework, you say that the Westminster replaces the core files but the file you specify is in the Westminster folder anyway ??

Yes, and in the code following loading sequence, the template's version of the file (especially if called the same filename) is loaded in place/ahead of the same file in the template_default equivalent location. Therefore it "replaces" the default version of the file... So either physically replace the file in YOUR_TEMPLATE directory structure or remove it from there, I would suggest replacing instead but I haven't looked at the two sets of code to identify if there is anything that needs to be merged between the two.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Mar 2016, 11:58 AM
#9
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Re: Getting ajax error in v155 with v154 Westminster template

Okay I have looked in the clean 155 folder and this file is in there twice in the jscript folder of the themes, therefore I`m not sure how uploading the Westminster theme had replaced these files however I have replaced this file in the themes folders as specified and also uploaded the Westminsters version back to the Westminster folder and it is still the same.

21 Mar 2016, 1:30 PM
#10
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: Getting ajax error in v155 with v154 Westminster template

It doesn't "replace" them in the strictest sense of the word. The code in the new template overrides them, so that their code is not executed, which is the same effect if they had "replaced" the core files. So being they are overriding core you need to take the core files and use them to actually replace the same files in the new template.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

21 Mar 2016, 2:58 PM
#11
mcs_computers avatar

mcs_computers

Zen Follower

Join Date:
Aug 2013
Location:
Bridlington
Posts:
151
Plugin Contributions:
0

Re: Getting ajax error in v155 with v154 Westminster template

barco57:

It doesn't "replace" them in the strictest sense of the word. The code in the new template overrides them, so that their code is not executed, which is the same effect if they had "replaced" the core files. So being they are overriding core you need to take the core files and use them to actually replace the same files in the new template.

That makes sense, I have taken the file from the default theme in the clean 155 archive and copied it over to the Winchester folder overwriting the old file and VOILA it has worked a treat. I cannot thank you all enough for taking the time to help me resolve this, it is very much appreciated.