ok in dev mode the error when i try to create a new gallery page is:
ERROR [User Error]: Bad RecordClassName '' and $baseClass not set
IN POST /admin/AddPageOptionsForm
Line 2762 in C:\Domains\kenpo-karate.co.nz\wwwroot\sapphire\core\model\DataObject.php
Source
======
2753: foreach($records as $record) {
2754: if(empty($record['RecordClassName'])) {
2755: $record['RecordClassName'] = $record['ClassName'];
2756: }
2757: if(class_exists($record['RecordClassName'])) {
2758: $results[] = new $record['RecordClassName']($record);
2759: } else {
2760: if(!$baseClass) {
2761: user_error("Bad RecordClassName '{$record['RecordClassName']}' and "
* 2762: . "\$baseClass not set", E_USER_ERROR);
2763: } else if(!is_string($baseClass) || !class_exists($baseClass)) {
2764: user_error("Bad RecordClassName '{$record['RecordClassName']}' and bad "
2765: . "\$baseClass '$baseClass not set", E_USER_ERROR);
2766: }
2767: $results[] = new $baseClass($record);
2768: }
Trace
=====
<ul>user_error(Bad RecordClassName '' and $baseClass not set,256)
line 2762 of DataObject.php
DataObject->buildDataObjectSet(MySQLQuery,DataObjectSet)
line 745 of File.php
File->instance_get("File"."ParentID" = 19 AND "File"."ID" != 19,,,,DataObjectSet)
line 2714 of DataObject.php
DataObject::get(File,"File"."ParentID" = 19 AND "File"."ID" != 19,)
line 531 of Hierarchy.php
Hierarchy->stageChildren(1)
call_user_func_array(Array,Array)
line 693 of Object.php
Object->__call(stageChildren,Array)
Folder->stageChildren(1)
line 413 of Hierarchy.php
Hierarchy->AllChildren()
call_user_func_array(Array,Array)
line 693 of Object.php
Object->__call(AllChildren,Array)
Folder->AllChildren()
line 343 of Folder.php
Folder->updateFilesystem()
line 345 of Folder.php
Folder->updateFilesystem()
line 345 of Folder.php
Folder->updateFilesystem()
line 355 of File.php
File->onBeforeWrite()
line 936 of DataObject.php
DataObject->write()
line 77 of ImageGalleryPage.php
ImageGalleryPage->checkFolder()
line 63 of ImageGalleryPage.php
ImageGalleryPage->onAfterWrite()
line 1056 of DataObject.php
DataObject->write()
line 559 of CMSMain.php
CMSMain->addpage(Array,Form,SS_HTTPRequest)
line 300 of Form.php
Form->httpSubmission(SS_HTTPRequest)
line 137 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
line 155 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
line 281 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
line 124 of Director.php
Director::direct(/admin/AddPageOptionsForm)
line 127 of main.php
</ul>