Revolution: Error while editing a resource if the resource has image/file TV

Created on 23 Jul 2021  路  3Comments  路  Source: modxcms/revolution

Bug report

Summary

Error while editing a resource if the resource has image/file TV.

What it looks like:
tv_bug

Error code:

Error: Class 'League\Flysystem\Local\LocalFilesystemAdapter' not found

Errors:
 MODX\Revolution\Sources\modFileMediaSource->initialize()
 MODX\Revolution\modElement->setSource(object)
 MODX\Revolution\modElement->getSource(string "web")
 modTemplateVarInputRenderFile->process(string "", Array ( [allowBlank] => 1 ) )
 MODX\Revolution\modTemplateVarRender->render(string "", Array ( [allowBlank] => 1 ) )
 MODX\Revolution\modTemplateVarInputRender->render(string "", Array ( [allowBlank] => true ) )
 MODX\Revolution\modTemplateVar->getRender(Array ( [allowBlank] => true ) , string "", Array ( [0] => /home/a/aleeviz8/m3/public_html/core/src/Revolution/Processors/Element/TemplateVar/Renders/mgr/input/ ) , string "input", integer "1", string "file")
 MODX\Revolution\modTemplateVar->renderInput(object, Array ( [value] => ) )
 ResourceManagerController->loadTVs(Array ( ) )
 ResourceUpdateManagerController->process(Array ( [a] => resource/update [id] => 1 ) )
 MODX\Revolution\modManagerController->render()
 MODX\Revolution\modManagerResponse->outputContent(Array ( ) )
 MODX\Revolution\modManagerRequest->prepareResponse()
 MODX\Revolution\modManagerRequest->handleRequest()

Step to reproduce

1) Create a TV with type image/file and set it for the template.
2) Try editing the resource with this template.

Environment

MODX 3.0.0-alpha3

bug area-core

All 3 comments

Hmmm I can't replicate that...
Do you have v2 of Flysystem in the vendor dir?

Yes, thanks, I just updated the branch via fetch / pull, but forgot about the changes in composer.json.
Everything works when installed from scratch.

Fantastic! :)

Was this page helpful?
0 / 5 - 0 ratings