Code Monkey home page Code Monkey logo

magento-orocrm-bridge's People

Contributors

alexandr-parkhomenko avatar alsma avatar anyt avatar artml avatar d-beekeeper avatar dajve avatar dekey avatar emishusta avatar eugenec avatar grygir avatar hugeval avatar ignat-s avatar iklymenko avatar ishakuta avatar jakubderdziak avatar mccar avatar mkudelya avatar nenadalm avatar olegmack avatar pusachev avatar rgrebenchuk avatar sergeycherepanov avatar sylvainraye avatar syzovao avatar vsoroka avatar x86demon avatar yurio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

magento-orocrm-bridge's Issues

Fatal Error: Call to a member function getName() on null in Oro_Api_Model_Sales_Quote_Api::_getProductAttributes

In situations where a product is in a cart being synced by Oro which still contains a reference in $product->getCategoryIds() to a category which has subsequently been deleted, a fatal error is encountered in Oro_Api_Model_Sales_Quote_Api::_getProductAttributes() (Line: 140).

Related to pull request: #9

Erroring lines

             $productCategoryIds = $product->getCategoryIds();
            foreach ($productCategoryIds as $categoryId) {
                $result['categories'][] = array(
                    'name' => $this->_categoryCollection->getItemById($categoryId)->getName()
                );
            }

Why sync with oro working by some parts

I enabled syn with ORO CRM, but all customer not synced, in every attempt it taking some small amount and pulling to ORO CRM. For example my output of integration sync:

Run sync for "All Websites Integration" integration.
Start processing "website_dictionary" connector
Stats: read [3], processed [3], updated [3], added [0], deleted [0], invalid entities: [0]
Start processing "store_dictionary" connector
Stats: read [12], processed [12], updated [12], added [0], deleted [0], invalid entities: [0]
Start processing "customer_group_dictionary" connector
Stats: read [17], processed [17], updated [17], added [0], deleted [0], invalid entities: [0]
Start processing "region_dictionary" connector
Regions are up to date, last sync date is Thu, 14 Jan 2016 20:46:37 +0000, interval is 1 day
Stats: read [0], processed [0], updated [0], added [0], deleted [0], invalid entities: [0]
Start processing "customer" connector
Looking for batch
found 2 entities
Loading Customer by id: 1
Loading Customer by id: 1027
Stats: read [2], processed [2], updated [1], added [1], deleted [0], invalid entities: [0]
Start processing "cart" connector
Looking for batch
found 2 entities
Loading Cart by id: 710
Loading Cart by id: 716
Stats: read [2], processed [2], updated [1], added [1], deleted [0], invalid entities: [0]
Start processing "order" connector
Looking for batch
found 1 entities
Loading Order by id: 3282
Stats: read [1], processed [1], updated [1], added [0], deleted [0], invalid entities: [0]
Start processing "newsletter_subscriber" connector
Looking for batch
found 12 entities
Loading NewsletterSubscriber by id: 993
Loading NewsletterSubscriber by id: 815
Loading NewsletterSubscriber by id: 811
Loading NewsletterSubscriber by id: 701
Loading NewsletterSubscriber by id: 507
Loading NewsletterSubscriber by id: 408
Loading NewsletterSubscriber by id: 382
Loading NewsletterSubscriber by id: 349
Loading NewsletterSubscriber by id: 320
Loading NewsletterSubscriber by id: 236
Loading NewsletterSubscriber by id: 128
Loading NewsletterSubscriber by id: 34
Stats: read [12], processed [12], updated [12], added [0], deleted [0], invalid entities: [0]
Completed

Why only 12 entities?

PHP 7.0 Support?

We are integrating with a Magento 1.9 site that for performance reasons has been updated to run on PHP 7.0. The package.xml file specifies PHP 5.6.99 as the max version. We have installed manually, but are having trouble getting OroCRM to recognize the bridge being installed.

On the Magento side, we're getting this error when OroCRM tries to connect:

PHP Fatal error:  Procedure 'oroPingRequestParam' not present in /var/www/....../lib/Zend/Soap/Server.php on line 889

Looking at /api/v2_soap/?wsdl=1, we can see oroPingRequestParam listed.

We are using version 1.2.19.0 of Oro_Api and PHP 7.0.28.

Please advise. Thanks!

Bridge Error

Checking dependencies of packages

CONNECT ERROR: Package community/Oro_Api 1.2.5.0: requires PHP version >= 5.2.13 and <= 5.6.0 current is: 5.6.11-1ubuntu3.1

Admin Controller _isAllowed method is missing

Since one of the last updates of Magento every admin controller needs an _isAllowed method to check the ACL. Neither these methods nor an ACL definition is contained in the module. So no user without full admin privileges is able to create an order from OroCRM.

For gateway controller

   protected function _isAllowed()
    {
        return Mage::getSingleton('admin/session')->isAllowed('oro/gateway');
    }

And sales controller

   protected function _isAllowed()
    {
        return Mage::getSingleton('admin/session')->isAllowed('oro/sales');
    }

And the corresponding entries in the adminhtml.xml

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <acl>
        <resources>
            <admin>
                <children>
                    <system>
                        <children>
                            <config>
                                <children>
                                    <oro translate="title" module="oro_api">
                                        <title>Oro Section</title>
                                        <sort_order>50</sort_order>
                                    </oro>
                                </children>
                            </config>
                        </children>
                    </system>
                    <oro translate="title" module="oro_api">
                        <title>Oro Bridge</title>
                        <children>
                            <gateway translate="title" module="oro_api">
                                <title>Gateway</title>
                                <sort_order>10</sort_order>
                            </gateway>
                            <sales translate="title" module="oro_api">
                                <title>Sales</title>
                                <sort_order>20</sort_order>
                            </sales>
                        </children>
                    </oro>
                </children>
            </admin>
        </resources>
    </acl>
</config>

I hope the fix will be implemented soon.

Best,
Sebastian

Procedure 'oroPing' not present in /var/www/magento/lib/Zend/Soap/Server.php on line 889

After setting up OroCRM Bridge v1.1.4.3 integration with Magento 1.9.2.4 CE and configuring a integration in OroCRM 1.9.6, i see the following error spike up in the error-log:

2016/07/21 23:10:06 [error] 3413#3413: *180955 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Procedure 'oroPing' not present in /var/www/magento/lib/Zend/Soap/Server.php on line 889" while reading response header from upstream, client: x.x.x.x, server: hafner-ips.com, request: "POST /index.php/api/v2_soap/index/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "www.myshop.com"

The module provides all the soap methods as expected, snippet from /api/v2_soap/?wsdl=1

<operation name="oroPing"><documentation>Get basic presence info</documentation><input message="typens:oroPingRequest"/><output message="typens:oroPingResponse"/></operation>

I've already checked the SOAP API user credentials, role and permissions and recreated them but without success. Within OroCRM inside the integration configuration it says "Native Magento API is used; only customers and orders will be synced" - i dunno why.

Any hints?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.