Post by piyush sinha » Wed Feb 22, 2017 1:40 pm

I am not able to register new account on my opencart website. The error that I am getting is as below

Notice: Undefined index: address_1 in /home/interiomarket/public_html/catalog/controller/account/register.php on line 396Notice:
Undefined index: city in /home/interiomarket/public_html/catalog/controller/account/register.php on line 400Notice:
Undefined index: country_id in /home/interiomarket/public_html/catalog/controller/account/register.php on line 406Notice:
Undefined index: country_id in /home/interiomarket/public_html/catalog/controller/account/register.php on line 421

Currently I have commented the code.

Details of my Website/Opencart

Version: 1.5.6.4
Website account link: http://interiomarket.com/index.php?rout ... nt/account

Below is the code

/*
if ((utf8_strlen($this->request->post['address_1']) < 3) || (utf8_strlen($this->request->post['address_1']) > 128)) {
$this->error['address_1'] = $this->language->get('error_address_1');
}

if ((utf8_strlen($this->request->post['city']) < 2) || (utf8_strlen($this->request->post['city']) > 128)) {
$this->error['city'] = $this->language->get('error_city');
}

$this->load->model('localisation/country');

$country_info = $this->model_localisation_country->getCountry($this->request->post['country_id']);

if ($country_info) {
if ($country_info['postcode_required'] && (utf8_strlen($this->request->post['postcode']) < 2) || (utf8_strlen($this->request->post['postcode']) > 10)) {
$this->error['postcode'] = $this->language->get('error_postcode');
}

// VAT Validation
$this->load->helper('vat');

if ($this->config->get('config_vat') && $this->request->post['tax_id'] && (vat_validation($country_info['iso_code_2'], $this->request->post['tax_id']) == 'invalid')) {
$this->error['tax_id'] = $this->language->get('error_vat');
}
}

I have tried looking into every forum but my developer has not been able to solve this issue. We have been trying to solve this issue since the past three days. Please can anyone help us?

Also I am attaching the comple file along with this post

Thanks in advance

Newbie

Posts

Joined
Tue Jan 24, 2017 8:10 pm
Who is online

Users browsing this forum: Majestic-12 [Bot] and 19 guests