liqiusheng / silverstripe-ecommerce

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

[User Error] Uncaught ReflectionException: Class ProductVariation does not exist #598

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
e-commerce version:

SilverStripe version:

What steps will reproduce the problem?
1. Install fresh version of ecommerce on existing silverstripe 3.1
2. Enter admin and attempt to view "Products" tab

What is the expected output? What do you see instead?

[User Error] Uncaught ReflectionException: Class ProductVariation does not exist
GET /silverstripe/admin/products/
Line 847 in 
/Applications/MAMP/htdocs/silverstripe/framework/control/injector/Injector.php
Source
838 class InjectionCreator {
839     /**
840      *
841      * @param string $object
842      *                  A string representation of the class to create
843      * @param array $params
844      *                  An array of parameters to be passed to the constructor
845      */
846     public function create($class, $params = array()) {
847         $reflector = new ReflectionClass($class);
848         if (count($params)) {
849             return $reflector->newInstanceArgs($params); 
850         }
851         return $reflector->newInstance();
852     }
853 }
Trace
ReflectionClass->__construct(ProductVariation) 
Injector.php:847
InjectionCreator->create(ProductVariation,Array) 
Injector.php:486
Injector->instantiate(Array,ProductVariation) 
Injector.php:791
Injector->get(ProductVariation) 
Core.php:155
singleton(ProductVariation) 
ModelAdmin.php:296
ModelAdmin->getManagedModels() 
ModelAdminEcommerceBaseClass.php:26
ModelAdminEcommerceBaseClass->getManagedModels() 
ModelAdmin.php:116
ModelAdmin->init() 
ProductsAndGroupsModelAdmin.php:31
ProductsAndGroupsModelAdmin->init() 
Controller.php:139
Controller->handleRequest(SS_HTTPRequest,DataModel) 
LeftAndMain.php:438
LeftAndMain->handleRequest(SS_HTTPRequest,DataModel) 
AdminRootController.php:89
AdminRootController->handleRequest(SS_HTTPRequest,DataModel) 
Director.php:325
Director::handleRequest(SS_HTTPRequest,Session,DataModel) 
Director.php:143
Director::direct(/admin/products/,DataModel) 
main.php:189

Original issue reported on code.google.com by nicholas...@gmail.com on 24 Oct 2013 at 10:10

GoogleCodeExporter commented 8 years ago
Sorry- Latest version of ecommerce from GitHub, today 24 Oct 2013
Silverstripe 3.1

Original comment by nicholas...@gmail.com on 24 Oct 2013 at 10:12

GoogleCodeExporter commented 8 years ago
thank you for your patience. This has been fixed! (soon up on git / svn)

Original comment by nfranc...@gmail.com on 27 Oct 2013 at 9:19

GoogleCodeExporter commented 8 years ago
Thanks very much, I look forward to trying it now!

Original comment by nicholas...@gmail.com on 6 Nov 2013 at 3:45

GoogleCodeExporter commented 8 years ago
not yet on git... but available on SVN

Original comment by nfranc...@gmail.com on 6 Nov 2013 at 8:30