View Full Version : Online Stock Not Showing Under FF
Darren B
03-Jun-2010, 01:24 PM
I have just noticed that FF does not seem to be showing the stock levels for my products online.
I have checked in IE8 and Chrome and they display just fine can anyone assist me in spotting the reason
example page
http://kitesrus.co.uk/acatalog/Goldfish_Windsock_0.86M__34__.html
Thanks
Darren
Duncan Rounding
03-Jun-2010, 02:01 PM
I can't see stock levels in FF, IE8, Chrome nor Safari on that page???
Darren B
03-Jun-2010, 02:10 PM
I can't see stock levels in FF, IE8, Chrome nor Safari on that page???
Oh dear just looked on another pc and your right, i cant see anything
this is all a little odd its showing in the preview window in actinic and i can see it on some pages and not others i will see what happens with a default product layout not a customised one
Cheers
Darren B
03-Jun-2010, 02:21 PM
hmm a factory default layout image on left does not show in the actinic preview only the css layout im using.
have just checked other products and they are working fine on one pc i have also noticed that some pages are giving and error with the actinicextras.js maybe this is the problem?
a bit beyond me when it comes to js errors :confused:
jont
03-Jun-2010, 02:47 PM
You are also getting a shed load of CSS errors being reported as well which may not be helping.
malbro
03-Jun-2010, 02:58 PM
hmm a factory default layout image on left does not show in the actinic preview only the css layout im using.
have just checked other products and they are working fine on one pc i have also noticed that some pages are giving and error with the actinicextras.js maybe this is the problem?
a bit beyond me when it comes to js errors :confused:the stock control code is in actinicextras.js, if there are errors in this file it can prevent the stock display.
Darren B
03-Jun-2010, 04:13 PM
You are also getting a shed load of CSS errors being reported as well which may not be helping.
Hi jont
could you give me some pointers on how you spotted these?
Cheers
Darren
Darren B
03-Jun-2010, 04:16 PM
the stock control code is in actinicextras.js, if there are errors in this file it can prevent the stock display.
This error only appears on the pc were ie8 does not show the stock levels, it says theres an error on line 175 of the actinicextras.js this line is var uri=urlCall+'?'+passData+'×tamp='+(that.updating.getTime());
malbro
03-Jun-2010, 05:05 PM
This error only appears on the pc were ie8 does not show the stock levels, it says theres an error on line 175 of the actinicextras.js this line is var uri=urlCall+'?'+passData+'×tamp='+(that.updating.getTime()); I can't see anything wrong with that line but that is in the function ajaxObject. Stock control, uses the ajax call to get stock levels from the server.
I checked the page with a copy of IE8 and I get the following error
Message: Access is denied.
Line: 176
Char: 5
Code: 0
URI: http://kitesrus.co.uk/acatalog/actinicextras.js
I can't see anything wrong at all in the file so is it a permissions problem?
Darren B
03-Jun-2010, 05:12 PM
nope not made any changes, this is what is a bit weird, as its working in ff 2 and on this laptop with ff3.5 and ie8
but duncan could not see the stock levels so im even more confused :confused:
jont
03-Jun-2010, 05:19 PM
The CSS errors were revelaed using Web Developer add on for FF3... I also can not see the stock levels.
I am now seeing an error in actinicextras.js which leads back to :
throw new SyntaxError("parseJSON");
You have a lot of javascript on that site so there may be a conflict - try moving the actinicextras.js to the end as a starter and if that fails then comment them out one at a time (the non Actinic stuff) to see if something is in conflict.
malbro
03-Jun-2010, 05:25 PM
nope not made any changes, this is what is a bit weird, as its working in ff 2 and on this laptop with ff3.5 and ie8
but duncan could not see the stock levels so im even more confused :confused:Neither can I in FF3.6.3 nor in IE8, the error is on several pages in IE8, just looked at the site with Stylizer and it is reporting errors in newkiting.css and accordion-glossy.css
malbro
03-Jun-2010, 07:27 PM
nope not made any changes, this is what is a bit weird, as its working in ff 2 and on this laptop with ff3.5 and ie8
but duncan could not see the stock levels so im even more confused :confused:The code for the stockdisplay is not returning a response , FireBug shows no network response from the ajax calls made by the stock system so that seems to suggest a problem with the perl scripts
malbro
03-Jun-2010, 07:48 PM
Oh dear just looked on another pc and your right, i cant see anything
this is all a little odd its showing in the preview window in actinic and i can see it on some pages and not others i will see what happens with a default product layout not a customised one
CheersThe preview window in actinic does not use the same code as the live system to display stock levels. The preview system uses stock values passed into the code via the html code, whereas the live system uses ajax calls to the server, where the perl software returns the stock level from the online files. Try comparing the source code of the web preview against the source code of the live system in a web browser.
Darren B
03-Jun-2010, 08:30 PM
OK
i have fixed the errors in the newkiting css but cant see what is wrong with Normans accordian menu? border: 1px 0px solid #9A9A9A;
looks ok to me but im no expert as im sure some of you know :D
I am refreshing the website as we speak so will test again tomorrow
thanks for all your help it is much appreciated
Darren
malbro
03-Jun-2010, 09:43 PM
OK
i have fixed the errors in the newkiting css but cant see what is wrong with Normans accordian menu? border: 1px 0px solid #9A9A9A;
looks ok to me but im no expert as im sure some of you know :D
I am refreshing the website as we speak so will test again tomorrow
thanks for all your help it is much appreciated
Darrenborder: like that only allows one width value take out 0px and it validates, use border-left etc for different widths.
Darren B
04-Jun-2010, 07:54 AM
border: like that only allows one width value take out 0px and it validates, use border-left etc for different widths.
Learn something new everday, i thought you could declare everything in one go, no matter all fixed now, but still the same problem on works on some but not on others
time to start messing with the scripts as Jont suggested
Darren B
04-Jun-2010, 08:06 AM
Well that did not work either
I switched to a different layout i use for the checkout which does not run and of the extra scripts for the weather, twitter e.t.c and its still a no go.
actually i got it slightly wrong with the js line number it was line 176 that.AJAX.open("GET", uri, true); character 5
so i am at a complete loss with this one, as you said Malbro - as this file shows a problem/error then the online stock levels wont display
perhaps someone from actinic can offer a bit of advice?
malbro
04-Jun-2010, 08:27 AM
Well that did not work either
I switched to a different layout i use for the checkout which does not run and of the extra scripts for the weather, twitter e.t.c and its still a no go.
Darren
Looking at the network responses in firebug your site is not showing any reponse from the server, the javascript sends a GET request to the server passing the section ID and expects a list back from the server in the form
{"39":20,"45":35}
this is a list of product id and stock level for all the products in the section ID. Your page shows no responses to the request.
The penny has just dropped as they say.:D
:eek: You are using a url without www. in front try http://www.kitesrus.co.uk/acatalog/Goldfish_Windsock_0.86M__34__.html
So a lesson for us all. Stock level does not display correctly when you do not use the url defined in network settings.
Darren B
04-Jun-2010, 08:41 AM
Darren
Looking at the network responses in firebug your site is not showing any reponse from the server, the javascript sends a GET request to the server passing the section ID and expects a list back from the server in the form
{"39":20,"45,35}
this is a list of product id and stock level for all the products in the section ID. Your page shows no responses to the request.
The penny has just dropped as they say.:D
:eek: You are using a url without www. in front try http://www.kitesrus.co.uk/acatalog/Goldfish_Windsock_0.86M__34__.html
So a lesson for us all. Stock level does not display correctly when you do not use the url defined in network settings.
Sorted, a simple htaccess hack and all is now working a treat, its interesting that this is happening because i always make sure i use www. but i notice the links via the cgi-bin seem to bounce back to non www maybe this is a cookie / cache problem not an actinic one
Thanks to you all for you help
Darren
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.