Post by gabrielmoon » Wed May 13, 2015 4:08 pm

Hey there!
I am having a bit of an issue where when I or someone else tries to create an account on my store we obtain a white screen after submitting. When I check on the admin side of things the account has been created. I saw where this was an issue in 1.5, but I wanted to see if anyone else has experienced this and if there was a fix to it. I don't want to get in there and start messing with code without advice! Thank you in advance for any help that can be offered!

Newbie

Posts

Joined
Wed May 13, 2015 4:03 pm

Post by qahar » Wed May 13, 2015 6:08 pm

What is your specific oc 2.0 version? 2.0.1.0 behave differently from 2.0.2.0

Based on your explanation, the model is triggered but somehow the rest code of it make them break.

Do some debuging step below:
- Set Compression Level to "0" in System > Setting
- Then add code below to /index.php

Code: Select all

ini_set('display_errors', 1);
ini_set('log_errors', 1);
error_reporting(E_ALL);
White screen is hard to debug since they not give us any clue.
Step above should help to show the error message.

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by OSWorX » Wed May 13, 2015 6:33 pm


Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by qahar » Wed May 13, 2015 7:35 pm

OSWorX wrote:Maybe it could be that: https://github.com/opencart/opencart/issues/3009
Yes that might be the cause. It's odd only error on some server

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by gabrielmoon » Wed May 13, 2015 10:45 pm

Hey there!

Sorry I did not put the version it totally slipped my mind. I have 2.0.2.0. I did add the code you where talking about, and this is what I got: Notice: Error: E-Mail to required! in /home/sunandmo/public_html/system/library/mail.php on line 61. I am assuming I need to enter an email address somewhere, but where lol?

Newbie

Posts

Joined
Wed May 13, 2015 4:03 pm

Post by OSWorX » Wed May 13, 2015 10:53 pm

This 'error' comes when admins should be notified.
So i would say we are talking about adding additionally email addresses in the field Settings > YOU SHOP > System > TAB Email > Additonal Adresses (or what it is called in English).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by gabrielmoon » Wed May 13, 2015 11:09 pm

I got it fixed. I did a little bit more research, and found out what needed to be done. If anyone else has this issue here is what to do:
go to catalog/model/account/customer.php

At around line 78 - 80 you will find the following part of code:

$mail->setSubject($this->language->get('text_new_customer'));
$mail->setText($message);
$mail->send();

Replace this with the following:

$mail->setSubject($this->language->get('text_new_customer'));
$mail->setText($message);
$mail->setTo($this->config->get('config_email'));
$mail->setFrom($this->config->get('config_email'));
$mail->setSender($this->config->get('config_name'));
$mail->send();

And this should correct the issue!

Newbie

Posts

Joined
Wed May 13, 2015 4:03 pm
Who is online

Users browsing this forum: No registered users and 6 guests