Page 1 of 1

Can't modify placed orders' products

Posted: Tue Apr 13, 2021 2:36 am
by AlanARG
Hey everyone, how u doing?

I'm getting this PHP error (I got it from the "error log") when I try to modify already placed orders' products. It worked before, dunno what happened.

Code: Select all

[12-Apr-2021 14:21:54 America/Argentina/Buenos_Aires] PHP Fatal error:  Uncaught Exception: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'UNION SELECT 1,2 FROM oc_user WHERE username='Alan' AND INSTR('5', binary SUBS' at line 1<br />Error No: 1064<br />INSERT INTO oc_newsletter(news_email) values ('bob@ok.com' UNION SELECT 1,2 FROM oc_user WHERE username='Alan' AND INSTR('5', binary SUBSTRING(salt, 7, 1)) BETWEEN 1 AND 100 LIMIT 1 -- @gmail.com') in /home/c1811017/public_html/system/library/db/mysqli.php:40
Stack trace:
#0 /home/c1811017/public_html/storage/modification/system/library/db.php(70): DB\MySQLi->query('INSERT INTO oc_...')
#1 /home/c1811017/public_html/catalog/model/extension/module/newsletters.php(28): DB->query('INSERT INTO oc_...')
#2 /home/c1811017/public_html/storage/modification/system/engine/loader.php(248): ModelExtensionModuleNewsletters->subscribes(Array)
#3 /home/c1811017/public_html/system/engine/proxy.php(47): Loader->{closure}(Array, Array)
#4 /home/c18110 in /home/c1811017/public_html/system/library/db/mysqli.php on line 40

Thanks for any help!

Re: Can't modify placed orders' products

Posted: Tue Apr 13, 2021 6:32 pm
by paulfeakins
Looks like an installed extension, perhaps "ModuleNewsletters" is breaking it.

Re: Can't modify placed orders' products

Posted: Tue Apr 13, 2021 10:26 pm
by JNeuhoff
I agree with paulfeakins, this does not look like any OpenCart standard SQL query, most likely there is an extension causing this problem.

Re: Can't modify placed orders' products

Posted: Thu Apr 15, 2021 3:07 pm
by AlanARG
paulfeakins wrote:
Tue Apr 13, 2021 6:32 pm
Looks like an installed extension, perhaps "ModuleNewsletters" is breaking it.
Should I uninstall that module? that would do the trick?

Re: Can't modify placed orders' products

Posted: Thu Apr 15, 2021 8:19 pm
by straightlight
AlanARG wrote:
Thu Apr 15, 2021 3:07 pm
paulfeakins wrote:
Tue Apr 13, 2021 6:32 pm
Looks like an installed extension, perhaps "ModuleNewsletters" is breaking it.
Should I uninstall that module? that would do the trick?
See by uninstalling the extension module if that would solved the issue.