I tested with several variations, but I got always
Requested processor not found
the code of processor GetList.php:
<?php
namespace customer\Processors\Customers;
use MODX\Revolution\Processors\Model\GetListProcessor;
use customer\Model\Customers;
class GetList extends GetListProcessor
{
public $classKey = Customers::class;
public $defaultSortField = 'lastname';
public $defaultSortDirection = 'ASC';
public $objectType = 'customer.customers'
}
in error log:
Unable to load processor for action "customer\src\Processors\Customers\GetList", it does not exist as an autoloadable class that extends \MODX\Revolution\Processors\Processor, and also not as a file in "/www/xxx/core/src/Revolution/Processors/customer\src\Processors\Customers\GetList.class.php"
@halftrainedharry Does $modx->addPackage also add an autoloader to the directory? Usually I have a composer.json to define my namespace/path and a require __DIR__ . '/vendor/autoload.php'; in the bootstrap.php which makes it available in-memory…
…but I’ve not yet seen that YouTube video (thanks for sharing!) and haven’t made any 3.0-only extras yet so I’m not sure if that’ll work on its own, too.
and your GetList processor is missing a semicolon at the end in this line
public $objectType = 'customer.customers'
Also make sure that you use the same upper-case/lower-case letters in the action as in the file name. I get the same error message, if I for example change the name of the processor-file to Getlist.php (with a lower-case "l").
thank you very much.
in schema, thats right, it was an old version I pasted here.
here in my installation I dont runs. I dont understand this. I followed instructions from your videos.
Also the sample.php processor dont run with the same error.
How could I debug the problem?
I think the problem should be in one of these sections:
bootstrap.php
processor itself
javascript call.
at the moment with all changes the error message always the same:
Unable to load processor for action "customer\src\processors\customers\getlist", it does not exist as an autoloadable class that extends \MODX\Revolution\Processors\Processor,
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.