mitsukee Posted October 22, 2012 Posted October 22, 2012 When I try to make an account, I get this error: Fatal error: Undefined class constant 'INVALID_BIRTHDATE_FORMAT' in /home/scarlett/public_html/modules/account/create.php on line 115 I've gone to see that line, but I am now sure how to define the Birthdate content to make it work. Thank you.
Patskie Posted October 24, 2012 Posted October 24, 2012 put this on your modules/account/create.php Find : <tr> <th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label></th> <td><input type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /></td> </tr> Add below : <tr> <th><label for="register_birth_date"><?php echo htmlspecialchars(Flux::message('BirthDateLabel')) ?></label></th> <td><input type="text" name="birth_date" id="register_birth_date" value="<?php echo htmlspecialchars($params->get('birth_date')) ?>" /><i>(Format: YYYY-MM-DD)</i></td> </tr> Format is Format: YYYY-MM-DD
mitsukee Posted October 24, 2012 Author Posted October 24, 2012 (edited) Do you mean in themes/account/create.php? Because I do not see that in the modules/account/create.php Also in the theme/account/create.php, I also have that added below the first one already... <tr> <th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label></th> <td><input type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /></td> </tr> <tr> <th><label for="register_birth_date"><?php echo htmlspecialchars(Flux::message('BirthDateLabel')) ?></label></th> <td><input type="text" name="birth_date" id="register_birth_date" value="<?php echo htmlspecialchars($params->get('birth_date')) ?>" /><i>(Format: YYYY-MM-DD)</i></td> </tr> It's still showing that error. Edited October 24, 2012 by mitsukee
Thanna Posted October 29, 2012 Posted October 29, 2012 (edited) go to your CpFolder->themes->default->account and paste this create.php in there create.php Edited October 29, 2012 by Thanna
mitsukee Posted October 29, 2012 Author Posted October 29, 2012 It still give me the error "Fatal error: Undefined class constant 'INVALID_BIRTHDATE_FORMAT' in /home/scarlett/public_html/modules/account/create.php on line 118"
Thanna Posted November 9, 2012 Posted November 9, 2012 try this go to your CpFolder->themes->default->account and paste this create.php in there create.php
Question
mitsukee
When I try to make an account, I get this error:
Fatal error: Undefined class constant 'INVALID_BIRTHDATE_FORMAT' in /home/scarlett/public_html/modules/account/create.php on line 115
I've gone to see that line, but I am now sure how to define the Birthdate content to make it work.
Thank you.
7 answers to this question
Recommended Posts