This was my test script:
<?php
try {
$array = array(
'pagetitle' => 'test',
'content' => 'stuff',
'class_key' => 'modDocument',
);
var_dump(class_exists('modResourceCreateProcessor'));
var_dump($modx->processors);
$result = $modx->runProcessor('resource/create', $array);
}
catch (Exception $e) {
echo $e->getMessage();
}
var_dump($modx->processors);
Which returned this with no commented lines in articlescontainer.class.php:
bool(true)
array(0) { }
Fatal error: Cannot redeclare class modResourceCreateProcessor in C:\wamp\www\revolution\core\model\modx\processors\resource\create.class.php on line 606
and this when I commented out the first bit:
Fatal error: Class 'modResourceCreateProcessor' not found in C:\wamp\www\revolution\core\components\articles\model\articles\articlescontainer.class.php on line 487
-> note that it doesn't show my dumps, so it doesnt actually make it to the test snippet - it fails earlier on in the process.
With the path to Articles changed, here's my output:
bool(false)
array(0) { }
array(1) { ["C:/wamp/www/revolution/core/model/modx/processors/resource/create.class.php"]=> string(26) "modResourceCreateProcessor" }