AUG 08 2015

Class ‘Mage_Bbsnetaxept_Helper_Data’ not found in app/Mage.php on line 547

Problem description

Magento WSOD or blank page is shown on attempt to save Shipping method with Trollweb/Bring extension. Saving shipping method or carrier in Magento fails with the following error:

PHP Fatal error: Class ‘Mage_Bbsnetaxept_Helper_Data’ not found in app/Mage.php on line 547, referer: https://somestore.example.com/index.php/admin/system_config/edit/section/carriers/key/4d7adc02a29dd8084561ac40baca1318

Cause

The reason of the error is typo in Trollweb/Bring extension and it happens only if some error is returned from Bring gateway on saving Shipping method or carrier. Actual error message is logged in var/log/trollweb.log under Magento root directory. Usually it can be like the following:

FG_INPUT_021 Given to postal code (9600) is not in use for NORWAY

Solution

To successfully save shipping method refer to the log file for actual reason of the error message. To correct typo in Trollweb/Bring extension you can replace bbsnetaxept with bring in app/code/community/Trollweb/Bring/Model/Shipping/Fraktguiden.php:

--- app/code/community/Trollweb/Bring/Model/Shipping/Fraktguiden.php.orig 
+++ app/code/community/Trollweb/Bring/Model/Shipping/Fraktguiden.php 
@@ -835,3 +835,3 @@
if ($response->getBody() != 'OK') {
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bbsnetaxept')->__($errorMessage));
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bring')->__($errorMessage));
}
@@ -840,3 +840,3 @@
$this->getApi()->doLog($e->getMessage());
- Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bbsnetaxept')->__($errorMessage));
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('bring')->__($errorMessage));

If you have any difficulties solving this error please let us know in comments, so we can find the solution together.

Posted in: Fatal errors

Class ‘Mage_Bbsnetaxept_Helper_Data’ not found in app/Mage.php on line 547
7 votes, 4.83 avg. rating (95% score)