burnbright/silverstripe-shop — Issue #2: Product page translation
Author: jnckka
Created: 2012-02-26 20:58:37+00:00
State: open

I've two language website English and French... I'm using silverstripe-shop module with SilverStripe v2.4.7

Product Group translation is working properly but when I translate a product item I get the following error:

RROR [User Error]: Uncaught Exception: Object->__call(): the method 'productgroups_original' does not exist on 'Product'
IN POST /SilverStripe-v2.4.7/admin/getitem?ID=23&locale=fr_FR&ajax=1
Line 724 in D:\server\www\SilverStripe-v2.4.7\sapphire\core\Object.php

Source
======
715:
716:	default :
717:	throw new Exception (
718:	"Object->__call(): extra method $method is invalid on $this->class:" . var_export($config,
true)
719:	);
720:	}
721:	} else {
722:	// Please do not change the exception code number below.
723:
* 724:	throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'",
2175);
725:	}
726:	}
727:
728:	//
-----------------------------------------------------------------------------------------------------------------
729:
730:	/**

Trace
=====

Object->__call(ProductGroups_original,Array)
line 117 of HasManyComplexTableField.php

Product->ProductGroups_original()
line 117 of HasManyComplexTableField.php

HasManyComplexTableField->selectedItemIDs()
line 126 of HasManyComplexTableField.php

HasManyComplexTableField->ExtraData()
line 369 of ViewableData.php

ViewableData->obj(ExtraData,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(ExtraData,,1)
line 763 of .cache.sapphire.templates.RelationComplexTableField.ss

include(C:\Windows\Temp\silverstripe-cacheD--server-www-SilverStripe-v2.4.7\.cache.sapphire.templates.RelationComplexTableField.ss)
line 429 of SSViewer.php

SSViewer->process(ManyManyComplexTableField)
line 342 of ViewableData.php

ViewableData->renderWith(RelationComplexTableField)
line 275 of ComplexTableField.php

ComplexTableField->FieldHolder()
line 64 of HasManyComplexTableField.php

HasManyComplexTableField->FieldHolder()
line 93 of CompositeField.php

CompositeField->FieldHolder()
line 369 of ViewableData.php

ViewableData->obj(FieldHolder,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(FieldHolder,,1)
line 73 of .cache.sapphire.templates.TabSetFieldHolder.ss

include(C:\Windows\Temp\silverstripe-cacheD--server-www-SilverStripe-v2.4.7\.cache.sapphire.templates.TabSetFieldHolder.ss)
line 429 of SSViewer.php

SSViewer->process(TabSet)
line 342 of ViewableData.php

ViewableData->renderWith(TabSetFieldHolder)
line 80 of TabSet.php

TabSet->FieldHolder()
line 369 of ViewableData.php

ViewableData->obj(FieldHolder,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(FieldHolder,,1)
line 58 of .cache.sapphire.templates.TabSetFieldHolder.ss

include(C:\Windows\Temp\silverstripe-cacheD--server-www-SilverStripe-v2.4.7\.cache.sapphire.templates.TabSetFieldHolder.ss)
line 429 of SSViewer.php

SSViewer->process(TabSet)
line 342 of ViewableData.php

ViewableData->renderWith(TabSetFieldHolder)
line 80 of TabSet.php

TabSet->FieldHolder()
line 369 of ViewableData.php

ViewableData->obj(FieldHolder,,,1)
line 446 of ViewableData.php

ViewableData->XML_val(FieldHolder,,1)
line 77 of .cache.sapphire.templates.Includes.Form.ss

include(C:\Windows\Temp\silverstripe-cacheD--server-www-SilverStripe-v2.4.7\.cache.sapphire.templates.Includes.Form.ss)
line 429 of SSViewer.php

SSViewer->process(Form)
line 342 of ViewableData.php

ViewableData->renderWith(Array)
line 1108 of Form.php

Form->forTemplate()
line 1135 of Form.php

Form->formHtmlContent()
line 391 of LeftAndMain.php

LeftAndMain->getitem(SS_HTTPRequest)
line 193 of Controller.php

Controller->handleAction(SS_HTTPRequest)
line 143 of RequestHandler.php

RequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.php

Controller->handleRequest(SS_HTTPRequest)
line 282 of Director.php

Director::handleRequest(SS_HTTPRequest,Session)
line 125 of Director.php

Director::direct(/admin/getitem)
line 127 of main.php

Hope there is a solution for this problem
Thank you