Georgezx9 Posted November 10, 2014 Share Posted November 10, 2014 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 More sharing options...
Larry Posted November 12, 2014 Share Posted November 12, 2014 You should replace example.com with your actual URL, which may be "localhost" in some form. I'm not quite following your email address question. Could you elaborate? Link to comment Share on other sites More sharing options...
Georgezx9 Posted November 12, 2014 Author Share Posted November 12, 2014 http://www.example.com/activate.php?x=Root%40localhost.com&y=527b63feab716fb75784640f48eea155I assume needs to be http://www.localhost/activate.php Link to comment Share on other sites More sharing options...
Georgezx9 Posted November 12, 2014 Author Share Posted November 12, 2014 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 More sharing options...
Larry Posted November 16, 2014 Share Posted November 16, 2014 Where are the files actually stored on your computer? Link to comment Share on other sites More sharing options...
tgjasper Posted August 3, 2015 Share Posted August 3, 2015 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 More sharing options...
Larry Posted August 3, 2015 Share Posted August 3, 2015 Okay, if your site is in C:\xampp\htdocs\ul-1\ch18\some_folder\htdocs\ then BASE_URL would be http://localhost/ul-1/ch18/some_folder/htdocs because http://localhost points to C:\xampp\htdocs by default. Link to comment Share on other sites More sharing options...
tgjasper Posted August 3, 2015 Share Posted August 3, 2015 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 More sharing options...
Larry Posted August 4, 2015 Share Posted August 4, 2015 Cool. And thanks for sharing what you've learned! Link to comment Share on other sites More sharing options...
Recommended Posts