Error in user validation URL

Author Message

Simon Bryan

Tuesday 08 June 2004 9:53:45 pm

When a user <b>'Signs UP'</b> the URL they get in the email has one too many <install_dir>/index.php/ in it. I noticed this in the forum from last Novemeber and did not see a reply. (I tried to add to that thread but it kept opening a different thread)

http://example.com/<install_dir>/index.php/<install_dir>/index.php/user/activate/<confirmation_code>

Once I removed the extraneous <install_dir>/index.php/ it worked fine. Anyone know how I can fix this so it sends out the correct URL?

James Packham

Wednesday 09 June 2004 2:31:01 am

In the templates directory for your siteaccess you can edit the email, by opening user/activateaccountmail.tpl. It has a line like this:

http://{ezini("SiteSettings","SiteURL")}{concat("user/activate/",$hash)|ezurl(no)}

I think you're running uri siteaccess (from looking at the example you provided), so simply changing ezurl will probably work:

http://{ezini("SiteSettings","SiteURL")}{concat("user/activate/",$hash)|ezroot}

Regards,

James

Simon Bryan

Wednesday 09 June 2004 3:16:01 am

Thanks, but that didn't work, I ended up with:
http://www.olmc.nsw.edu.au/magex/mag/index.php"/magex/mag/user/activate/6bc03ae04dba3104318fff5fa8228a1e"

Also I do not have a user/activate directory, but do have that file in
design/standard/templates/user

James Packham

Wednesday 09 June 2004 3:32:13 am

/user/activate is a module, not a design directory. You'll find it under kernel :)

The answer to your problem is in the file activateaccountmail.tpl though.

For example one solution might be:

{ezini("SiteSettings","SiteURL")} - This finds out what your website url is from the overriding site.ini file. I'd guess that you have something like

SiteURL=www.example.com/index.php/siteaccess

if so change it to

SiteURL=www.example.com

and revert back to your original activateaccountmail.tpl. If that doesn't work try experimenting to find out the results you get with the different parts of http://{ezini("SiteSettings","SiteURL")}{concat("user/activate/",$hash)|ezurl(no)}

Regards,

James

Simon Bryan

Wednesday 09 June 2004 5:59:10 am

OK, thanks, working now. The only copy I have of the activateaccountmail.tpl is in the design directory as mentioned in previous post. I don't seem to quite understand the way that you refer to the various directories etc, however I seem to have found the right site.ini.append.php file and it now works as expected.
Cheers

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:10:49
Script start
Timing: Jan 18 2025 15:10:49
Module start 'layout'
Timing: Jan 18 2025 15:10:49
Module start 'content'
Timing: Jan 18 2025 15:10:50
Module end 'content'
Timing: Jan 18 2025 15:10:50
Script end

Main resources:

Total runtime1.0354 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.1641152.6406
Module start 'layout' 0.00650.0031 741.804739.4766
Module start 'content' 0.00961.0245 781.2813527.6953
Module end 'content' 1.03410.0013 1,308.976612.1484
Script end 1.0354  1,321.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3198160.0002
Check MTime0.00130.1266160.0001
Mysql Total
Database connection0.00080.077110.0008
Mysqli_queries0.984195.0397630.0156
Looping result0.00050.0507610.0000
Template Total1.008297.420.5041
Template load0.00220.208420.0011
Template processing1.006097.157920.5030
Template load and register function0.00020.018910.0002
states
state_id_array0.00110.109210.0011
state_identifier_array0.00080.075720.0004
Override
Cache load0.00180.1699340.0001
Sytem overhead
Fetch class attribute can translate value0.00060.054620.0003
Fetch class attribute name0.00100.093260.0002
XML
Image XML parsing0.00060.055520.0003
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00080.0819160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs