Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Publisher generates Error in Preview
Status | Resolved |
Add-on / Version | Publisher 3.10.1 build 68834b1c |
Severity | |
EE Version | 7.3.4 |
Axel Hebenstreit
Jun 21, 2023Hello Brian,
just updated to ExpressionEngine 7.3.4 and Publisher 3.10.1 build 68834b1c.
When I try to preview an entry (even a new entry without content), I get the following Publisher related error:
TypeError Caught
array_filter(): Argument #1 ($array) must be of type array, null given
user/addons/publisher/legacy/libraries/hooks/Publisher_assets_hooks.php:160
Stack Trace: Please include when reporting this error
#0 user/addons/publisher/legacy/libraries/hooks/Publisher_assets_hooks.php(160): array_filter()
#1 user/addons/publisher/ext.publisher.php(1941): Publisher_assets_hooks->assets_live_preview_query()
#2 ee/legacy/libraries/Extensions.php(226): Publisher_ext->assets_live_preview_query()
#3 ee/legacy/libraries/Extensions.php(110): EE_Extensions->call_class()
#4 user/addons/assets/ft.assets.php(1457): EE_Extensions->call()
#5 ee/legacy/libraries/api/Api_channel_fields.php(383): Assets_ft->pre_process()
#6 ee/legacy/libraries/Grid_parser.php(671): Api_channel_fields->apply()
#7 ee/legacy/libraries/Grid_parser.php(716): Grid_parser->call()
#8 ee/legacy/libraries/Grid_parser.php(476): Grid_parser->_replace_tag()
#9 ee/legacy/libraries/Grid_parser.php(370): Grid_parser->_parse_row()
#10 ee/ExpressionEngine/Addons/grid/ft.grid.php(231): Grid_parser->parse()
#11 ee/legacy/libraries/api/Api_channel_fields.php(383): Grid_ft->replace_tag()
#12 ee/legacy/libraries/channel_entries_parser/components/Custom_field_pair.php(180): Api_channel_fields->apply()
#13 ee/legacy/libraries/channel_entries_parser/Parser.php(288): EE_Channel_custom_field_pair_parser->replace()
#14 ee/legacy/libraries/Channel_entries_parser.php(172): EE_Channel_data_parser->parse()
#15 ee/ExpressionEngine/Addons/channel/mod.channel.php(2516): EE_Channel_parser->parse()
#16 ee/ExpressionEngine/Addons/channel/mod.channel.php(261): Channel->parse_channel_entries()
#17 ee/legacy/libraries/Template.php(1808): Channel->entries()
#18 ee/legacy/libraries/Template.php(1483): EE_Template->process_tags()
#19 ee/legacy/libraries/Template.php(624): EE_Template->tags()
#20 ee/legacy/libraries/Template.php(247): EE_Template->parse()
#21 ee/legacy/libraries/Template.php(177): EE_Template->fetch_and_parse()
#22 ee/ExpressionEngine/Service/LivePreview/LivePreview.php(231): EE_Template->run_template_engine()
#23 ee/ExpressionEngine/Addons/channel/mod.channel.php(5273): ExpressionEngine\Service\LivePreview\LivePreview->preview()
#24 ee/legacy/libraries/Actions.php(181): Channel->live_preview()
#25 ee/legacy/libraries/Core.php(682): EE_Actions->__construct()
#26 ee/legacy/controllers/ee.php(51): EE_Core->generate_action()
#27 [internal function]: EE->index()
#28 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array()
#29 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController()
#30 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run()
#31 index.php(172): require_once('...')
#31 index.php(172): require_once('...')
BoldMinded (Brian)
Hi Axel. Can you please share a screenshot? I haven’t had a chance to test the latest version of Assets, so it could be a couple weeks untilI can look into this.
Axel Hebenstreit
Comment has been marked private.
BoldMinded (Brian)
Likely something to do with this change. It’ll be a couple more days until I can dig into this though.
(you might not be able to see this, noting for self) https://github.com/packettide/assets/commit/d03fdc748e5a56f6128b4686d1070cb55c480835
BoldMinded (Brian)
I think I fixed the issue on my side, but while doing so I encountered 2 bugs with the new build of Assets so I’m not even confident my fix is solid. I reported the bug to Packet Tide and I’ll post an update when I have one.
https://github.com/packettide/assets/issues/143
Axel Hebenstreit
Any news? Assets is now in Version 4.3.3. Still the same error.
BoldMinded (Brian)
Nope, they haven’t responded to my issue on Github.
BoldMinded (Brian)
Comment has been marked private.
Axel Hebenstreit
Works! Thank you Brian!
BoldMinded (Brian)
Excellent to hear!