I've got this problem too.
MODx 2.5.0 Migx 2.9.6
Tried manually clearing the cache. Haven't tried system-setting debug to 0 as that looks like a very temporary workaround.
Looking at file /core/components/migx/model/migx/migx.class.php on line 883
$this->config['media_source_id'] = $this->source->id;
This provides advice -
https://github.com/Bruno17/MIGX/issues/222
Linking to this
https://github.com/Bruno17/MIGX/commit/22004b3d057d0a0c8d55c4f431f42b65883a404f
So I made the change to line 883 and then went looking for getDefaultSource around 1492. Trouble is, this function doesn't exist. Although there is one reference to it. From getFieldSource().
$mediasource = modMediaSource::getDefaultSource($this->modx,$defaultSourceId);
}
return $mediasource;
}
// I expected to see getDefaultSource here...
function generateTvTab($tvnames) {
$tvnames = !empty($tvnames) ? explode(',', $tvnames) : array();
Looking at the Changelog in the Package Installer only 2.9.5 changes are mentioned.
I note from gitgub there is a 2.9.7 and a 2.10.0 beta. Perhaps 2.9.7 is the working solution?
Summary
2.9.6 seems to be broken. But why isn't everyone using MIGx over the past year or so seeing the same problem? And changelog in Package Installer only goes up to 2.9.5. Which may be a typo.
Should 2.9.7 be added to the Package Installer?
Thanks
Parthian