oroinc / magento-orocrm-bridge

Magento extension, extends SOAP API for OroCRM integration.
http://www.magentocommerce.com/magento-connect/orocrm-bridge.html
16 stars 8 forks source link

Fix Warning message if Enterprise classes not existing #1

Closed sylvainraye closed 8 years ago

ignat-s commented 9 years ago

@diglin, could you please send warning message that you had?

sylvainraye commented 9 years ago

Hi,

Warning: include(Enterprise/Checkout/Block/Adminhtml/Manage.php) [function.include]: failed to open stream: No such file or directory  in /rissip/www/shop/lib/Varien/Autoload.php on line 93

#0 /rissip/www/shop/lib/Varien/Autoload.php(93): mageCoreErrorHandler(2, 'include(Enterpr...', '/rissip/www/sho...', 93, Array)
#1 /rissip/www/shop/lib/Varien/Autoload.php(93): Varien_Autoload::autoload()
#2 [internal function]: Varien_Autoload->autoload('Enterprise_Chec...')
#3 [internal function]: spl_autoload_call('Enterprise_Chec...')
#4 /rissip/www/shop/app/code/community/Oro/Api/Model/Observer/Crm/Controller.php(91): class_exists('Enterprise_Chec...')
#5 /rissip/www/shop/app/code/core/Mage/Core/Model/App.php(1338): Oro_Api_Model_Observer_Crm_Controller->handleRenderLayout(Object(Varien_Event_Observer))
#6 /rissip/www/shop/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Oro_Api_Model_Observer_Crm_Controller), 'handleRenderLay...', Object(Varien_Event_Observer))
#7 /rissip/www/shop/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#8 /rissip/www/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(384): Mage::dispatchEvent('controller_acti...')
#9 /rissip/www/shop/app/code/core/Mage/Adminhtml/controllers/IndexController.php(82): Mage_Core_Controller_Varien_Action->renderLayout()
#10 /rissip/www/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_IndexController->loginAction()
#11 /rissip/www/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('login')
#12 /rissip/www/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /rissip/www/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /rissip/www/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /rissip/www/shop/index.php(118): Mage::run('', 'store')
#16 {main}
ignat-s commented 9 years ago

Thanks, @diglin. I think passing "false" as a second parameter to class_exists will prevent such warning too. Could you please change it? If no, I'll take care of it.

sylvainraye commented 9 years ago

it's updated

ignat-s commented 9 years ago

Thank you, @diglin! Now this change should available in master, merged from development repository.

orocla commented 8 years ago

Thank you for your pull request.

It looks like this may be your first contribution to an Oro, Inc. open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at http://www.orocrm.com/contributor-license-agreement/

If you've already signed the CLA, it's possible we don't have your GitHub username or you're using a different email address. GitHub uses the email address you set in your local Git configuration to associate commits with your GitHub account. Please sign the CLA again using the correct GitHub username and email address or see this help article on setting the email on your git commits.

Once you've signed the CLA, please allow for about an hour for the submission to be processed.

sylvainraye commented 8 years ago

done

iklymenko commented 8 years ago

Merged. Thanks for your contribution!