BoldMinded acquires Ansel, support ending for all add-ons. BoldMinded acquires Ansel, support ending for all add-ons. Read More →
Support has been discontinued. Issues remain available as an archive. Support has been discontinued. Issues remain available as an archive.
Error Saving Entry With Ansel Field
#222 opened by Torch
Description
I have an Ansel field as part of an entry and it worked on EE 6.2.7 with Ansel 2.3.1, however, upon updating EE to 7.2.1 when savings the entry either adding a new image upload or selecting and existing image I receive the below error. The upload appears to work I can see the file in the file manager. The image doesn't show on the frontend and outputs "unknown" for the src. I have tried with File Manager in Compatibility Mode on and off. Let me know what else I can provide to help troubleshoot.
Notice
Undefined index: directory
ee/legacy/libraries/Filemanager.php, line 1134
- Severity: E_NOTICE
Error - ExpressionEngine
Error Caught
Call to a member function getFilesystem() on null
ee/legacy/libraries/Filemanager.php:1134
Stack Trace: Please include when reporting this error
- #0 user/addons/ansel/Service/Sources/Ee.php(378): Filemanager->create_thumb('...', Array, true, false)
- #1 [internal function]: BuzzingPixel\Ansel\Service\Sources\Ee->addFile('11', '...')
- #2 user/addons/ansel/Service/Sources/SourceRouter.php(84): call_user_func_array(Array, Array)
- #3 user/addons/ansel/Service/AnselImages/SaveRow.php(127): BuzzingPixel\Ansel\Service\Sources\SourceRouter->__call('addFile', Array)
- #4 user/addons/ansel/Controller/Field/FieldSave.php(95): BuzzingPixel\Ansel\Service\AnselImages\SaveRow->save(Array, Object(BuzzingPixel\Ansel\Model\FieldSettings), '9', '491', NULL, NULL)
- #5 user/addons/ansel/ft.ansel.php(575): BuzzingPixel\Ansel\Controller\Field\FieldSave->save(Array, '9', '491', NULL, NULL)
- #6 ee/legacy/libraries/api/Api_channel_fields.php(382): Ansel_ft->post_save(Array)
- #7 ee/ExpressionEngine/Model/Content/FieldFacade.php(239): Api_channel_fields->apply('post_save', Array)
- #8 ee/ExpressionEngine/Model/Content/ContentModel.php(74): ExpressionEngine\Model\Content\FieldFacade->postSave()
- #9 ee/ExpressionEngine/Model/Channel/ChannelEntry.php(438): ExpressionEngine\Model\Content\ContentModel->onAfterSave()
- #10 [internal function]: ExpressionEngine\Model\Channel\ChannelEntry->onAfterSave()
- #11 ee/ExpressionEngine/Service/Model/Model.php(840): call_user_func_array(Array, Array)
- #12 ee/ExpressionEngine/Service/Model/Query/Insert.php(31): ExpressionEngine\Service\Model\Model->emit('afterSave')
- #13 ee/ExpressionEngine/Service/Model/DataStore.php(275): ExpressionEngine\Service\Model\Query\Insert->run()
- #14 ee/ExpressionEngine/Service/Model/DataStore.php(230): ExpressionEngine\Service\Model\DataStore->runQuery('Insert', Object(ExpressionEngine\Service\Model\Query\Builder))
- #15 ee/ExpressionEngine/Service/Model/Query/Builder.php(79): ExpressionEngine\Service\Model\DataStore->insertQuery(Object(ExpressionEngine\Service\Model\Query\Builder))
- #16 ee/ExpressionEngine/Service/Model/Model.php(362): ExpressionEngine\Service\Model\Query\Builder->insert()
- #17 ee/ExpressionEngine/Model/Content/ContentModel.php(219): ExpressionEngine\Service\Model\Model->save()
- #18 ee/ExpressionEngine/Controller/Publish/AbstractPublish.php(446): ExpressionEngine\Model\Content\ContentModel->save()
- #19 ee/ExpressionEngine/Controller/Publish/Publish.php(304): ExpressionEngine\Controller\Publish\AbstractPublish->saveEntryAndRedirect(Object(ExpressionEngine\Addons\Pro\Model\Channel\ChannelEntry))
- #20 [internal function]: ExpressionEngine\Controller\Publish\Publish->create(9)
- #21 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)
- #22 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController(Array)
- #23 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
- #24 aspentherapyservices/admin.php(163): require_once('...')
- #24 aspentherapyservices/admin.php(163): require_once('...')
Replies
- TJ Draper
Replied 11/29/2022 10:00 AM
As noted on the Ansel page, Ansel 2 is not compatible with EE 7 for just this reason.
However, what I will tell you is that, unlike what it says on the Ansel page, I will be making Ansel 2 compatible with EE 7. As I've been developing Ansel 3, I came across the underlying incompatibility and it wasn't hard to fix. I have a version of Ansel 2 for EE 7 in private beta. However, there were some bugs in EE core that I've been waiting for fixes on. In the latest version of EE those are fixed so I'm hoping to release an update to Ansel 2 soon.
- Torch
Replied 11/29/2022 3:35 PM
Obviously I totally missed that, thank you for the additional information I'll keep an eye out for that update and Ansel 3.
- TJ Draper
Replied 12/5/2022 10:46 PM
Ansel 2.3.2 is now out and compatible with EE 7!