Image+
Tested version: 2.13.0-rc1
On MODX 3 version: Nightly from 2021-03-01
Installation
Any errors in the installer besides the expected “Deprecated modNamespace, switch to <…>”?
No, installation seemed to go as expected.
Basic usage
When setting up a TV, I selected the input type Image+, but then when going to the Output Options, selecting Image+ there generated a popup error: Requested processor not found. I switched the Output Type back to Default and was able to continue. Assigning the TV to a template worked.
When loading a page with this TV assigned though, I could go not further; a large block of errors appeared in the editing window. Leaving the Target Width and Height blank instead of entering values made no difference.
Here’s the block of errors:
TypeError: Argument 3 passed to ImagePlus::prepareTvValue() must be an instance of modTemplateVar or null, instance of MODX\Revolution\mysql\modTemplateVar given, called in /home/rainbowt/modx3/core/components/imageplus/elements/tv/input/imageplus.class.php on line 94
Errors:
ImagePlus->prepareTvValue(string “”, Array ( [targetWidth] => 300 [targetHeight] => 200 [targetRatio] => [thumbnailWidth] => [allowAltTag] => 1 [allowCaption] => [allowCredits] => [allowBlank] => 1 ) , object)
ImagePlusInputRender->process(string “”, Array ( [targetWidth] => 300 [targetHeight] => 200 [targetRatio] => [thumbnailWidth] => [allowAltTag] => 1 [allowCaption] => [allowCredits] => [allowBlank] => 1 ) )
MODX\Revolution\modTemplateVarRender->render(string “”, Array ( [targetWidth] => 300 [targetHeight] => 200 [targetRatio] => [thumbnailWidth] => [allowAltTag] => 1 [allowCaption] => [allowCredits] => [allowBlank] => 1 ) )
MODX\Revolution\modTemplateVarInputRender->render(string “”, Array ( [targetWidth] => 300 [targetHeight] => 200 [targetRatio] => [thumbnailWidth] => [allowAltTag] => true [allowCaption] => false [allowCredits] => false [allowBlank] => 1 ) )
MODX\Revolution\modTemplateVar->getRender(Array ( [targetWidth] => 300 [targetHeight] => 200 [targetRatio] => [thumbnailWidth] => [allowAltTag] => true [allowCaption] => false [allowCredits] => false [allowBlank] => 1 ) , string “”, Array ( [0] => /home/rainbowt/modx3/core/src/Revolution/Processors/Element/TemplateVar/Renders/mgr/input/ [36] => /home/rainbowt/modx3/core/components/migx/elements/tv/input/ [45] => /home/rainbowt/modx3/core/components/imageplus/elements/tv/input/ ) , string “input”, integer “68”, string “imageplus”)
MODX\Revolution\modTemplateVar->renderInput(object, Array ( [value] => ) )
ResourceManagerController->loadTVs(Array ( ) )
ResourceUpdateManagerController->process(Array ( [a] => resource/update [id] => 68 ) )
MODX\Revolution\modManagerController->render()
MODX\Revolution\modManagerResponse->outputContent(Array ( ) )
MODX\Revolution\modManagerRequest->prepareResponse()
MODX\Revolution\modManagerRequest->handleRequest()
Kitchen sink test
Not possible to test anything further because of errors above.
Error log
No additional errors were in the log
Information from developer
The extra is not described as compatible with MODX3.
Verdict
Needs work
I can’t find this extra in Github. Do you know where the repository is?