Post by liprotech.in » Tue Jun 09, 2020 7:20 am

Hi,
I am using OpenCart Version 3.0.3.3 with journal 3.0.46
At the time of order status update if we choose to notify customer, it's trigger a error like the following. Though function is working, it's feel very disturbing to see this error every time we update the order status.

Code: Select all

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<b>Unknown</b>: filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated in <b>/var/www/vhosts/domain/httpdocs/system/library/phpmailer/PHPMailer.php</b> on line <b>3581</b><b>Unknown</b>: filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated in <b>/var/www/vhosts/domain/httpdocs/system/library/phpmailer/PHPMailer.php</b> on line <b>3581</b><b>Unknown</b>: filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated in <b>/var/www/vhosts/domain/httpdocs/system/library/phpmailer/PHPMailer.php</b> on line <b>3581</b>{"success":"Success: You have modified orders!"}

PROSENJIT DAS
nationalpc.in
Lowest Price at your doorstep


User avatar
New member

Posts

Joined
Tue Oct 16, 2018 11:13 pm

Post by letxobnav » Tue Jun 09, 2020 8:03 am

It is just and error message about an error message because OC error handling hardly exist.
The original issue was that FILTER_FLAG_HOST_REQUIRED is depricated in the phpmailer class you are using.
Because you display notices and warnings, that is put out by php in html format and because the mail function expects a json encoded response, you get the syntax error message in json.parse.
so
1) update phpmailer
2) stop displaying notices,warnings and errors, there are logs.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Tue Jun 09, 2020 5:08 pm

liprotech.in wrote:
Tue Jun 09, 2020 7:20 am
journal 3.0.46
Contact Journal support.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 1 guest