Jump to content
Sign in to follow this  
Seofisher

Помоги найти Баг

Recommended Posts

После отправки регистрационных данных, вылетает такая ошибка. Но по сути регистрация проходит удачно и это уже видно после обновления страницы.

Но ошибку надо убрать. Я там что то видимо наковырял... Помогите пожалуйста разобраться!

Notice: Undefined index: fax in /home/c/c505081/site.ru/public_html/catalog/model/account/customer.php on line 14Warning: Cannot modify header information - headers already sent by (output started at /home/c/c505081/site.ru/public_html/index.php:107) in /home/c/c505081/site.ru/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 28Warning: Cannot modify header information - headers already sent by (output started at /home/c/c505081/site.ru/public_html/index.php:107) in /home/c/c505081/site.ru/public_html/vqmod/vqcache/vq2-system_engine_controller.php on line 29

Share this post


Link to post
Share on other sites

Т.е. что-то наковырял, а в 14 строку сложно посмотреть?

Share this post


Link to post
Share on other sites

смотрел, искал отличия от оригинально файла, но так и не нашел ничего

Share this post


Link to post
Share on other sites

И что там в 14-ой строке?

Share this post


Link to post
Share on other sites


$this->db->query("INSERT INTO " . DB_PREFIX . "customer SET store_id = '" . (int)$this->config->get('config_store_id') . "', firstname = '" . $this->db->escape($data['firstname']) . "', lastname = '" . $this->db->escape($data['lastname']) . "', email = '" . $this->db->escape($data['email']) . "', telephone = '" . $this->db->escape($data['telephone']) . "', fax = '" . $this->db->escape($data['fax']) . "', salt = '" . $this->db->escape($salt = substr(md5(uniqid(rand(), true)), 0, 9)) . "', password = '" . $this->db->escape(sha1($salt . sha1($salt . sha1($data['password'])))) . "', newsletter = '" . (isset($data['newsletter']) ? (int)$data['newsletter'] : 0) . "', customer_group_id = '" . (int)$customer_group_id . "', ip = '" . $this->db->escape($this->request->server['REMOTE_ADDR']) . "', status = '1', approved = '" . (int)!$customer_group_info['approval'] . "', date_added = NOW()");

Share this post


Link to post
Share on other sites

fax = '" . $this->db->escape($data['fax']

в входном массиве нет fax

Share this post


Link to post
Share on other sites

убрал кусок, все отлично!

fax = '" . $this->db->escape($data['fax']) . "',

Спасибо большое за помощь!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.