MODX3 gitify Problem MediaSources

Hello,

I am trying to setup an staging environment and want to use gitify to transfer data.
The problem ist with modMediaSource:

[2024-02-17 17:34:21] (ERROR @ /www/a-migrate/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1346) Could not get table class for class: modMediaSource
[2024-02-17 17:34:21] (ERROR @ /www/a-migrate/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1315) Could not get table name for class: modMediaSource
[2024-02-17 17:34:21] (ERROR @ /www/a-migrate/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 787) modMediaSource::getSelectColumns() is not a valid static method.
Extracting modMediaSource into mediasources (0 records)...
[2024-02-17 17:34:21] (ERROR @ /www/a-migrate/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1346) Could not get table class for class: modMediaSource
[2024-02-17 17:34:21] (ERROR @ /www/a-migrate/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 1315) Could not get table name for class: modMediaSource
[2024-02-17 17:34:21] (ERROR @ /www/a-migrate/core/vendor/xpdo/xpdo/src/xPDO/xPDO.php : 787) modMediaSource::loadCollection() is not a valid static method.
[2024-02-17 17:34:21] (ERROR @ /home/Gitify/src/Command/ExtractCommand.php : 210) PHP warning: foreach() argument must be of type array|object, null given
Extracting sources.modMediaSourceElement into mediasource_elements (222 records)...

I use gitify 2.0.0-alpha1

and:

mediasources:
    class: modMediaSource
    primary: id
  mediasource_elements:
    class: sources.modMediaSourceElement
    primary:
      - source
      - object_class
      - object
      - context_key

any ideas?

thank you in advance

bye
Chris

Does it work if you use the fully qualified MODX 3 class name → MODX\Revolution\Sources\modMediaSource?

indeed, with this it runs.
strange.

thank you very much. :pray:

bye
Chris

1 Like