We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Class "Mage_Giftmessage_Helper_Message" not found in /var/www/app/Mage.php:612 Stack trace: #0 /var/www//app/code/core/Mage/Core/Model/Layout.php(625): Mage::helper() #1 /var/www/app/code/core/Mage/Core/Block/Abstract.php(1108): Mage_Core_Model_Layout->helper() #2 /var/www/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php(208): Mage_Core_Block_Abstract->helper() #3 /var/www/app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml(29): Mage_Adminhtml_Block_Sales_Order_View_Items_Renderer_Default->canDisplayGiftmessage() #4 /var/www/app/code/core/Mage/Core/Block/Template.php(273): include('...') #5 /var/www/app/code/core/Mage/Core/Block/Template.php(310): Mage_Core_Block_Template->fetchView()
Currently in the Route adminhtml_sales_order_view, the gift_options Block is added there:
adminhtml_sales_order_view
magento-lts/app/design/adminhtml/default/default/layout/sales.xml
Lines 86 to 88 in 5a95706
That in itself isn't the problem, because the Template itself checks again:
magento-lts/app/design/adminhtml/default/default/template/sales/order/view/giftmessage.phtml
Line 16 in 5a95706
magento-lts/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Giftmessage.php
Lines 279 to 284 in 5a95706
or a different function for the different Item Renderer
magento-lts/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php
Lines 205 to 214 in 5a95706
The problem there is the direct call to the Helper Mage_GiftMessage_Helper_Message, without checking first if the Module Mage_GiftMessage is enabled.
Mage_GiftMessage_Helper_Message
Mage_GiftMessage
Probably both these functions should have this?
if (!Mage::helper('core')->isModuleEnabled('Mage_GiftMessage')) { return false; }
I haven't checked all Routes yet if they need to be protected like this
The text was updated successfully, but these errors were encountered:
Also see https://www.vianetz.com/de/blog/magento-remove-giftmessage-extension/
Sorry, something went wrong.
I added a Draft PR, it doesn't address the product attribute, but the templates all have better protection functions now
Successfully merging a pull request may close this issue.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Possible Solution
Currently in the Route
adminhtml_sales_order_view
, the gift_options Block is added there:magento-lts/app/design/adminhtml/default/default/layout/sales.xml
Lines 86 to 88 in 5a95706
That in itself isn't the problem, because the Template itself checks again:
magento-lts/app/design/adminhtml/default/default/template/sales/order/view/giftmessage.phtml
Line 16 in 5a95706
which calls this function
magento-lts/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Giftmessage.php
Lines 279 to 284 in 5a95706
or a different function for the different Item Renderer
magento-lts/app/code/core/Mage/Adminhtml/Block/Sales/Order/View/Items/Renderer/Default.php
Lines 205 to 214 in 5a95706
The problem there is the direct call to the Helper
Mage_GiftMessage_Helper_Message
, without checking first if the ModuleMage_GiftMessage
is enabled.Probably both these functions should have this?
I haven't checked all Routes yet if they need to be protected like this
The text was updated successfully, but these errors were encountered: