opencart / opencart

A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.

Home Page:https://www.opencart.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 FROMoc_product_to_storeSETproduct_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:

  1. Go to 'admin/product' edit and save
  2. Click on '....'
  3. Scroll down to '....'
  4. 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