Magento Forum

   
Review / Ratings bug
 
Danebrood
Jr. Member
 
Total Posts:  8
Joined:  2007-08-31
 

The last couple of times I’ve tried to submit this to the bug tracker, it hasn’t worked so I’m just gonna do this here.

Bug: When editing a customer product review, and new ‘Rating’ types have been created after the original review was created, an error occurs when trying to review using the newer rating categories.

To Recreate Bug: As a customer, review product. Then in Admin, create a few new Rating types. Then go to edit the customer review in the admin. The newer Rating types will not have any stars yet. Rate on those stars and error occurs.

Error Text:

WarningMissing argument 2 for Mage_Rating_Model_Rating::addOptionVote(), called in /home/biffbang/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php on line 101 and defined in /home/biffbang/app/code/core/Mage/Rating/Model/Rating.php on line 34
[0] in Mage_Rating_Model_Rating
->addOptionVote("24"in /home/biffbang/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php on line 101
[1] in Mage_Adminhtml_Catalog_Product_ReviewController
->saveAction() in /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Action.php on line 278
[2] in Mage_Core_Controller_Varien_Action
->dispatch("save"in /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php on line 138
[3] in Mage_Core_Controller_Varien_Router_Standard
->match(Zend_Controller_Request_Httpin /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Front.php on line 139
[4] in Mage_Core_Controller_Varien_Front
->dispatch() in /home/biffbang/app/Mage.php on line 362
[5] in Mage
::run("base"in /home/biffbang/public_html/index.php on line 27

Notice
Undefined variableentityPkValue in /home/biffbang/app/code/core/Mage/Rating/Model/Rating.php on line 39
[0] in Mage_Rating_Model_Rating
->addOptionVote("24"in /home/biffbang/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php on line 101
[1] in Mage_Adminhtml_Catalog_Product_ReviewController
->saveAction() in /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Action.php on line 278
[2] in Mage_Core_Controller_Varien_Action
->dispatch("save"in /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php on line 138
[3] in Mage_Core_Controller_Varien_Router_Standard
->match(Zend_Controller_Request_Httpin /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Front.php on line 139
[4] in Mage_Core_Controller_Varien_Front
->dispatch() in /home/biffbang/app/Mage.php on line 362
[5] in Mage
::run("base"in /home/biffbang/public_html/index.php on line 27

exception 
'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent in /home/biffbang/app/code/core/Mage/Core/functions.php, line 126' in /home/biffbang/lib/Zend/Controller/Response/Abstract.php:265
Stack trace
:
#0 /home/biffbang/lib/Zend/Controller/Response/Abstract.php(131): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/biffbang/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/ReviewController.php(118): Zend_Controller_Response_Abstract->setRedirect('http://www.biff...')
#2 /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Action.php(278): Mage_Adminhtml_Catalog_Product_ReviewController->saveAction()
#3 /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(138): Mage_Core_Controller_Varien_Action->dispatch('save')
#4 /home/biffbang/app/code/core/Mage/Core/Controller/Varien/Front.php(139): Mage_Core_Controller_Varien_Router_Standard->match(Object(Zend_Controller_Request_Http))
#5 /home/biffbang/app/Mage.php(362): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/biffbang/public_html/index.php(27): Mage::run('base')
#7 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
Danebrood
Jr. Member
 
Total Posts:  8
Joined:  2007-08-31
 

One more thing. On the error screen, if I just hit the back button on my browser, The Admin has returned to its pristine state, but provides this red error message above the edit review form:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘entity_pk_value’ cannot be null

 
Magento Community Magento Community
Magento Community
Magento Community
 
YoavKutner
Guru
 
Avatar
Total Posts:  491
Joined:  2007-08-08
 

Thanks for reporting this.

What version are you running?

yoav

 
Magento Community Magento Community
Magento Community
Magento Community
 
Danebrood
Jr. Member
 
Total Posts:  8
Joined:  2007-08-31
 

Latest Version: 6.12840

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dincer
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2007-09-20
 

http://www.magentocommerce.com/boards/viewthread/724/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top