Post by remika » Wed May 04, 2022 2:24 pm

An error that appears when placing an order means that the e-mail with the order goes to the customer, but the store goes to the store as canceled and does not appear in the administration panel, nor is it sent to the administrator:

Code: Select all

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<br />
<b>Fatal error</b>:  Uncaught Exception: Error: DATA not accepted from server! in /home/users/elmetalwww/public_html/nowa/system/library/mail/smtp.php:328
Stack trace:
#0 /home/users/elmetalwww/public_html/nowa/system/library/mail.php(142): Mail\Smtp-&gt;send()
#1 /home/users/elmetalwww/public_html/nowa/system/storageyufc4py8bzpd/modification/catalog/controller/mail/order.php(377): Mail-&gt;send()
#2 /home/users/elmetalwww/public_html/nowa/system/storageyufc4py8bzpd/modification/catalog/controller/mail/order.php(34): ControllerMailOrder-&gt;add(Array, '1', 'Instrukcja prze...', true)
#3 /home/users/elmetalwww/public_html/nowa/system/storageyufc4py8bzpd/modification/system/engine/action.php(79): ControllerMailOrder-&gt;index('checkout/order/...', Array)
#4 /home/users/elmetalwww/public_html/nowa/system/engine/event.php(62): Action-&gt;execute(Object(Registry), Array)
#5 /home/users/elmetalwww/public_html/nowa/system/storageyufc4py8bzpd/modification/system/engine/loader.php(173): Event-&gt;trigger('model/checkout/...', Array)
#6 /home/users/elmetalw in <b>/home/users/elmetalwww/public_html/nowa/system/library/mail/smtp.php</b> on line <b>328</b><br />

Newbie

Posts

Joined
Wed Jan 16, 2019 2:46 pm

Post by xxvirusxx » Wed May 04, 2022 4:32 pm

remika wrote:
Wed May 04, 2022 2:24 pm
Uncaught Exception: Error: DATA not accepted from server!
Wrong SMTP settings...

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by remika » Wed May 04, 2022 5:11 pm

xxvirusxx wrote:
Wed May 04, 2022 4:32 pm
remika wrote:
Wed May 04, 2022 2:24 pm
Uncaught Exception: Error: DATA not accepted from server!
Wrong SMTP settings...
How it's possible?!
This error occurs in early April, no one knows why

Before that, everything was OK

Newbie

Posts

Joined
Wed Jan 16, 2019 2:46 pm

Post by ADD Creative » Wed May 04, 2022 5:53 pm

What is the timeout set to? If too low you could get that error.

Otherwise it could be your email provider rejecting the the contents of the email.

To see the full error. Change the line giving the error from.

Code: Select all

throw new \Exception('Error: DATA not accepted from server!');
To.

Code: Select all

throw new \Exception('Error: DATA not accepted from server! ' . $reply);

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by remika » Wed May 04, 2022 7:07 pm

Hmmmmm....
I found this code, is it possible ?!

Code: Select all

'href'       => $this->url->link('product/product', 'product_id=' . $product['product_id']),

Newbie

Posts

Joined
Wed Jan 16, 2019 2:46 pm

Post by ADD Creative » Wed May 04, 2022 7:52 pm

remika wrote:
Wed May 04, 2022 7:07 pm
Hmmmmm....
I found this code, is it possible ?!

Code: Select all

'href'       => $this->url->link('product/product', 'product_id=' . $product['product_id']),
I think you may have posted in the wrong topic. That line is not related to the issue.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Semrush [Bot] and 26 guests