When deactivating the module (v2.5.1) in OXID eShop 4.10 an exception (oxSystemComponentException) is thrown in bestitAmazonPay4Oxid_oxViewConfig::getSelfLink() when calling $this->_getContainer().
I don't know if this issue is still relevant in OXID eShop 6.0.
A quick fix that worked for me was:
--- a/modules/bestit/amazonpay4oxid/ext/bestitamazonpay4oxid_oxviewconfig.php
+++ b/modules/bestit/amazonpay4oxid/ext/bestitamazonpay4oxid_oxviewconfig.php
@@ -127,6 +127,14 @@ class bestitAmazonPay4Oxid_oxViewConfig extends bestitAmazonPay4Oxid_oxViewConfi
*/
public function getSelfLink()
{
+ // quick fix (when module was deactivated before within the same request)
+ try {
+ $this->_getContainer();
+ }
+ catch (oxSystemComponentException $ex) {
+ return parent::getSelfLink();
+ }
+
if ((bool)$this->_getContainer()->getConfig()->getConfigParam('sSSLShopURL') === true
&& !$this->isAdmin()
&& $this->getAmazonLoginIsActive()
When deactivating the module (v2.5.1) in OXID eShop 4.10 an exception (
oxSystemComponentException
) is thrown inbestitAmazonPay4Oxid_oxViewConfig::getSelfLink()
when calling$this->_getContainer()
.I don't know if this issue is still relevant in OXID eShop 6.0.
A quick fix that worked for me was:
Excerpt from
EXCEPTION_LOG.txt
: