Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi all.

 

Just got Ch 18 working, except for the registration, when I click on the activation link, It give me an error.

 

I am using XAMP and localhost to test, what should I replace www.example.com in config.inc.php with?

 

// Site URL (base for all redirections):

define ('BASE_URL', 'http://www.example.com/');

 

Also

 

How is the mail address used, as all mail comes from postmaster, not the address defined, as below, I am using the mercury mail server

 

// Admin contact address:

define('EMAIL', 'mymailaddress@me.com');

 

Thanks in advance

Link to comment
Share on other sites

Just tried again still no joy

 

Changed config.inc.php to have

 

define ('BASE_URL', 'http://localhost/');

 

The link in the activation Email is:

 

http://localhost/activate.php?x=root%40localhost.com&y=e904d489139bb82634a1683fa311aa1d

 

I get the account activation error URL as:

 

http://localhost/activate.php?x=root%40localhost.com&y=e904d489139bb82634a1683fa311aa1d

 

With a message of:

 

Your account could not be activated. Please re-check the link or contact the system administrator.

Link to comment
Share on other sites

  • 8 months later...

I would like to resurrect this thread. I am having the same issue as Georgezx9; however, the thread came to an abrupt end.

 

My BASE_URL variable is assigned the value: 'http:/localhost/'.

and whenever I try to activate the new account, from the sent email, I get the same error message as Georgezx9: Object not found!, Error 404.

 

I am assuming that the address for the BASE_URL is incorrect, since the activation link isn't finding the path to the file, activation.php. I have tried various combination of paths but at no avail.

 

I am running a xampp setup.

 

The path of the activation.php file is the following:

 

C:\xampp\htdocs\ul-1\ch18\some_folder\htdocs\activate.php

 

Thank you for your help,

tgjasper

 

 

Link to comment
Share on other sites

Thanks Larry, that worked. After adding an additional forward slash and fixing some compilation errors, it works great.

 

Just a side note, for what it's worth. I had some issues trying to get an email account working. After using several different programs, working through the tutorials to set them up, and at no avail, I tried one called "Test Mail Server Tool". After install and activating some lines in php.ini, the emails instantly popup. Great tool. 

Link to comment
Share on other sites

 Share

×
×
  • Create New...