alexm
Active member
- Affected version
- 2.2
Possibly a bug in XFMG in image/edit/preview function:
If I ignore the preview it still works nicely.
Regards,
Alex
Code:
InvalidArgumentException: Class XFMG\Media\EditImagePreview does not match formatter pattern %s\%s\View\%s
src/XF.php:1129
Generated by: xxxxxx
Sep 28, 2024 at 10:32 PM
Stack trace
#0 src/XF/App.php(1667): XF::stringToClass('XFMG\\Media\\Edit...', '%s\\%s\\View\\%s', 'Pub')
#1 src/XF/Container.php(234): XF\App->XF\{closure}('XFMG\\Media\\Edit...', Array, Object(XF\Container))
#2 src/XF/Container.php(247): XF\Container->create('view', 'XFMG\\Media\\Edit...', Array)
#3 src/XF/Mvc/Renderer/AbstractRenderer.php(79): XF\Container->XF\{closure}('XFMG\\Media\\Edit...', Array)
#4 src/XF/Mvc/Renderer/AbstractRenderer.php(87): XF\Mvc\Renderer\AbstractRenderer->createViewObject('XFMG\\Media\\Edit...', 'public:xfmg_med...', Array)
#5 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('XFMG\\Media\\Edit...', 'public:xfmg_med...', Array)
#6 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('XFMG\\Media\\Edit...', 'public:xfmg_med...', Array)
#7 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Request state
array(4) {
["url"] => string(39) "/media/xxxxxxxx.14795/edit-image"
["referrer"] => string(77) "https://www.xxxxxxxxx/media/xxxxxxxx.14795/edit-image"
["_GET"] => array(0) {
}
["_POST"] => array(6) {
["_xfToken"] => string(8) "********"
["crop_data"] => string(134) "{"scaleX":1,"scaleY":1,"rotate":90,"x":162.48506525511382,"y":4.017338359655018,"width":1275.0299269153227,"height":713.9784946236559}"
["preview"] => string(9) "undefined"
["_xfRequestUri"] => string(39) "/media/xxxxxxxx.14795/edit-image"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
If I ignore the preview it still works nicely.
Regards,
Alex