liqiusheng / silverstripe-ecommerce

Automatically exported from code.google.com/p/silverstripe-ecommerce
0 stars 0 forks source link

[User Error] Uncaught Exception: Object->__call(): the method 'set_needs_recalculating' does not exist on 'Order' #554

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
e-commerce version: 3.1 28/08/2013

SilverStripe version: 3.1 from github

http://127.0.0.1/?flush=all

Error:
-----------------------------------------------------------

[User Error] Uncaught Exception: Object->__call(): the method 
'set_needs_recalculating' does not exist on 'Order'
GET /?flush=all&flushtoken=7710e636f168b137108749257bff2f68

Line 750 in C:\wamp\www\framework\core\Object.php
Source

741                 default :
742                     throw new Exception (
743                         "Object->__call(): extra method $method is invalid on $this->class:"
744                             . var_export($config, true)
745                     );
746             }
747         } else {
748             // Please do not change the exception code number below.
749             $class = get_class($this);
750             throw new Exception("Object->__call(): the method '$method' does not 
exist on '$class'", 2175);
751         }
752     }
753     
754     // 
--------------------------------------------------------------------------------
------------------------------
755     
756     /**

Trace

    Object->__call(set_needs_recalculating,Array)
    Order.php:2636
    Order->set_needs_recalculating()
    Order.php:2636
    Order->onAfterWrite()
    DataObject.php:1266
    DataObject->write()
    ShoppingCart.php:176
    ShoppingCart->currentOrder()
    ShoppingCart.php:73
    ShoppingCart::current_order()
    SendaPageDecorator.php:414
    SendaPageDecorator_Controller->SCTotalItems()
    call_user_func_array(Array,Array)
    Object.php:718
    Object->__call(SCTotalItems,Array)
    ViewableData.php:363
    Page_Controller->SCTotalItems()
    ViewableData.php:363
    ViewableData->obj(SCTotalItems,,,1)
    ViewableData.php:438
    ViewableData->XML_val(SCTotalItems,,1)
    call_user_func_array(Array,Array)
    SSViewer.php:178
    SSViewer_Scope->__call(XML_val,Array)
    SSViewer.php:524
    SSViewer_DataPresenter->__call(XML_val,Array)
    .cache.senda.templates.SendaMenuOptionsResource.ss:12
    SSViewer_DataPresenter->XML_val(SCTotalItems,,1)
    .cache.senda.templates.SendaMenuOptionsResource.ss:12

Original issue reported on code.google.com by supp...@sendasoft.com on 28 Aug 2013 at 10:51

GoogleCodeExporter commented 8 years ago
should be fixed, please reopen in a few days if it aint working.

THANK YOU FOR REPORTING.

Original comment by nfranc...@gmail.com on 31 Aug 2013 at 5:56