cancel
Showing results for 
Search instead for 
Did you mean: 

Can't make invoice

SOLVED

Can't make invoice

When i select an order and i select invoice, then i click submit invoice i get an blank screen. When i get back i see that the invoice has been made. When i select ship and then submit shipment i get an white page also.

When i thick email copy of (invoice or shipment) no email is send. (Order email had been send, so email works)

 

The error log says:

2015-04-17T08:27:40+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Ongeldig bloktype: Mage_Mostviewed_Block_List' in /home/admin/domains/doehetzelfalarm.nl/public_html/app/Mage.php:595
Stack trace:
#0 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ongeldig blokty...')
#1 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('mostviewed/list', Array)
#2 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Model/Email/Template/Filter.php(169): Mage_Core_Model_Layout->createBlock('mostviewed/list', NULL, Array)
#3 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#4 /home/admin/domains/doehetzelfalarm.nl/public_html/lib/Varien/Filter/Template.php(163): call_user_func(Array, Array)
#5 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Model/Email/Template/Filter.php(548): Varien_Filter_Template->filter('<div class="pag...')
#6 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Cms/Block/Page.php(101): Mage_Core_Model_Email_Template_Filter->filter('<div class="pag...')
#7 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Cms_Block_Page->_toHtml()
#8 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#9 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(577): Mage_Core_Block_Abstract->_getChildHtml('cms_page', true)
#10 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Page/Block/Html/Wrapper.php(52): Mage_Core_Block_Abstract->getChildHtml('', true, true)
#11 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Page_Block_Html_Wrapper->_toHtml()
#12 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Text_List->_toHtml()
#14 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(637): Mage_Core_Block_Abstract->toHtml()
#15 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(581): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#16 /home/admin/domains/doehetzelfalarm.nl/public_html/app/design/frontend/ultimo/default/template/page/2columns-right.phtml(53): Mage_Core_Block_Abstract->getChildHtml('content')
#17 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Template.php(241): include('/home/admin/dom...')
#18 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/ultimo...')
#19 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Block/Abstract.php(919): Mage_Core_Block_Template->_toHtml()
#21 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#25 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'home')
#26 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#27 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#28 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/community/BalkeTechnologies/StoreMaintenance/Controller/Router/Standard.php(91): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http) )
#29 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): BalkeTechnologies_StoreMaintenance_Controller_Rout er_Standard->match(Object(Mage_Core_Controller_Request_Http) )
#30 /home/admin/domains/doehetzelfalarm.nl/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#31 /home/admin/domains/doehetzelfalarm.nl/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#32 /home/admin/domains/doehetzelfalarm.nl/public_html/index.php(87): Mage::run('', 'store')
#33 {main}
2015-04-17T08:27:44+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Ongeldig bloktype: Mage_Mostviewed_Block_List' in /home/admin/domains/doehetzelfalarm.nl/public_html/app/Mage.php:595

 

In my blocks or plugins i can't find the module mostviewed.

I've used grepwin to search the files, but i can't find the module mostviewed in an email tempate.

Is this an bug?

7 REPLIES

Re: Can't make invoice

try disabling the Mage_Mostviewed_Block_List extension. If the problem doesn't go away, start disabling each of your extensions one-by-one until the problem goes away. The last extension you have to disable will be the root of your problem. Once you figure that out, let me know what you've learned.

Enterprise Architect

800-207-1221
https://merchantprotocol.com

Magento Extension Developers

Re: Can't make invoice

Tried all of them, but i didn't give me the solution Smiley Sad too bad

 

Re: Can't make invoice

When you disabled the plugins did you do so through the administrative area or the XML files? Disabling them through the admin area does not actually stop their code from running, it only hides their output.

 

Make sure that your log files are enabled in the magento admin and on your server, try to create an invoice again and let me know if you find anything in the log files.

Enterprise Architect

800-207-1221
https://merchantprotocol.com

Magento Extension Developers

Re: Can't make invoice

I really feel like this has something to do with your MOST VIEWED list plugin. Try disabling it and then delete the var/cache folder and try again.

Enterprise Architect

800-207-1221
https://merchantprotocol.com

Magento Extension Developers

Re: Can't make invoice

Re: Can't make invoice

I think that the only way for me to help you out at this point is to get into your store and have a look for myself. If you want to message me privately, or call my cell, I can help you out. My skype ID is also jonathonbyrd

Enterprise Architect

800-207-1221
https://merchantprotocol.com

Magento Extension Developers

Re: Can't make invoice

Thanks for contacting me via Skype. Ok, I enabled php to display errors from within your index.php file. Then I attempted to create an invoice like you mentioned and I received this error:

Fatal error: Call to a member function setMessageBody() on a non-object in /app/code/core/Mage/Core/Model/Email/Template.php on line 410

 

This is the code that we're dealing with:

 

if (!($this->hasQueue() && $this->getQueue() instanceof Mage_Core_Model_Email_Queue)) {
            /** @var $emailQueue Mage_Core_Model_Email_Queue */
            $emailQueue = $this->getQueue();
            $emailQueue->setMessageBody($text);   // <---- this is the error line 410
            $emailQueue->setMessageParameters(array(
                    'subject'           => $subject,
                    'return_path_email' => $returnPathEmail,
                    'is_plain'          => $this->isPlain(),
                    'from_email'        => $this->getSenderEmail(),
                    'from_name'         => $this->getSenderName(),
                    'reply_to'          => $this->getMail()->getReplyTo(),
                    'return_to'         => $this->getMail()->getReturnPath(),
                ))
                ->addRecipients($emails, $names, Mage_Core_Model_Email_Queue::EMAIL_TYPE_TO)
                ->addRecipients($this->_bccEmails, array(), Mage_Core_Model_Email_Queue::EMAIL_TYPE_BCC);
            $emailQueue->addMessageToQueue();

            return true;
        }

 

Magento is expecting Mage_Core_Model_Email_Queue but it's getting Mage_Core_Model_Email_Template, which is why we're seeing the problem. You said that this is a fresh install of Magento 1.9.1.0 and you had all of the plugins disabled, but this error still presents itself.

 

Since this is a fresh store installation I suggest that you wipe everything out and reinstall a fresh Magento, your plugins and finally your theme. Between each plugin test your orders and invoices again.

Enterprise Architect

800-207-1221
https://merchantprotocol.com

Magento Extension Developers