Address error on login, when adding user by sql query
Posted: Wed Feb 12, 2020 3:12 am
OC version: 3.0.3.2
Register new users its disabled
I have 2 installations of OC, one in a local server and the other in a web server.
I added one test user in both apps using a sql query:
I'm not adding an address in both cases, address table is empty
Login in the web server app happens without issues but in the local server when I try to login the app display this error:
That line says next:
And trying to add an addres on account page doesn't work, shows the same error. To resolve this is necessary to register the address with the admin panel.
How I can solve this issue?, why this happen?
Register new users its disabled
I have 2 installations of OC, one in a local server and the other in a web server.
I added one test user in both apps using a sql query:
Code: Select all
INSERT INTO oc_customer (customer_group_id, store_id, language_id, firstname, lastname, email, telephone, fax, password, salt, cart, wishlist, newsletter, address_id, custom_field, ip, status, safe, token, code, date_added)
VALUES (1,0, 1, 'John', 'Doe', 'john.doe@gmail.com', '', '', 'f8a75e2ae6fd35fe48588cab85d3cdcf', 'z5na4k2s6', NULL, NULL, 0, 0, '', '::1', 1, 0, '', '', NOW());
Login in the web server app happens without issues but in the local server when I try to login the app display this error:
Code: Select all
Notice: Trying to access array offset on value of type bool in C:\xampp\htdocs\sasa\catalog\controller\startup\startup.php on line 166Notice: Trying to access array offset on value of type bool in C:\xampp\htdocs\sasa\catalog\controller\startup\startup.php on line 166
Code: Select all
$this->tax->setShippingAddress($this->session->data['shipping_address']['country_id'], $this->session->data['shipping_address']['zone_id']);
How I can solve this issue?, why this happen?