close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

No verification email being sent

Thread began 3/25/2010 9:28 pm by WilliFixit | Last modified 3/31/2010 2:09 pm by Jimmy Wu | 1505 views | 10 replies |

WilliFixit

No verification email being sent

I just installed the URSP. I am able to get to the register page (users_Registration.php) and enter all the information.

When I click the Register button, it accepts the information, and returns to the same form, which is now empty. No verification email is sent, and I am not sent to the users_ThankYou.php page. The page is updating the database with a new record with all the information, so the database connection is working fine.

If I try to log in (users_LogIn.php) I just redirect back to the same page after entering correct login information. The same thing happens if I enter a bogus email/password.

If I go to the forgot password (users_EmailPW.php) and enter an email address that is in the database (registered but not verified) I DO get an email with the login password.

I have not changed anything on the original files except the WA_Globals.php, but I did apply my site template to the original PHP files. One concern that I had was that when I was applying the template, I was prompted with a dialog titled "Inconsistent region names" which wanted me to resolve two regions: Document body and Document head. I resolved the Document body to "content" and the Document head to "head". That applied the template correctly, but I don't know if that messed something else up.

Hoping for help soon...

Sign in to reply to this post

Ray BorduinWebAssist

This is probably due to the trigger we are using. We do referrer checking as part of the security routine to make sure the page was submitted to itself to prevent form spoofing.

Sometimes (I'm guessing in your case) firewalls or security settings block the referrer from being read in.

Solve the problem by replacing:

if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)))     {


with:

if ((($_SERVER["REQUEST_METHOD"] == "POST") && isset($_POST) && isset($_POST["Register"])))     {
Sign in to reply to this post

WilliFixit

Thanks, Ray,

So, are there any other PHP pages (besides the registration page) that I should change this code?

Sign in to reply to this post

Ray BorduinWebAssist

do a search on your site for:

"$_SERVER["HTTP_REFERER"]"

you will probably have to update it and remove it wherever it is used if that is the problem.

Sign in to reply to this post

WilliFixit

Hi, Ray,

I replaced the code, commenting out the original as follows:

<?php
/*if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {*/
if ((($_SERVER["REQUEST_METHOD"] == "POST") && isset($_POST) && isset($_POST["Register"]))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["UserEmail"]))?$_POST["UserEmail"]:"") ."";include("WA_Universal_Email/WAUE_users_Registration_1.php");

//Send Mail All Entries
if ("users_ThankYou.php"!="") {
header("Location: users_ThankYou.php");
}
}
?>



The search found three files:

  • users_LogIn.php
  • users_Registration.php
  • users_Registration_Simple.php



Unfortunately, I still do NOT get a verification email on a new registration (but new record is added to the database) and I am not redirected to the "thank you" page. And if I try to log into the account (which is in the database), I cannot...the login screen just clears my entries and reloads.

What should I try next?

Sign in to reply to this post

Ray BorduinWebAssist

I have opened a support incident related to this issue. We will have to debug it to see why it isn't sending. The updated code looks correct.

maybe simplify it even more and update it to:
if (isset($_POST["Register"])) {

Please update your support incident with contact information and we will get in touch with you as soon as possible (early next week).

Sign in to reply to this post

WilliFixit

Suggestion for changing code to simply:

if (isset($_POST["Register"])) {

did not change the result.

Sign in to reply to this post

Ray BorduinWebAssist

It has to be redirecting before it gets to that line of code then.. maybe a go to page set on the insert.

Sign in to reply to this post

WilliFixit

Thanks Ray, but since I don't code (reason why I purchase the WA stuff) this doesn't help me.

There was a support ticket opened up last week but I have not heard from anyone. Any updates?

Sign in to reply to this post

Jimmy Wu

I responded in the ticket and will be giving you a call shortly.

Sign in to reply to this post
loading

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