Daniel,
Thanks for looking further into this.
The version 0.0.3 you most recently posted does solve the login issue, and works well.
However - the "Load Tree" button in the fields tab doesn't seem seem to work. The other functions do.
Back with 0.0.4, the error I'm receiving in dev mode is
[User Error] Couldn't run query: SELECT `Permission`.*, `SimplifyPermission`.*, `Permission`.ID, if(`Permission`.ClassName,`Permission`.ClassName,'Permission') AS RecordClassName FROM `Permission` LEFT JOIN `SimplifyPermission` ON `SimplifyPermission`.ID = `Permission`.ID WHERE (`Code` = 'ADMIN') ORDER BY ID LIMIT 1 Column 'Code' in where clause is ambiguous
POST /zzzzzzzzzzzzzzzz.co.uk/silverstripe/Security/LoginForm
Line 401 in /home/zzzzzzzzzzzzzzzzzzzzzzzzzzzz/public_html/zzzzzzzzzzzzzzzzzzzzzzzzzzzz.co.uk/silverstripe/sapphire/core/model/MySQLDatabase.php
Source
392 }
393
394 function databaseError($msg, $errorLevel = E_USER_ERROR) {
395 // try to extract and format query
396 if(preg_match('/Couldn\'t run query: ([^\|]*)\|\s*(.*)/', $msg, $matches)) {
397 $formatter = new SQLFormatter();
398 $msg = "Couldn't run query: \n" . $formatter->formatPlain($matches[1]) . "\n\n" . $matches[2];
399 }
400
401 user_error($msg, $errorLevel);
402 }
403 }
404
405 /**
406 * A result-set from a MySQL database.
407 * @package sapphire
Trace
* Couldn't run query: SELECT `Permission`.*, `SimplifyPermission`.*, `Permission`.ID, if(`Permission`.ClassName,`Permission`.ClassName,'Permission') AS RecordClassName FROM `Permission` LEFT JOIN `SimplifyPermission` ON `SimplifyPermission`.ID = `Permission`.ID WHERE (`Code` = 'ADMIN') ORDER BY ID LIMIT 1 Column 'Code' in where clause is ambiguous
Line 401 of MySQLDatabase.php
* MySQLDatabase->databaseError(Couldn't run query: SELECT `Permission`.*, `SimplifyPermission`.*, `Permission`.ID, if(`Permission`.ClassName,`Permission`.ClassName,'Permission') AS RecordClassName FROM `Permission` LEFT JOIN `SimplifyPermission` ON `SimplifyPermission`.ID = `Permission`.ID WHERE (`Code` = 'ADMIN') ORDER BY ID LIMIT 1 | Column 'Code' in where clause is ambiguous,256)
Line 102 of MySQLDatabase.php
* MySQLDatabase->query(SELECT `Permission`.*, `SimplifyPermission`.*, `Permission`.ID, if(`Permission`.ClassName,`Permission`.ClassName,'Permission') AS RecordClassName FROM `Permission` LEFT JOIN `SimplifyPermission` ON `SimplifyPermission`.ID = `Permission`.ID WHERE (`Code` = 'ADMIN') ORDER BY ID LIMIT 1,256)
Line 120 of DB.php
* DB::query(SELECT `Permission`.*, `SimplifyPermission`.*, `Permission`.ID, if(`Permission`.ClassName,`Permission`.ClassName,'Permission') AS RecordClassName FROM `Permission` LEFT JOIN `SimplifyPermission` ON `SimplifyPermission`.ID = `Permission`.ID WHERE (`Code` = 'ADMIN') ORDER BY ID LIMIT 1)
Line 426 of SQLQuery.php
* SQLQuery->execute()
Line 2527 of DataObject.php
* DataObject->instance_get_one(`Code` = 'ADMIN',ID)
Line 2464 of DataObject.php
* DataObject::get_one(Permission,`Code` = 'ADMIN',1,ID)
Line 584 of Security.php
* Security::findAnAdministrator()
Line 28 of MemberAuthenticator.php
* MemberAuthenticator::authenticate(Array,MemberLoginForm)
Line 199 of MemberLoginForm.php
* MemberLoginForm->performLogin(Array)
Line 118 of MemberLoginForm.php
* MemberLoginForm->dologin(Array,MemberLoginForm,HTTPRequest)
Line 246 of Form.php
* Form->httpSubmission(HTTPRequest)
Line 129 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 143 of RequestHandler.php
* RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
* Controller->handleRequest(HTTPRequest)
Line 277 of Director.php
* Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
* Director::direct(/Security/LoginForm)
Line 118 of main.php
I hope this helps
K