Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Error: "hash test failed"
Author « Topic »  

Dermontti
Advanced Member

USA
161 Posts

Posted - 03/07/2024 :  05:59:16  
This error only occurs on pages that are not cart.asp or clientlogin.asp

All pages have the JS that includes the onclick displayloginaccount() function.

Both the header and the top of the body login buttons work on the above pages. Other pages only have the header version, but for some reason throw the "hash test failed" error.

Is there some other dependency? All of the includes listed as required are served on every page of the website.

Vince
Administrator

42690 Posts

Posted - 03/08/2024 :  01:24:43  
Hi Dermontti
Are you starting the user session at the top of the PHP pages with something like...

<?php
session_cache_limiter('none');
session_start();
ob_start();
?>

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Phil
ECT Moderator

United Kingdom
7668 Posts

Posted - 03/08/2024 :  01:41:44  
Hi Vince,
Looking through his profile I think this may be an asp site



*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 03/08/2024 01:42:17

Dermontti
Advanced Member

USA
161 Posts

Posted - 03/08/2024 :  07:17:35  
That is correct, this is an ASP Classic site.

There was no button to create a post anywhere so I clicked create a new post on any page I could find it.

I realize now that you have to enter sub levels to have it enabled.

Vince
Administrator

42690 Posts

Posted - 03/12/2024 :  01:02:55  
Hi Dermontti
I've been trying this here and it all seems to be ok. Could you possibly let me know the URL of your test site and I'll have a look there.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Dermontti
Advanced Member

USA
161 Posts

Posted - 03/12/2024 :  06:03:07  
Hello,

I found that there was code vital for the login in a style related file called ecystyle that initiated code needed for login so I added it to the file for initialization on all pages. Now it works on all pages and doesn't cause issues on pages that have the block run twice.

<!--#include virtual="includes/initialization/ectInitialization.asp"-->

<!DOCTYPE html>

<!--#include virtual="/vsadmin/db_conn_open.asp"-->
<!--#include virtual="/vsadmin/inc/languagefile.asp"-->
<!--#include virtual="/vsadmin/includes.asp"-->
<!--#include virtual="/vsadmin/inc/incfunctions.asp"-->

<%
Dim htmlLanguage
htmlLanguage = "lang=""en"""

' Below code needs to be on all pages for login to work.
if incfunctionsdefined=TRUE then
Set rs=Server.CreateObject("ADODB.RecordSet")
Set cnn=Server.CreateObject("ADODB.Connection")
cnn.open sDSN
alreadygotadmin=getadminsettings()
cnn.Close
set rs=nothing
set cnn=nothing
end if
%>

Vince
Administrator

42690 Posts

Posted - 03/14/2024 :  05:18:06  
Hi Dermontti
The incectstyle.asp file will include files that can be included anyway, such as the ectcart.js file and it may have been that which was missing. I just say this as it may be by including incectstyle.as you are getting other files that you don't actually need.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000