Hi
I have installed the latest silverstripe 2.3.5 with the 0.6 beta commerce package and when I go to products I get the following error:
Debug (Versioned::get_version() in line 758 of Versioned.php)
[User Error] Versioned::get_version: Couldn't get Product.12, version 17
GET /products/
Line 759 in /home/sites/ironsigns/web/sapphire/core/model/Versioned.php
Source
750 Versioned::$reading_stage = null;
751
752 $baseTable = ClassInfo::baseDataClass($class);
753 $query = singleton($class)->buildVersionSQL("`{$baseTable}`.RecordID = $id AND `{$baseTable}`.Version = $version");
754 $record = $query->execute()->record();
755 $className = $record['ClassName'];
756 if(!$className) {
757 Debug::show($query->sql());
758 Debug::show($record);
759 (actual error) user_error("Versioned::get_version: Couldn't get $class.$id, version $version", E_USER_ERROR); (/actual error?
760 }
761
762 Versioned::$reading_stage = $oldStage;
763
764 return new $className($record);
765 }
is this due to the latest silverstripe?
Stu