This site can’t be reached

sanjose.web42.io

(please specify the website or account you are asking about)

Error Message

Check if there is a typo in sanjose.web42.io.
DNS_PROBE_FINISHED_NXDOMAIN

Other Information

I set up an email verification system. So far everything in the process works, the site can send email, and the links. However when it comes to clicking the link in the email, the error above shows – it cant access the verified.php that completes verification.

The message is simply:

$link = "http://sanjose.web42.io/verified.php?vKey=".$vKey;
$mail->Body = "Your form has been verified. Please click this ".$link." to complete verification. Once done, you can now sign up using your email.";

This is basically what’s in it

if(isset($_GET[‘vKey’])) {
$vKey = $_GET[‘vKey’];
$sql = “UPDATE people SET isVerified = :one WHERE vKey = :vk LIMIT 1”;
$stmt = $db->prepare($sql);
$stmt->bindValue(":one",1, PDO::PARAM_INT);
$stmt->bindParam(":vk",$vKey, PDO::PARAM_STR);
$stmt->execute();
}
else {
die(“wrong”);
header(“Locaton: index.php”);
}

If i comment out the if-else block, I could see the website (the rest of the HTML). The vKey is accurate. What could possibly be wrong?

Simple, you have a 301 redirect to non existent website. It should be sanjose.42web.io.

5 Likes

God now I feel so damn stupid. Sorry and thank you :sneezing_face:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.