SQL syntax error: Product couldn't be edited, updated and saved!
cgcmart opened this issue · comments
What version of OpenCart are you reporting this for?
4.0.2.4
Describe the bug
A clear and concise description of what the bug is
What section does it affect?
Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SET
product_id= '300'' at line 1<br/>Error No: 1064<br/>DELETE FROM
oc_product_to_storeSET
product_id = '300' File: ../system/library/db/mysqli.php
Opencart\Admin\Model\Catalog\Product::addSpecial(): Argument #2 ($language_id) must be of type int, array given, called in ../admin/model/catalog/product.php on line 263 File: ../admin/model/catalog/product.php Line: 1497
To Reproduce
Steps to reproduce the behavior:
- Go to 'admin/product' edit and save
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots / Screen recordings
If applicable, add screenshots or recordings to help explain your problem. Please keep these short and if you can, edit them to point out when/where the problem is.
https://www.useloom.com/ is perfect for screen recording with Chrome or with their desktop app
Server / Test environment (please complete the following information):
- Local development? Deployed to a web server?
- Operating system
- PHP version
- Apache version
- Browser(s) tested with [e.g. chrome, safari - if applicable]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
fixed