OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Installation/Technical Issues or Problems Magento order sync problems

This topic contains 2 replies, has 2 voices, and was last updated by  fijn 9 years, 4 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #26415

    fijn
    Participant

    Hi,

    I’m new to oro and not a programmer. Our hosting partner helped us installing oro crm on our server. We run magento 1.9.0.01 and the latest oro version. The customer and cart sync is working. Importing the orders is giving problems. To get the magento oro bridge working i had to remove this in etc/wsdl.xml:
    <!– Fix for magento 1.6.x –>
    <complexType name=”associativeMultiArray”>
    <complexContent>
    <restriction base=”soapenc:Array”>
    <attribute ref=”soapenc:arrayType” wsdl:arrayType=”typens:associativeMultiEntity[]” />
    </restriction>
    </complexContent>
    </complexType>
    <!– // Fix for magento 1.6.x –>

    But now i get the following errors

    Output:
    Run sync for “Fijn.nl Integration” integration.
    Start processing “customer” connector
    Looking for batch
    found 1 entities
    Loading entity by id: 1512
    Stats: read [1], process [1], updated [1], added [0], delete [0], invalid entities: [0]
    Start processing “cart” connector
    Looking for batch
    found 1 entities
    Loading entity by id: 12335
    Stats: read [1], process [0], updated [0], added [0], delete [0], invalid entities: [1]
    Start processing “order” connector
    Looking for batch
    found 100 entities
    Loading entity by id: 27
    Loading entity by id: 29
    Loading entity by id: 33
    Loading entity by id: 34
    Loading entity by id: 35
    Loading entity by id: 36
    Loading entity by id: 37
    Loading entity by id: 38
    Loading entity by id: 39
    Loading entity by id: 40
    Loading entity by id: 41

    Error output:

    PHP Notice: Undefined property: stdClass::$store_id in /var/www/vhosts/oro.fijn.nl/httpdocs/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/Provider/Iterator/AbstractPageableSoapIterator.php on line 317
    PHP Notice: Undefined index: in /var/www/vhosts/oro.fijn.nl/httpdocs/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/Provider/Iterator/AbstractPageableSoapIterator.php on line 317
    PHP Notice: Undefined index: in /var/www/vhosts/oro.fijn.nl/httpdocs/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/Provider/Iterator/AbstractPageableSoapIterator.php on line 318
    PHP Fatal error: Call to a member function getCode() on a non-object in /var/www/vhosts/oro.fijn.nl/httpdocs/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/StoreStrategy.php on line 36

    Anyone any ideas what is going wrong.

    Our server is a bit experimental. We run php 5.6.99-hhvm. But only on our magento store. The oro application is running without hhvm

    regards,

    Burney

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #26416

    Rodolfo
    Participant

    Hi Burney,

    I got some problems like you. The problem here was that my store had fields with some null values. Looking in your errors and notices it looks like that you have the same problem. Maybe some orders doesn’t have ‘store_id’? Anyway.. Oro should intercept all probably exceptions like this one and just skip this entity instead of stop the sync with that fatal error.

    Try to debug the values that you are receiving in your soap call. Just put a print_r($result); after this line.

    You can also run the sync using -vvv to see more details.

    #26417

    fijn
    Participant

    Thank you!

    Some orders missed a store_id. Fixed it and now the orders in oro as well.

    Regards,

    Burney

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.

Back to top