liqiusheng / silverstripe-ecommerce

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

Fatal error: Using $this when not in object context in C:\wamp\www\ecommerce_tax\code\modifiers\GSTTaxModifier.php on line 88 #572

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
e-commerce version: 3.1 03/09/2013 r4757 

SilverStripe version: 3.1 from github

Problem in static function get_default_country_code_combined()

-----------------------------------

( ! ) Fatal error: Using $this when not in object context in 
C:\wamp\www\ecommerce_tax\code\modifiers\GSTTaxModifier.php on line 88
Call Stack
#   Time    Memory  Function    Location
1   1.0005  426240  {main}( )   ..\main.php:0
2   1.1584  17590656    Director::direct( ) ..\main.php:189
3   1.1627  18126072    Director::handleRequest( )  ..\Director.php:143
4   1.1679  18312936    ModelAsController->handleRequest( ) ..\Director.php:325
5   1.4931  25427056    ContentController->handleRequest( 
)   ..\ModelAsController.php:68
6   1.4932  25427088    Controller->handleRequest( )    ..\ContentController.php:220
7   1.5003  25711656    CheckoutPage_Controller->init( )    ..\Controller.php:139
8   1.5003  25711656    CartPage_Controller->init( )    ..\CheckoutPage.php:291
9   1.7591  30485744    Order->calculateOrderAttributes( )  ..\CartPage.php:351
10  2.1460  34323368    Order->calculateModifiers( )    ..\Order.php:1485
11  2.1605  34999752    GSTTaxModifier->runUpdate( )    ..\Order.php:1523
12  2.1605  34999808    OrderModifier->checkField( )    ..\GSTTaxModifier.php:190
13  2.1829  36123552    GSTTaxModifier->LiveDefaultCountry( 
)   ..\OrderModifier.php:314
14  2.1829  36123552    GSTTaxModifier::get_default_country_code_combined( 
)   ..\GSTTaxModifier.php:539

-----------------------------------

Regards,
Jose A.

Original issue reported on code.google.com by supp...@sendasoft.com on 3 Sep 2013 at 3:32

GoogleCodeExporter commented 8 years ago
THANK YOU

Original comment by nfranc...@gmail.com on 4 Sep 2013 at 1:36