At first: Bruno, thanks for your hard work on this one!
I tested it again an nearly all problems seem to be resolved but one continues.
My Setup is the same as last time, modX 2.2.2pl on PHP 5.3.5. I completely cleaned MIGX 2.0.0 from the system (incl. all tables) and installed the new 2.0.1pl. Then I exactly did what the doodles-tutorial tells me. Everything seems to work until you come to the doodles page the first time.
If I visit it, I get the following in my error log:
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) doodles::getSelectColumns() is not a valid static method.
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) No class specified for loadClass
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) No class specified for loadClass
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class !
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) No class specified for loadClass
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) No class specified for loadClass
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class doodles
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
[2012-05-17 15:47:27] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) doodles::loadCollection() is not a valid static method.
Looks like the Doodle class never gets loaded. My doodles directory looks ok though, at least as far as I can tell:
Content of /core/components/doodles:
model/
doodles/
mysql/
doodle.class.php
doodle.map.inc.php
doodle.class.php
metadata.mysql.php
schema/
doodles.mysql.schema.xml
When I click the "Add Doodle" button in my Doodles CMP the only thing in the opening window is:
Fatal error: Call to a member function set() on a non-object in /var/www/dev/modx/modx-2.2.2-pl/core/components/migx/processors/mgr/default/fields.php on line 29
I had a short attempt on debugging it and this error stems from this (where $classname == 'doodles'):
$object = $modx->newObject($classname);
$object->set('object_id', 'new');
After the first line $object is NULL, so my Doodle class isn't loaded there, too. This is, what the error log says after trying to add:
[2012-05-17 15:54:51] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
[2012-05-17 15:54:51] (ERROR @ /dev/modx/modx-2.2.2-pl/assets/components/migx/connector.php) Could not load class: doodles from mysql.doodles.
I would love to help you with fixing this, but until now, I didn't have a chance to really look into XPDO, so I don't really have a clue what to do. If I can help you with more detailed information, just tell me, I'll try to give it to you then.
Btw, another strange thing that I just stumbled over: I only get the messages in the error log if I set the system setting 'debug' to 0 or leave it empty, if I set it to 1 or something else, there are no more error logs or inline errors.
With kind regards,
Marc