pimcore-magento2-bridge icon indicating copy to clipboard operation
pimcore-magento2-bridge copied to clipboard

error missing configuration when save and publish

Open supportnubix opened this issue 5 years ago • 10 comments

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?

supportnubix avatar Aug 22 '19 14:08 supportnubix

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

mbolka avatar Sep 30 '19 05:09 mbolka

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.

supportned avatar Nov 19 '19 16:11 supportned

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

vikdelarge avatar Feb 20 '20 18:02 vikdelarge

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":<instanceUrl>,"storeView":<storeView>,"class":} []

and check if the parameters are correct.

Hope this helps

vikdelarge avatar Feb 20 '20 19:02 vikdelarge

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

PNGUYENFRA avatar Mar 20 '20 13:03 PNGUYENFRA

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.

vinitchopra12 avatar Jul 06 '20 16:07 vinitchopra12

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

PNGUYENFRA avatar Jul 07 '20 05:07 PNGUYENFRA

@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

vinitchopra12 avatar Jul 07 '20 06:07 vinitchopra12

you have to use the url of your magento shop

PNGUYENFRA avatar Jul 07 '20 08:07 PNGUYENFRA

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

bpspatel avatar Jun 03 '21 06:06 bpspatel