close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Fatal error issue on Email PW Page

Thread began 8/27/2013 6:59 am by hbibizadeh396670 | Last modified 8/27/2013 11:23 am by Jason Byrnes | 1588 views | 8 replies |

hbibizadeh396670

Fatal error issue on Email PW Page

I am getting this error on my email pw page

Fatal error: Call to undefined function wa_securityassist_definition() in /home4/siteezy/public_html/ecommercewebsite/UserRegistrationSystem/EmailPW.php on line 63


Here is my Code:


<?php require_once("../WA_SecurityAssist/WA_SHA1Encryption.php"); ?>
<?php
require_once("../WA_SecurityAssist/WA_RandomPassword.php");
?>
<?php require_once('../Connections/localhost.php');?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once('../Connections/Connection.php'); ?>
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

$colname_NewUserPassword = "-1";
if (isset($_POST['emailAddress'])) {
$colname_NewUserPassword = $_POST['emailAddress'];
}
mysql_select_db($database_Connection, $Connection);
$query_NewUserPassword = sprintf("SELECT * FROM siteezyeceusers WHERE UserEmail = %s", GetSQLValueString($colname_NewUserPassword, "text"));
$NewUserPassword = mysql_query($query_NewUserPassword, $Connection) or die(mysql_error());
$row_NewUserPassword = mysql_fetch_assoc($NewUserPassword);
$totalRows_NewUserPassword = mysql_num_rows($NewUserPassword);

mysql_select_db($database_Connection, $Connection);
$query_Design = "SELECT * FROM siteezyecdesign";
$Design = mysql_query($query_Design, $Connection) or die(mysql_error());
$row_Design = mysql_fetch_assoc($Design);
$totalRows_Design = mysql_num_rows($Design);

mysql_select_db($database_Connection, $Connection);
$query_AdminEmail = "SELECT * FROM siteezyecadminpaypal";
$AdminEmail = mysql_query($query_AdminEmail, $Connection) or die(mysql_error());
$row_AdminEmail = mysql_fetch_assoc($AdminEmail);
$totalRows_AdminEmail = mysql_num_rows($AdminEmail);

function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","");
$WA_MailObject = WA_SecurityAssist_SendMail($WA_MailObject,"","","",$WA_Auth_Parameter["toAddress"],"",$WA_Auth_Parameter["fromAddress"],$WA_Auth_Parameter["subject"],$WA_Auth_Parameter["mailBody"]);
$WA_MailObject = null;
}// WA_SecurityAssist_Email_1_SendMail

if(isset($_POST["Send"]) || isset($_POST["Send_x"])){
//WA SecurityAssist Email object="mail"
$WA_Auth_Parameter = array(
"connection" => $Connection,
"database" => $database_Connection,
"tableName" => "siteezyeceusers",
"filterColumn" => "UserEmail",
"filterEncryption" => "",
"columnValue" => "".((isset($_POST["emailAddress"]))?$_POST["emailAddress"]:"") ."",
"columnType" => "text",
"usernameColumn" => "UserName",
"usernameEncryption" => "",
"passwordColumn" => "UserPassword",
"passwordEncryption" => "",
"selectColumns" => array("UserName","UserPassword","UserEmail"),
"sessionVariables" => array(""),
"successRedirect" => "LogIn.php",
"failRedirect" => "EmailPW.php",
"keepQueryString" => FALSE,
"toAddressColumn" => "UserEmail",
"toAddressEncryption" => "",
"fromAddress" => "".$row_AdminEmail['EmailFromAddress'] ."",
"fromAddressDisplay" => "".$row_AdminEmail['EmailForm'] ."",
"subject" => "Forgot Password",
"mailBody" => "Dear [UserFirstName] [UserLastName],

Please use the details below to access your account

User name: [UserName]
Password: [UserPassword]

",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);

WA_Auth_ForgotPassword($WA_Auth_Parameter);
}?>

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

that function is defined in the webassist/security_assist/mail_php.php

the error suggests that that file is not uploaded. make sure to upload the entire webassist/security_assist/ folder to the server.


NOTE: instead of pasting the page code to your message, please compress the page to a zip file and attach the zip file.

Sign in to reply to this post

hbibizadeh396670

Thank you.

I am now getting this

Warning: Missing argument 6 for WA_SecurityAssist_Definition(), called in /home4/siteezy/public_html/ecommercewebsite/UserRegistrationSystem/EmailPW.php on line 63 and defined in /home4/siteezy/public_html/ecommercewebsite/webassist/security_assist/mail_php.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home4/siteezy/public_html/ecommercewebsite/webassist/security_assist/mail_php.php:34) in /home4/siteezy/public_html/ecommercewebsite/webassist/security_assist/helper_php.php on line 142

Sign in to reply to this post

Jason ByrnesWebAssist

edit the forgot password sever behavior and make sure to select a character set.

Sign in to reply to this post

hbibizadeh396670

Sure, would you mind explaining what a character set is.

There are a lot of options and I have not come across this before. Just want to make sure I use the correct one. Thanks

Sign in to reply to this post

hbibizadeh396670

This is just not working. I even made a new page, and added the code. Nothing.

I did the character set to UTF-8

I no longer get errors, just the page reloads and in the url I get EmailPW.php?notFound=true

I have attached all files

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

In the Email Password server behavior, you hca the filter column set to the ID column, it needs to be set to the email address column


also, you are using a recordset binding for the email address, you should be using the form binding.

Sign in to reply to this post

hbibizadeh396670

Thanks

I made the changes

I now get this error

Warning: Missing argument 6 for WA_SecurityAssist_Definition(), called in /home4/siteezy/public_html/ecommercewebsite/UserRegistrationSystem/EmailPW.php on line 64 and defined in /home4/siteezy/public_html/ecommercewebsite/webassist/security_assist/mail_php.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at /home4/siteezy/public_html/ecommercewebsite/webassist/security_assist/mail_php.php:34) in /home4/siteezy/public_html/ecommercewebsite/webassist/security_assist/helper_php.php on line 142

THanks

Sign in to reply to this post

Jason ByrnesWebAssist

find the following line:
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","");


and change it to:
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","","");

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...