PDA

View Full Version : image/stylesheet error on checkout


jayzee
15-Jan-2004, 01:34 PM
I have recently taken over a site run on this software and the owner has just contacted me as they are having problems on the checkout/basket pages.

I have had a look and the error and the images and the style sheet get lost. this only happens sometimes and the only way to get the graphics and stylesheet back on those pages is to go back to the index and start again and then they appear. I really can;t see why this should be happening - please help

J

Menar
15-Jan-2004, 01:36 PM
Hi there,

Can you please post your web site URL so we can take a look?

jayzee
15-Jan-2004, 01:51 PM
http://www.knickerdrawer.com

jayzee
16-Jan-2004, 08:33 AM
Hi, Have you been able to see whats going on with this problem?

have you been able to reproduce it?

any help would be much appreciated

J

Menar
16-Jan-2004, 08:59 AM
Hi there,

I can reproduce the problem. Is it the buttons that are losing the style sheet?

Also going back to the homepage and retuning to the checkout pages did not resolve the problem for me.

I am not sure what the problem might be as my knowledge in that area is not great, however maybe someone else can comment.

jayzee
16-Jan-2004, 10:04 AM
Thanks for the response.

It is the whole page that loses its link to the stylesheet and images meaning that none of the graphics appear and the formating of the page that is handled by the stylesheet doesn't appear.

Please help if anyone knows what is going on here or why it might be happening??

J

Menar
16-Jan-2004, 11:03 AM
Hi there,

As far as I can see the only difference are the buttons on the checkout page.

Maybe this is what the site always was? What problem did the owner point out?

If the problem is in regards of the button then this can be due to the correct coding i.e.

The cancel button has the following code;

<input type="image" name="ACTION" src="cancel.gif" VALUE="Cancel">

However, the next button has the

<INPUT TYPE=SUBMIT NAME=ACTION VALUE="Next>">

But, like I stated above the site may have always been like this.

If that is the case then I am having no problems other then that.

jayzee
16-Jan-2004, 11:21 AM
Just incase we are at crossed wires, this is what it looks like when it loses the images and style sheet

jayzee
16-Jan-2004, 11:25 AM
and this is what it looks like after I have closed the browser window and gone back into the site.

as you can see none of the images are ther in the first one and the style sheet isn't there either, if you look at the second one it all seems to be ok.

why should it get so confused??

Menar
16-Jan-2004, 12:00 PM
Hi there,

This could be a caching issue, as I view the site as on example 2.

In order to resolve the problem please clear out your cookies. To do this please go to Tools | Internet Option |General Tab (in Internet Explorer) and delete your cookies, if however the problem still remains try clearing out your session files by going to Help | Troubleshooting | Purge Session file button in Actinic.

jayzee
16-Jan-2004, 12:13 PM
Hi,

I have done the cookie purge and that seems to have no effect, if anything it is now worse not being able to get the proper checkout page at all.

the second thing you recomend I don't seem to be able to find. I have only just started using the program but there doesn't seem to be a help | troubleshooting section to allow me to purge the session files??

are they online?

are you always viewing the site as in example 2, have you managed to reproduce the circumstances of example 1 ?

Matt

garyhay
16-Jan-2004, 01:02 PM
Looked fine to me.

Menar
16-Jan-2004, 01:02 PM
help | troubleshooting

Sorry my mistake this function is only available in Actinic V6.

are you always viewing the site as in example 2, have you managed to reproduce the circumstances of example 1

Yes, I am always viewing the site in example 2 and have not managed to reproduce the problem on my machine.

jayzee
16-Jan-2004, 01:42 PM
right the problem I think seems to be with the the address

http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=

as you can see the referring page (which I assume REFPAGE is) sometimes is missing and this seems to be when the problem is happening.

Is this a possibility?

it might explain why it can't find the images/stylesheet sometimes

any suggestions would be much appreciated

matt

Mike Hughes
16-Jan-2004, 01:50 PM
I can't see any problem with the checkout images either.

I would warn you though about Actinic's strict policy on using catalog/business for sites that are Adult in nature. I seem to remember someone asked about this recently.

See this thread: http://community.actinic.com/showthread.php?s=&threadid=3898

Mike

Menar
16-Jan-2004, 01:55 PM
Can you check your Act_Primary.html template (Advance | Template Manager | Main | Primary) to see if you have the following variable;

<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>

If that variable is missing please insert this within the primary template after the Title tag, then upload the site please.

jayzee
16-Jan-2004, 01:57 PM
Thanks for that information and I will bair that in mind.

jayzee
19-Jan-2004, 10:02 AM
right have sorted out I think the exact time when the problem is occuring.

when you add something to the basket and have confirmed it you get displayed for a few seconds a page that

"Your selection has been added to the basket" and "returning to shop - please wait or clcik here" if at this point you get impatient and hit the checkout button above you get taken to the checkout page but with out any REF page in the link URL. It is usually START when going into the checkout I think. Anyway if you get impatient and click the link mentioned above it goes wrong and all the rest of the time it seems to work right. I realise that this version of actinic has now been superseeded and probably been fixed OR this error is not the programms fault but the previous webdesigners have made a bit of a botch. though anyone could suggest why this is happening I would be very grateful.

Matt

cdicken
20-Jan-2004, 03:50 PM
Is the checkout link hard-coded then? (sorry, I haven't looked at your site)

Maybe you could try adding

&ACTINIC_REFERRER=http://your.URL/acatalog/

to the end of the URL for that checkout link. That should maintain the stylesheet correctly when this happens.

jayzee
28-Jan-2004, 11:20 AM
Where do I find the link in the coding for the checkout button on the page

http://www.knickerdrawer.com/cgi-bin/ca000001.pl

?

thanks

Matt

cdicken
29-Jan-2004, 08:39 AM
Can't you just do a right-click on the 'Checkout' navigation button in the view cart page and go to 'Copy Shortcut'.

I did this at the example Actinic store at http://www.actinic.co.uk/examples/acatalog/. The link to the checkout from the cart in this case is:

http://www.actinic.co.uk/cgi/os000006.pl?ACTION=Start&REFPAGE=http%3a%2f%2fwww%2eactinic%2eco%2euk%2fexamples%2facatalog%2findex%2ehtml

jayzee
29-Jan-2004, 11:01 AM
the problem is how do I edit the link?

http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=

the link looks like this on the page after confirming you want the product added to your cart

what I want to do is just remove the

REFPAGE=

off the end which seems to be causing the problems as it has no value. I assume this line is somewhere in the

ca000001.pl

page yes?

that would sort my problem.

obviously I would preffer to find the root cause of the problem and why the ref page value has dissapeared but for now what i am suggesting would be a good enough fix

Please help as I need to sort this out ASAP

J

cdicken
29-Jan-2004, 04:32 PM
Your store is fine.

I just added something to my cart, viewed the cart and then clicked the 'Checkout' button. The URL I went to was:

http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=http%3a%2f%2fwww%2eknickerdrawer%2ecom%2facatalog%2f0083%2ehtml

I think your problem is that you have been linking to the shopping cart directly via a URL when you hae been testing it, rather than clicking the 'View Cart' button on the store page. Thus you have not been generating the REFPAGE information that Actinic requires.

jayzee
30-Jan-2004, 01:37 PM
I am not sure you are seeing the problem exactly as I am describing. The problem with the checkout button/link only happens on the page that is briefly displayed after confirming you want to buy the product and is the page that has the message

"your selection has been added to your basket

returning to shopping, please wait or click here. "

if you get to this page and then click the browser stop button (or escape I think) to dtop the page refreshing back to the product you can then put the mouse over the checkout button and look at the status bar and you will see the link is missing the refpage value. Ehat I neeed to do is either work out why this value is missing or remove the refpage part of the link so it woeks either correctly or in a fashion which doesn't display the page wrongly

I assume this link is produced dynamically in one of the cgi scripts?

I hope this makes it more clear and you can see the error and possibly a way to sort this out

J

cdicken
30-Jan-2004, 03:32 PM
The only you could try is replacing the NETQUOTEVAR:NAVBCHECKOUTLINK variable in your overall layout template (normally Act_Primary.html) with a hard-coded URL - namely:

http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=http%3a%2f%2fwww%2eknickerdrawer%2ecom%2facatalog%2findex%2ehtml

jayzee
02-Feb-2004, 10:58 AM
Hi Thanks for the help, but I don't seeem to have
NETQUOTEVAR:NAVBCHECKOUTLINK in my Act_Primary.html page
only
NETQUOTEVAR:NAVBCHECKOUT

where else could this variable be set and or inserted intot he code.

could I just change the overal value for
NETQUOTEVAR:NAVBCHECKOUTLINK to
http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=http%3a%2f%2fwww%2eknickerdrawer%2ecom%2facatalog%2findex%2ehtml

what functionality would i lose by doing this.

Many thanks for all the help

J

jayzee
02-Feb-2004, 12:11 PM
I have also now tried hard coding the link into my Act_header.html page and have concluded the link in question is actually generated by the .pl script and there fore this has an error/problem that is causing this issue.

Does anyone know if this is possibela nd at what line in the cgi script the link is generated.

Many thanks

J

jayzee
02-Feb-2004, 01:01 PM
I have had a good look thorugh both os000001.pl and ca000001.pl to seee if I can find the error and have been unable to find any part of the script that is generating this link and therfore the error as well

If anyone has any idea where the link is being generated that appears on the

your selection has been added to your basket

returning to shopping, please wait or click here.

page please let me know coz this has had me stumped know for ages and I realy need to sort it out ASAP.

thanks in advance for any help

J

cdicken
02-Feb-2004, 04:06 PM
Wherever you've got NETQUOTEVAR:NAVBCHECKOUT try replacing it with:

<a href="http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=http%3a%2f%2fwww%2eknickerdrawer%2ecom%2facatalog%2findex%2ehtml" onMouseOver="SwapImage('hnav_checkout','checkoutimage2.gif')" onMouseOut="RestoreImage()">
<img src="checkoutimage.gif" name="hnav_checkout">
</a>

Where:

checkoutimage.gif is the filename for your checkout image
checkoutimage2.gif is the filename for your checkout mouseover image

jayzee
02-Feb-2004, 04:46 PM
I only have one incidence of that value and have as you suggested hard coded it in but know I get the same error and the URL is as follows

http://www.knickerdrawer.com/cgi-bin/os000001.pl?ACTION=Start%21&REFPAGE=http%3a%2f%2fwww%2eknickerdrawer%2ecom%2facatalog%2findex%2ehtml&REFPAGE=

It is automaticaly ammending refpage= to the end of the string making me believe it is done in the cgi script.

But I don't know which bit of the script does it. I can find 3 reffernces to &REFPAGE and If I remove all of them nothing happens it just still doesn't work properly

what is going on here

why can't I find the bit of code that does this??

Confused

J

cdicken
03-Feb-2004, 04:07 PM
To be honest, I don't know what is causing this to happen.

You could try Actinic Support via email by clicking here (http://www.actinic.co.uk/support/register.htm), but due to the nature of your store we are under no obligation to provide support. I was hoping I could make some useful suggestions to you on the forum, but nothing I suggest seems to work.

Sorry, but I cannot be of any further help.

jayzee
04-Feb-2004, 09:59 AM
Hi,

I appreciate all the help you have given me although I would be really happy if you could just liste again to my exact problem as i am sure anyone who nows this program well should at least be able to point me in the right direction.

There is a page that appears after you have added a product to your basket and then confirmed it that says

your selection has been added to your basket

returning to shopping, please wait or click here

once you have got to this page it will try and refresh itself after a couple of seconds back to the product. Problem is if the server is being a little slow at the time it takes longer to refresh and therefore people are tempted to click either the show basket or goto check out button at the top of the white on that page.

Doing so leads to the problems. After much research I believe that these two links are auto generatd or at the very least ammended to by the cgi script, ca000001.pl. I was hoping that someone here new how these links are produced and or dynamically added too and possibly where so I can modify or hard code a solution in.

I hope all this makes it clear what and where it is I am trying to sort this problem.

I realise that you impose restrictions on support and the nature of the website but I am at the stage where I will set up a different temperory store selling something that isn't against the rules to get some help.

I hope ther is someone out there who can help

J