Skip to content
New issue

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

Cant create order from admin #4347

Open
sreichel opened this issue Nov 12, 2024 · 0 comments · May be fixed by #4348
Open

Cant create order from admin #4347

sreichel opened this issue Nov 12, 2024 · 0 comments · May be fixed by #4348
Labels

Comments

@sreichel
Copy link
Contributor

sreichel commented Nov 12, 2024

Fatal error:  Uncaught TypeError: Argument 2 passed to Mage_GiftMessage_Helper_Message::getIsMessagesAvailable() must be an instance of Varien_Object, null given, called in /var/www/html/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage.php on line 85 and defined in /var/www/html/app/code/core/Mage/GiftMessage/Helper/Message.php:173
Stack trace:
#0 /var/www/html/app/code/core/Mage/Adminhtml/Block/Sales/Order/Create/Giftmessage.php(85): Mage_GiftMessage_Helper_Message->getIsMessagesAvailable('order', NULL, NULL)
#1 /var/www/html/app/design/adminhtml/default/default/template/sales/order/create/giftmessage.phtml(23): Mage_Adminhtml_Block_Sales_Order_Create_Giftmessage->canDisplayGiftmessage()
#2 /var/www/html/app/code/core/Mage/Core/Block/Template.php(272): include('/var/www/html/a...')
#3 /var/www/html/app/code/core/Mage/Core/Block/Template.php(309): Mage_Core_Block_Template->fetchView('adminhtml/defau...')
#4 /var/www/html/app/code/core/Mage/Core/Block/Template.php(322): Mage_Core_Block_Template->renderView( in /var/www/html/app/code/core/Mage/GiftMessage/Helper/Message.php on line 173

... when creating order from admin backend.


From

<?php if ($this->helper('giftmessage/message')->getIsMessagesAvailable('main', $this->getQuote(), $this->getStoreId())): ?>

To

<?php if ($this->canDisplayGiftmessage()): ?>
@sreichel sreichel added the bug label Nov 12, 2024
@sreichel sreichel linked a pull request Nov 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant