So we have this Magento website that uses multiple storefronts. In that store we have productbundles with different languages.
For each productbundle’s product we set an attribute called “custom_bundle_name”. This can differ per country.
Now when we change the attribute for a non-default storefront (Ex: A secondary storefront) and we refresh the page it throws a fatal error from a Varien class.
The error sounds as follows:
Fatal error: Uncaught Error: Call to a member function getFrontNameByRoute() on boolean in /data/web/public/app/code/core/Mage/Core/Controller/Varien/Front.php:216 Stack trace: #0 /data/web/public/app/code/core/Mage/Core/Model/Url.php(546): Mage_Core_Controller_Varien_Front->getRouterByRoute('checkout') #1 /data/web/public/app/code/core/Mage/Core/Model/Url.php(398): Mage_Core_Model_Url->getRouteFrontName() #2 /data/web/public/app/code/core/Mage/Core/Model/Url.php(763): Mage_Core_Model_Url->getBaseUrl() #3 /data/web/public/app/code/core/Mage/Core/Model/Url.php(995): Mage_Core_Model_Url->getRouteUrl('checkout/cart', Array) #4 /data/web/public/app/Mage.php(394): Mage_Core_Model_Url->getUrl('checkout/cart', Array) #5 /data/web/public/app/code/core/Mage/Core/Helper/Abstract.php(327): Mage::getUrl('checkout/cart', Array) #6 /data/web/public/app/code/core/Mage/Checkout/Helper/Cart.php(120): Mage_Core_Helper_Abstract->_getUrl('checkout/cart') #7 /data/web/public/app/code/community/MultiSafepay/Msp/Model/Servicecost/Quote/Address/ in /data/web/public/app/code/core/Mage/Core/Controller/Varien/Front.php on line 216
This is caused by a
$ this->getRouter('admin')->getFrontNameByRoute('checkout'); The
$ this refers to a
If we delve into it more deeper we see it fails on the
getRouter function returning a false due to
Mage::app()->getRouter() not being set.
The biggest issue is that the error doesn’t always occur, we even tried to disable most of the plugins to which no success. And now I am pretty clueless as to where even look for. Is this an issue caused by us? Did we find a bug in Magento?
I hope anyone can help me.
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!