MODX3 errors in manager error log

In MODX 3.0.1-pl, on MODX Cloud
Every time I open the gallery resource for editing the error log prints this set of errors. Even if I don’t make any edits or save, the errors appear upon clicking the resource in tree. Everything seems to be working as expected… Do I just ignore these?

[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1340) Could not get table class for class: modMediaSource
[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1309) Could not get table name for class: modMediaSource
[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1340) Could not get table class for class: modMediaSource
[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1309) Could not get table name for class: modMediaSource
[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 786) modMediaSource::getSelectColumns() is not a valid static method.
[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 786) modMediaSource::getSelectColumns() is not a valid static method.
[2022-06-08 16:39:06] (ERROR @ /www/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 786) modMediaSource::loadCollection() is not a valid static method.
[2022-06-08 16:39:06] (ERROR @ /www/core/src/Revolution/Processors/Model/GetListProcessor.php : 97) PHP warning: Invalid argument supplied for foreach()

I do think those are caused by MoreGallery, but are safe to ignore. There’s an issue for that in our tracker so we’ll look at resolving those in an update.

1 Like

It turns out the per-resource media source selection was actually broken and responsible for this error. That’s fixed in 1.5.2, which I expect to release towards the end of next week.

In the meantime, the patch is to edit core/components/moregallery/processors/mgr/combo/source.class.php, replacing:

    public $classKey = 'modMediaSource';

with

    public $classKey = \MODX\Revolution\Sources\modMediaSource::class;
1 Like