I just installed the lastest version of Coppermine . When a new user registers, the confirmation email does not enclude the the url. Any ideas / work arounds / missconfigured CPG?
Under the Confirguration Page for "Target address for the 'See more pictures' link in e-cards" I have http://www.mycpg.com (note the actual url is not mycpg lol) This is the only place that I have found to enter in the CPG URL.
Thanks,
Chunk
I done a little digging in the code and here is what I surmised so far.
In REGISTER.PHP
if ($CONFIG['reg_requires_valid_email']) {
$act_link = "http://" . $HTTP_SERVER_VARS['HTTP_HOST'] . $PHP_SELF . '?activate=' . $act_key;
This would the culprit => $HTTP_SERVER_VARS['HTTP_HOST'] and from looking, I'm betting that the e-card address too is missing or incorrect. Where is the information stored? Not in the DB. Is the HTTP_*_VARS polled from PHP? Maybe from the Web server?
Also, the web server (OminHTTPd) is behind a FW and assigned to a "C CLASS" IP address (192.168.10.3)
Thanks,
Chunk
One other tidbit:
PHP version: 4.3.4
mySQL version: 3.23.55-nt
Quote from: Chunky C on June 08, 2004, 06:48:24 PM
I just installed the lastest version of Coppermine .
What version do you consider as "latest version"?
GauGau
Version 1.2.1
Chunk
the 'http://www.mycpg.com' is the bit you need to get correct. Make sure it includes the coppermine directory, but not a final slash.
Try replacing $HTTP_SERVER_VARS['HTTP_HOST'] with $HTTP_SERVER_VARS['SERVER_NAME']
Quote from: Casper on June 09, 2004, 04:51:50 PM
the 'http://www.mycpg.com' is the bit you need to get correct. Make sure it includes the coppermine directory, but not a final slash.
Eh? That's the part that's not getting entered in the confirmation email.
Here is how the email looks:
Thank you for registering at SPAD Photo Gallery
Your username is : "[removed]"
Your password is : "[removed]"
In order to activate your account, you need to click on the link below
or copy and paste it in your web browser.
http:///register.php?activate=949a8f3e0271fc8a48ed7567fcd949d5
Regards,
The management of ******
See, the url is missing.
Nibbler,
I'll try the change you suggested.
Chunk
Nibbler,
Worked like a charm. I'll make the mod to the other files in the Gallery that uses the $HTTP_SERVER_VARS['HTTP_HOST'] as well.
Thanks for your help!
Chunk