Author |
Topic |
|
epseja
VP-CART New User
USA
61 Posts |
Posted - June 14 2009 : 14:13:06
|
I'm implementing the standard login form in my shoppage_header.asp file, however when an existing customer logs in using Firefox, all I get is this error:
Response object error 'ASP 0158 : 80004005'
Missing URL
/shopsess.asp, line 336
A URL is required.
The real kicker is that when I log in using IE, it goes through just fine. I know that IE is typically more forgiving with screwy syntax, but even when I scrutinize the code, and can't for the life of me find where the breakdown is -- i.e. where the url variable is getting lost for Firefox and Chrome.
Since I'm developing this site in a staging environment, I'm not going to post the URL here, but if anyone has an idea that requires a look-see, I'll send a PM.
Help? Anyone?
P.S. It's also not working in Safari, if that helps. |
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - June 15 2009 : 12:00:32
|
Hi,
Standards compliant browsers don't like the use of & as a delimiter in URLs.
Find this sub in shopsess.asp
sub responseredirect (url) If xsavesession<>"Yes" then response.redirect url exit sub end if dim pos, newurl, delim, posdelim delim="?" newurl=url pos=instr(url,"websess") posdelim=instr(url,"?") if posdelim>0 then delim="&" end if if pos=0 then newurl=newurl & delim & "websess=" & getwebsess end if response.redirect newurl end sub
Change the highlighted code in red to
delim="& a m p ;" (without the spaces between the characters)
Regards,
Carrol www.deanston-electrical.co.uk
|
|
|
epseja
VP-CART New User
USA
61 Posts |
Posted - June 15 2009 : 13:19:36
|
Thanks Carrol. Good catch there. I have applied your recommended fix, however it still didn't fix the problem. I think that the code is sticking on this line:
response.redirect url
I did a response.write to have it output the value of "url" and it's simply "shopcustadminlogin.asp". There is no reason that shouldn't work. I think that there is a problem with the session variables, perhaps. I'll have to keep digging. |
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - June 16 2009 : 03:54:03
|
Hi.
If the returning customer has the save details box checked in customer admin and they didn't logout after their last visit to your site, then shoppageheader.htm shouldn't display the login form anyway. Do you have this code before the form?
<% if Getsess ("lastname") > " " then %> <p align="right" > Welcome <% Getsess("lastname")%> <br /> <a href="shopcustadminlogin.asp?new=yes"> Logout </a> <% else %>
Regards,
Carrol www.deanston-electrical.co.uk |
|
|
epseja
VP-CART New User
USA
61 Posts |
Posted - June 19 2009 : 09:14:40
|
Thanks for your feedback Carfin, but the area you're referring to is not where my problem is coming from. Here is the problem again, in bullet form.
- Computer is shut down - Computer is rebooted - Firefox is launched - All cookies and cache are cleared - Site is launched - Login information input correctly and submitted - Error message displayed (as above)
Anyone else able to help me figure out the problem? VP-ASP team? |
|
|
epseja
VP-CART New User
USA
61 Posts |
Posted - June 20 2009 : 13:05:38
|
Perhaps I can shed some more light in hopes of getting some insight. I simply took the login code from the shopcustadminlogin.asp page and placed it in the shoppage_header file so it's omnipresent. Logging in from shopcustadminlogin.asp always works, but using the copy that's in the header file doesn't. |
|
|
|
Topic |
|