DivanteLtd / pimcore-magento2-bridge

Pimcore module for Magento 2 integration
35 stars 24 forks source link

error missing configuration when save and publish #23

Open supportnubix opened 5 years ago

supportnubix commented 5 years ago

We installed the bridge succesfully but can't sync the categories and product. In the log we get the message:

[ERROR] Missing configuration for object: 12481, instanceUrl:****, store view: 0.

in the product-status-log

Magento site log said:

StreamLogger.CRITICAL: Notice: Undefined index: data in /home/a*****/app/code/Divante/PimcoreIntegration/Http/Response/Transformator/CategoryUpdateTransformator.php on line 67 [] []

any tips how to debug?

mbolka commented 5 years ago

@supportnubix thank you for this report. We have updated connector and fixed multiple issues. Could you please verify if the problem still occurs?

supportned commented 5 years ago

Hi, we still have the same issue here. Everything is set up, and the element is also marked as "SENT" in the Pimcore UI. But the Log still says "Missing configuration for object" at "CategoryUpdateTransformator.php on line 67". Same error for products as well.

vikdelarge commented 4 years ago

Hi, anybody had a fix for this? I'm getting the same error, no clue what's going on

vikdelarge commented 4 years ago

I debugged and find out my error, the missing configuration was on Magento's side, in Pimcore Integration configuration I left Instance Url blank, but as I was using docker the instance Url was not the same as the baseUrl of my magento project.

The hint here would be checking your logs in your pimcore project and look for this query:

[2020-02-20 12:41:15] doctrine.DEBUG: SELECT object_4.o_id as o_id, object_4.o_type FROM object_4 WHERE (instanceUrl = :instance AND magentoStore = :storeView AND (productClass = :class OR categoryClass = :class) AND object_4.o_type IN ('object','folder')) {"instance":,"storeView":,"class":} []

and check if the parameters are correct.

Hope this helps

PNGUYENFRA commented 4 years ago

I have the error

Could not update status for object with id: 1144. Status: ERROR. Message: An error occurred while insert/update product "1144": Notice: Undefined index: data in /www/htdocs/*****/magento2/app/code/Divante/PimcoreIntegration/Http/Response/Transformator/ProductUpdateTransformator.php on line 85

I have check at the function transform() in the file ProductUpdateTransformator.php and i think that the data from pimcore is missing.

/* @var array $rawData / $rawData = $rawResponse['data'];

What does this error mean?

[ERROR] Missing configuration for object: 1144,

Thank you for your help

vinitchopra12 commented 4 years ago

I am also facing the same issue. I am checking with the Category sync for now.

When I see in the Application logger it shows.

Could not update status for object with id: 250. Status: ERROR. Message: An error occurred while insert/update category "250": Notice: Undefined index: data in ... /app/code/Divante/PimcoreIntegration/Http/Response/Transformator/CategoryUpdateTransformator.php on line 67

Let me know if anyone has some solution.

PNGUYENFRA commented 4 years ago

Check the Instance Url in Magento. The url shouldn't contain http and ww.

vinitchopra12 commented 4 years ago

@PNGUYENFRA I have just try with the put it blank and updated with the same instance url as you suggested. But still the sync doesn't happen. In Application Logger, it shows the below Error:

Could not update status for object with id: 250. Status: SUCCESS. Message: category with ID 250 successfully added to queue

PNGUYENFRA commented 4 years ago

you have to use the url of your magento shop

bpspatel commented 3 years ago

Hi, anybody facing issue , when sync category to pimcore . I have attached issue log bridge.log bridge_critical.log