I am using version 1.5.2.1 with default template, and I keep getting these errors every time I change to different language from account/register page:
PHP Notice: Undefined index: firstname in catalog/controller/account/register.php on line 282
PHP Notice: Undefined index: lastname in catalog/controller/account/register.php on line 286
PHP Notice: Undefined index: email in catalog/controller/account/register.php on line 290
PHP Notice: Undefined index: email in catalog/controller/account/register.php on line 290
PHP Notice: Undefined index: email in catalog/controller/account/register.php on line 294
PHP Notice: Undefined index: telephone in catalog/controller/account/register.php on line 298
PHP Notice: Undefined index: address_1 in catalog/controller/account/register.php on line 302
PHP Notice: Undefined index: city in catalog/controller/account/register.php on line 306
PHP Notice: Undefined index: country_id in catalog/controller/account/register.php on line 312
PHP Notice: Undefined index: postcode in catalog/controller/account/register.php on line 314
PHP Notice: Undefined index: country_id in catalog/controller/account/register.php on line 318
PHP Notice: Undefined index: zone_id in catalog/controller/account/register.php on line 322
PHP Notice: Undefined index: password in catalog/controller/account/register.php on line 326
PHP Notice: Undefined index: confirm in catalog/controller/account/register.php on line 330
PHP Notice: Undefined index: password in catalog/controller/account/register.php on line 330
Please note that you dont see these errors if you visit the page first time from the default language, they are only shown up when you change to other language from account/register page (create account page).
Any idea?
Regards
Aladdin
Code: Select all
private function validate() {
if ((utf8_strlen($this->request->post['firstname']) < 1) || (utf8_strlen($this->request->post['firstname']) > 32)) {
$this->error['firstname'] = $this->language->get('error_firstname');
}
Template: catalog/view/theme/your_theme/template/account/register.tpl
Make sure you see
Code: Select all
<input type="text" name="firstname" value="<?php echo $firstname; ?>" />
catalog/language/your_language/account/register.php
Make sure you see:
Code: Select all
$_['error_firstname'] = 'First Name must be between 1 and 32 characters!';
The errors are also shown in affiliate/register page (same thing, when you change the language on this page)
It must be something else ?
Regards
Aladdin
Attachments
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Please note that errors shows up only when you change language in any form page (such as account/register page):
Again, the errors are:
PHP Notice: Undefined index: firstname in catalog/controller/account/register.php on line 282
PHP Notice: Undefined index: lastname in catalog/controller/account/register.php on line 286
PHP Notice: Undefined index: email in catalog/controller/account/register.php on line 290
PHP Notice: Undefined index: email in catalog/controller/account/register.php on line 290
PHP Notice: Undefined index: email in catalog/controller/account/register.php on line 294
PHP Notice: Undefined index: telephone in catalog/controller/account/register.php on line 298
PHP Notice: Undefined index: address_1 in catalog/controller/account/register.php on line 302
PHP Notice: Undefined index: city in catalog/controller/account/register.php on line 306
PHP Notice: Undefined index: country_id in catalog/controller/account/register.php on line 312
PHP Notice: Undefined index: postcode in catalog/controller/account/register.php on line 314
PHP Notice: Undefined index: country_id in catalog/controller/account/register.php on line 318
PHP Notice: Undefined index: zone_id in catalog/controller/account/register.php on line 322
PHP Notice: Undefined index: password in catalog/controller/account/register.php on line 326
PHP Notice: Undefined index: confirm in catalog/controller/account/register.php on line 330
PHP Notice: Undefined index: password in catalog/controller/account/register.php on line 330
Regards
A.T
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
For me changing
Code: Select all
$('#payment-address select[name=\'customer_group_id\']:checked').trigger('change');
Code: Select all
$('#payment-address input[name=\'customer_group_id\']:checked').trigger('change');
Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -
Users browsing this forum: Semrush [Bot] and 11 guests