0

when I update Magento from 2.3 to 2.4.1, I can't save the old Configurable Products, it said that error "SQLSTATE[42000]: Syntax error or access violation: 1064 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 '))' at line 2, query was: SELECT main_table.*, cp_table.type_id FROM cataloginventory_stock_item AS main_table INNER JOIN catalog_product_entity AS cp_table ON main_table.product_id = cp_table.entity_id WHERE (main_table.website_id = '0') AND (main_table.product_id IN())",

but when create a new Configurable Products, it still works perfect.

enter image description here

Do anyone have same problem, please help. Thanks.

0

This looks like an issue caused by a 3rd party extension. How do I know this? Because the 'Magento style' aliases to tables are formatted by using the first char of the table name parts, so basically catalog_product_entity would be cpe and not cp.

I suggest you either disable the 3rd party modules and enable them back one by one to see which causes the problem OR install xdebug and debug the admin page to see where it gets stuck. However, depending on how your log settings, you might already have the error stack trace in the log files, so take a look there too.

Cheers and good luck!

1
  • Thank for your answer, I will try your suggest, hope I can find the problem soon. Have a nice day! – chinhnguyen Apr 20 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.