close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

login cms error

Thread began 3/29/2012 1:58 pm by axisbold2k2 | Last modified 4/24/2012 4:29 pm by Jason Byrnes | 1179 views | 7 replies |

axisbold2k2

login cms error

Found the login but now I'm getting this error:



Fatal error: Cannot redeclare wa_authenticateuser() (previously declared in /hermes/waloraweb063/b468/pow.bqire5hz/htdocs/bostonkappa/webassist/security_assist/helper_php.php:28) in /hermes/waloraweb063/b468/pow.bqire5hz/htdocs/bostonkappa/WA_SecurityAssist/Helper_PHP.php on line 46

Sign in to reply to this post

Jason ByrnesWebAssist

comment out the require once line for the webassist/security_assist/helper_php.php file at line 28.

Sign in to reply to this post

axisbold2k2

commenting out not working

This is from line 1 - 55. I tried commenting out different lines as you directed but that didn't seem to work. What is causing this error?




<?php
/*-----------------------------------------------------------------------------
- File Name:
- Helper.php
-
- This file contains proprietary and confidential information from WebAssist.com
- corporation. Any unauthorized reuse, reproduction, or modification without
- the prior written consent of WebAssist.com is strictly prohibited.
-
- Copyright 2011 WebAssist.com Corporation. All rights reserved.
------------------------------------------------------------------------------*/
@session_start();
$securityassist_helper_Include_Start_Dir = getcwd();
chdir(dirname(__FILE__));



require_once("helpergroupsrulesphp.php");
if (file_exists("mail_php.php")) require_once("mail_php.php");
if (file_exists("wa_cryptencryption.php")) require_once("wa_cryptencryption.php");
if (file_exists("wa_hashencryption.php")) require_once("wa_hashencryption.php");
if (file_exists("wa_md5encryption.php")) require_once("wa_md5encryption.php");
if (file_exists("wa_rijndaelencryption.php")) require_once("wa_rijndaelencryption.php");
if (file_exists("wa_sha1encryption.php")) require_once("wa_sha1encryption.php");
chdir($securityassist_helper_Include_Start_Dir);
?>
<?php
$WA_Auth_Separator = "|ยค|";
$_SESSION["WAENCRYPTEDRETURNUSED"] = false;
$_SESSION["WAENCRYPTEDRETURNSUCCESS"] = false;
function WA_AuthenticateUser($WA_Auth_Parameter){
$UserAuthenticated = false;
mysql_select_db($WA_Auth_Parameter["database"], $WA_Auth_Parameter["connection"]);
$WA_Auth_loginSQL = "SELECT `".implode('`,`', $WA_Auth_Parameter["sessionColumns"])."` FROM `".$WA_Auth_Parameter["tableName"]."` WHERE ";
for($idx=0;$idx<count($WA_Auth_Parameter["columns"]);$idx++){
$WA_Auth_loginSQL .= sprintf((($idx!=0)?" AND ":" ")."`%s`=%s ", $WA_Auth_Parameter["columns"][$idx], WA_GetSQLValueString($WA_Auth_Parameter["columnValues"][$idx], $WA_Auth_Parameter["columnTypes"][$idx]));
}
$WA_Auth_RS = mysql_query($WA_Auth_loginSQL, $WA_Auth_Parameter["connection"]) or die(mysql_error());
$WA_Auth_Rows = mysql_num_rows($WA_Auth_RS);
if($WA_Auth_Rows){
$UserAuthenticated = true;
$idx = 0;
foreach ($WA_Auth_Parameter["sessionNames"] as $sessionName){
$_SESSION[$sessionName] = mysql_result($WA_Auth_RS,0,$WA_Auth_Parameter["sessionColumns"][$idx]);
$idx++;
}
if (isset($_GET['accesscheck'])) {
$WA_Auth_Parameter["successRedirect"] = urldecode($_GET['accesscheck']);
}
if($WA_Auth_Parameter["successRedirect"]!=""){
$WA_Auth_Parameter["successRedirect"] = WA_Auth_BuildRedirectURL($WA_Auth_Parameter["successRedirect"], $WA_Auth_Parameter["keepQueryString"], FALSE);
header("Location: ".$WA_Auth_Parameter["successRedirect"]);
exit();
}
}

Sign in to reply to this post

Jason ByrnesWebAssist

it not the webassist/security_assist/helper_php.php file that needs to be edited, it is the login.php file that needs to be changed.

Sign in to reply to this post

axisbold2k2

Help editing Login.php

Here is the error message
admin_cms/


What do I comment out in login.php(below)....commented out what you suggested and that didn't work.





Login.php

<?php
@session_start();
?>
<?php require_once('Connections/bostoncms.php'); ?>
<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>
<?php require_once("webassist/form_validations/wavt_validatedform_php.php"); ?>
<?php require_once( "webassist/security_assist/helper_php.php" ); ?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["LogIn_submit"] != "")) {
setcookie("RememberMePWD", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["LogIn_submit"] != "")) {
setcookie("RememberMeUN", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["Log_In_group_Remember_my_information"] != "")) {
setcookie("RememberMePWD", "".((isset($_POST["Log_In_group_Password"]))?$_POST["Log_In_group_Password"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Remember_my_information"])) && $_POST["Log_In_group_Remember_my_information"] != "")) {
setcookie("RememberMeUN", "".((isset($_POST["Log_In_group_Email"]))?$_POST["Log_In_group_Email"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["LogIn_submit"] != "")) {
setcookie("AutoLoginPWD", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(!isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["LogIn_submit"] != "")) {
setcookie("AutoLoginUN", "", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["Log_In_group_Log_me_in_automatically"] != "")) {
setcookie("AutoLoginPWD", "".((isset($_POST["Log_In_group_Password"]))?$_POST["Log_In_group_Password"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((isset($_POST["LogIn_submit"])&&(isset($_POST["Log_In_group_Log_me_in_automatically"])) && $_POST["Log_In_group_Log_me_in_automatically"] != "")) {
setcookie("AutoLoginUN", "".((isset($_POST["Log_In_group_Email"]))?$_POST["Log_In_group_Email"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

axisbold2k2

Ticket Status?

any update

Sign in to reply to this post

Jason ByrnesWebAssist

I have been waiting for you to update the ticket with the requested contact information.

Please update the ticket with the requested contact information so we can look into the problem with you.

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...