Open jschultze opened 3 months ago
It might provide some insight if you'd add this before the first attempt to access $settings['componentParts']
:
if (!isset($settings['componentParts'])) {
echo "Missing componentParts setting for " . $record['source_id'] . ":\n";
var_export($settings);
}
@jschultze Did you try the suggestion above? Any results? Another option, if feasible, would be to run under debugger with it set to stop on all warnings.
I have not yet fully understood the problem, and will create a pull request if I do. Until then, I just wanted to document it here.
When running the deduplication command, multiple errors of this kind appear in the logs:
The value for
componentParts
is not explicitly configured indatasources.ini
. It should then be set to the default value "as_is" ininitSourceSettings()
ofsrc/RecordManager/Base/Command/AbstractBase.php
, but that does not seem to happen.One solution would be to check for this array key in
isHiddenComponentPart()
ofsrc/RecordManager/Base/Utils/MetadataUtils.php
, but as far as I read the code, the default value should be set all right. So there might be an error lying underneath and such a direct check would not take that into consideration.System:
PHP 8.2.19
on Debian 11.