Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Page 1 of 3
1.4.1.0 has at least two blatant bugs…
 
colinmollenhour
Member
 
Avatar
Total Posts:  49
Joined:  2009-05-01
 

Mage/Sales/Model/Order.php:1810

public function prepareShipment($qtys = array())
    
{
        $shipment 
Mage::getModel('sales/service_order'$this)->prepareInvoice($qtys);
        return 
$shipment;
    
}
Yes, preparing a shipment prepares an invoice instead..

Then bundle.xml and cataloginventory.xml reference a cataloginventory/qtyincrements block but Mage_CatalogInventory_Block_Qtyincrements DOESN’T EXIST!

If you’re running 1.4.0.x then it is probably better to go ahead and upgrade to 1.4.1.0 but fix these bugs manually until 1.4.1.1 comes out (advice for Varien: TODAY). If you’re running 1.3.x just stick with what you’ve got until 1.4 is more mature.

Varien: You need a release cycle that contains bugfixes ONLY so that eventually there will be a version that is very stable. 4 months and 1.4 is still not very stable, but so close..

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anton Makarenko
Magento Team
 
Avatar
Total Posts:  183
Joined:  2008-05-13
Los Angeles, CA
 
colinmollenhour - 11 June 2010 04:50 AM

Mage/Sales/Model/Order.php:1810

public function prepareShipment($qtys = array())
    
{
        $shipment 
Mage::getModel('sales/service_order'$this)->prepareInvoice($qtys);
        return 
$shipment;
    
}
Yes, preparing a shipment prepares an invoice instead..

Thank you very much for the feedback. Attaching the patch that fixes this one and related issues with sales module

File Attachments
70150.zip  (File Size: 1KB - Downloads: 697)
 Signature 

Magento Tech PM
--
To avoid trouble, don’t tamper with core code. Write customizations!
Community-driven User Guide
Feel free to send me PM with links to really interesting or problematic forum posts.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tom Coady
Member
 
Total Posts:  41
Joined:  2010-02-13
 

This unzips to 70150.patch which opens as a difference list in textmate. Is there a way to apply this automatically or should we edit Mage/Sales/Model/Order.php:1810 according to the information in the .patch file?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anton Makarenko
Magento Team
 
Avatar
Total Posts:  183
Joined:  2008-05-13
Los Angeles, CA
 

This is a standard patch. RTM about “patch” command in unix environment or under windows you can utilize TortoiseSVN or similar.

 Signature 

Magento Tech PM
--
To avoid trouble, don’t tamper with core code. Write customizations!
Community-driven User Guide
Feel free to send me PM with links to really interesting or problematic forum posts.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tom Coady
Member
 
Total Posts:  41
Joined:  2010-02-13
 

Cool, sorry I didn’t know about man patch

NAME
patch - apply a diff file to an original

SYNOPSIS
patch [options] [originalfile [patchfile]]
but usually just
patch -pnum <patchfile

I assume SVN is optional but recommended?

 
Magento Community Magento Community
Magento Community
Magento Community
 
cooldar
Sr. Member
 
Total Posts:  93
Joined:  2008-05-14
 

i agree with release cycle that contains bugfixes ONLY. Varien, please fix the memory leak bugs.

 Signature 

Jewelry
Jewelry Blog

 
Magento Community Magento Community
Magento Community
Magento Community
 
Anton Makarenko
Magento Team
 
Avatar
Total Posts:  183
Joined:  2008-05-13
Los Angeles, CA
 
colinmollenhour - 11 June 2010 04:50 AM

Mage/Sales/Model/Order.php:1810
Then bundle.xml and cataloginventory.xml reference a cataloginventory/qtyincrements block but Mage_CatalogInventory_Block_Qtyincrements DOESN’T EXIST!

File Attachments
qtyincrements_n_minsaleqty.zip  (File Size: 5KB - Downloads: 673)
 Signature 

Magento Tech PM
--
To avoid trouble, don’t tamper with core code. Write customizations!
Community-driven User Guide
Feel free to send me PM with links to really interesting or problematic forum posts.

 
Magento Community Magento Community
Magento Community
Magento Community
 
merchantguru
Sr. Member
 
Avatar
Total Posts:  118
Joined:  2008-10-06
San Francisco
 

Sorry, I need a little more hand holding. Can anyone tell me if this is what I’m supposed to do with these 3 patch files or something else?

1) upload them to my Magento root directory
2) using SSH, run these 3 commands from my Magento root:

patch < 70150.patch
patch < 70178.patch
patch < 70210.patch

 Signature 

Web Design Marin County

 
Magento Community Magento Community
Magento Community
Magento Community
 
DCAlmeida
Sr. Member
 
Avatar
Total Posts:  164
Joined:  2008-12-28
PRT
 

All is working fine!

Finally, an upgrade that is easy to install and all works fine!

 Signature 

http://www.option2c.com - Option to Connect
Born to be global…

 
Magento Community Magento Community
Magento Community
Magento Community
 
DCAlmeida
Sr. Member
 
Avatar
Total Posts:  164
Joined:  2008-12-28
PRT
 

Wow, I was wrong! There is a BIG error:

a:5:{i:0;s:104:\"SQLSTATE[42S02]: Base table or view not found: 1146 Table \’mageStore.sales_order\’ doesn\’t exist\";i:1;s:5440:\"#0 /chroot/home/nutrilog/XXXX/html/shop/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)

EDIT: nevermind, is a Reward Points extension problem…

 Signature 

http://www.option2c.com - Option to Connect
Born to be global…

 
Magento Community Magento Community
Magento Community
Magento Community
 
merchantguru
Sr. Member
 
Avatar
Total Posts:  118
Joined:  2008-10-06
San Francisco
 

@PowerPt, actually, it’s not “an upgrade that is easy to install and all works fine”. I had a clean install of 1.4.0.1 that I set up the day before the 1.4.1.0 came out. All I had done was install it, nothing else. Next day 1.4.1.0 comes out, so I decide to upgrade. I got the same errors as everyone else is getting (there are at least a few posts about several errors people are getting). Apparently, the upgrade doesn’t recognize some of the new features. So I’m not sure why 1.4.1.0 was released if it can’t even upgrade from a fresh install of 1.4.0.1 - it simply wasn’t ready.

Anyway, enough of the moaning… wink

I was luckily in a position to just start over and install 1.4.1.0, but there are 3 patches that are needed. I’ve never done a patch like this before. Can anyone explain how to install those patches? Some of the posts above give some clues, but I’d love to hear from someone exactly how to do it.

 Signature 

Web Design Marin County

 
Magento Community Magento Community
Magento Community
Magento Community
 
tmushy
Jr. Member
 
Total Posts:  17
Joined:  2008-09-27
 

I am also wondering how to apply these patches if anyone can help plesae

 
Magento Community Magento Community
Magento Community
Magento Community
 
dbabaev
Member
 
Total Posts:  68
Joined:  2008-03-29
 

ditto. also, will we get a “blatant bug fix” release anytime soon or will it be a patch here, a patch there?

Also, where are all the patches stored? in posts like this one or is there a repository? Sorry, I did search.

Thanks,

Daniil

 
Magento Community Magento Community
Magento Community
Magento Community
 
Thierry S.
Sr. Member
 
Total Posts:  93
Joined:  2008-03-19
Paris
 

I applied the 3patches, but I dont think this is related to the issue I’m currently having :
I’m not able to see anymore orders in the admin page on the orders section.
The last 5 orders are displayed correctly in the dasboard.

When I arrive in the admin page and click on Orders, The page will come back empty ( only admin menu and bottom )

Please advice, Any help would be appreciated

 
Magento Community Magento Community
Magento Community
Magento Community
 
andre_nickatina
Sr. Member
 
Avatar
Total Posts:  182
Joined:  2009-12-09
CA
 

How do we apply the patches???
The patch command doesn’t work in ssh with my host. Is there another way?

 Signature 

r2bconcepts.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
andre_nickatina
Sr. Member
 
Avatar
Total Posts:  182
Joined:  2009-12-09
CA
 

Also, I’m getting this error in var/log/system.log

2010-06-13T00:54:14+00:00 ERR (3): Noticeunserialize() [<a href='function.unserialize'>function.unserialize</a>]Error at offset 0 of 1 bytes  in /home/content/10/6215910/html/order/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Serialized.php on line 32

and this in var/log/exception.log

2010-06-13T01:01:57+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_CatalogInventory_Block_Qtyincrements' in /home/content/10/6215910/html/order/app/Mage.php:550
Stack trace
:
#0 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/Layout.php(469): Mage::throwException('Invalid block t...')
#1 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/Layout.php(411): Mage_Core_Model_Layout->_getBlockInstance('cataloginventor...', Array)
#2 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/Layout.php(446): Mage_Core_Model_Layout->createBlock('cataloginventor...', 'product.info.ex...')
#3 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/Layout.php(238): Mage_Core_Model_Layout->addBlock('cataloginventor...', 'product.info.ex...')
#4 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/Layout.php(204): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/Layout.php(209): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Controller/Varien/Action.php(343): Mage_Core_Model_Layout->generateBlocks()
#7 /home/content/10/6215910/html/order/app/code/core/Mage/Catalog/controllers/ProductController.php(115): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/content/10/6215910/html/order/app/code/core/Mage/Catalog/controllers/ProductController.php(149): Mage_Catalog_ProductController->_initProductLayout(Object(CommerceThemes_HideProductPrice_Helper_Abstract))
#9 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Catalog_ProductController->viewAction()
#10 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('view')
#11 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Controller/Varien/Front.php(177): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /home/content/10/6215910/html/order/app/code/core/Mage/Core/Model/App.php(304): Mage_Core_Controller_Varien_Front->dispatch()
#13 /home/content/10/6215910/html/order/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#14 /home/content/10/6215910/html/order/index.php(78): Mage::run('', 'store')
#15 {main}

Any help with these would be appreciated

 Signature 

r2bconcepts.com

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 3
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
701238 users|940 users currently online|497190 forum posts