mirakl / magento2-seller-connector

This is the official Mirakl extension for sellers using Magento 2.
Other
10 stars 7 forks source link

Errors after enable module #17

Open felek000 opened 2 years ago

felek000 commented 2 years ago

Hello, I add module using composer. But not enable it by start. After some time run use commands: bin/magento module:enable MiraklSeller_Api MiraklSeller_Core MiraklSeller_Process MiraklSeller_Sales && bin/magento s:up That made error like so:

MiraklSeller_Api schema: current version - none, required version - 1.2.0
MiraklSeller_Api data: current version - none, required version - 1.2.0
MiraklSeller_Process schema: current version - none, required version - 1.0.0
MiraklSeller_Process data: current version - none, required version - 1.0.0
MiraklSeller_Core schema: current version - none, required version - 1.0.0
MiraklSeller_Core data: current version - none, required version - 1.0.0
MiraklSeller_Sales schema: current version - none, required version - 1.0.2
MiraklSeller_Sales data: current version - none, required version - 1.0.2

So I add to table module proper data modules were visible as enabled. However there were no databse tables related to module. I create them manually. Also check MiraklSeller_Sales and add some costom fields to order/shippment/creditmemo table like in setup page.

However when i enable modules i get error on sales/order table in admin Notice: Undefined index: mirakl_connection_id in /data/web/magento2/vendor/mirakl/magento2-seller-connector/Sales/Ui/Component/Sales/Order/Grid/Column/OrderSource.php on line 62

From stonefront i cant make any order. I disable only MiraklSeller_Sales module and table and order works fine. How can I solve this ? Is it possible to remove this module and install it again using composer ? If possible what files/composer entry/database entry/or settings should i remove before ?

Regards

jreinke commented 2 years ago

Hello,

May I ask you how you installed the connector please? (which command has been executed) Also, what was the output of the module:enable command on the MiraklSeller_* modules?

Thank you.

felek000 commented 2 years ago

On start we have it on dev serwer, and works well. We have auto comands to prod for sync and we get copy entire vendor and dependency. Ten module was not enabled since we want to enable it later. So standard s:up was triggered. Few other modules triggered that way works fine however after php bin/magento module:enable MiraklSeller_Api MiraklSeller_Core MiraklSeller_Process MiraklSeller_Sales we have errors described up. Regards

felek000 commented 2 years ago

I solved it by adding columns to mysql and now i have no errors in modules. I see now one error whatever filters i set my Products / Prices & Stocks (0) are always 0. Should i run some extra command (refresh product did not show elements) I try run command from cli: bin/magento mirakl:seller:listing-refresh --all fter that i have always 0 products

Condition is

image