tasfe / silverstripe-ecommerce

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

Fatal error: Object::add_extension() - Can't find extension class for ... #524

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
e-commerce version: 3.1 26.03.2013

SilverStripe version: 3.1 from github (26.03.2013)

https://github.com/silverstripe/silverstripe-cms/tree/3.1
https://github.com/silverstripe/sapphire/tree/3.1

Fatal error: Object::add_extension() - Extension "Member" is not a subclass of 
Extension in C:\wamp\www\framework\core\Object.php on line 467

Fatal error: Object::add_extension() - Can't find extension class for "Payment" 
in C:\wamp\www\framework\core\Object.php on line 462

Fatal error: Class 'Payment' not found in C:\wamp\www\ecommerce\_config.php on 
line 12

Fatal error: Object::add_extension() - Extension "SiteTree" is not a subclass 
of Extension in C:\wamp\www\framework\core\Object.php on line 467

Fatal error: Object::add_extension() - Extension "Page_Controller" is not a 
subclass of Extension in C:\wamp\www\framework\core\Object.php on line 467

Fatal error: Object::add_extension() - Extension "DevelopmentAdmin" is not a 
subclass of Extension in C:\wamp\www\framework\core\Object.php on line 467

ecommerce\_config.php

You must change the way to add an extension:

Member::add_extension("EcommerceRole");
//Payment::add_extension("Payment", "EcommercePayment");  Jose()
SiteTree::add_extension("EcommerceSiteTreeExtension");
Page_Controller::add_extension("EcommerceSiteTreeExtension_Controller");
DevelopmentAdmin::add_extension("EcommerceDevelopmentAdminDecorator");
//DevelopmentAdmin::$allowed_actions[] = 'ecommerce';

Regards,
Jose A.

Original issue reported on code.google.com by supp...@sendasoft.com on 26 Mar 2013 at 12:17

GoogleCodeExporter commented 9 years ago
THANK YOU FOR REPORTING!

Original comment by nfranc...@gmail.com on 20 Aug 2013 at 6:37