All add-ons currently require PHP 7.4 or greater.
On July 4th 2024 PHP 8.2 will be the new minimum requirement for all add-ons. Expect any add-on released after that date to require 8.2 or greater. Some releases may not immediately take advantage of 8.x specific features in PHP, which means you might, be able to continue using new releases in PHP 7.4, however, if you experience an error the first thing you should do is update to PHP 8.2 then create a support ticket if the error persists.
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: Error when using EE image manipulation with grid image field.
Status | Resolved |
Add-on / Version | Simple Grids & Tables 1.7.2 |
Severity | |
EE Version | 7.3.14 |
Wayne Hultum
Dec 01, 2023Hi, the code below will output images.
{scrolling_images_fixed_text}
{scrolling_images_fixed_text:scroller_image}
<div class="splide__slide p-0 m-0">
<img src="{image}" class="img-fluid pb-4 pb-md-0 w-100" />
</div>
{/scrolling_images_fixed_text:scroller_image}
{/scrolling_images_fixed_text}
If I add an EE image manipulation
<img src="{image:landcape_lg}" class="img-fluid pb-4 pb-md-0 w-100" />
I get the following
TypeError Caught
str_replace(): Argument #2 ($replace) must be of type string when argument #1 ($search) is a string
ee/legacy/libraries/Template.php:3937
Stack Trace: Please include when reporting this error
#0 ee/legacy/libraries/Template.php(3937): str_replace('{image:landscap…', Array, '\n\t\t\t\t\t\t<div cla…')
#1 ee/legacy/libraries/Template.php(3780): EE_Template->_parse_var_single('image:landscape…', Array, '\n\t\t\t\t\t\t<div cla…')
#2 ee/legacy/libraries/Template.php(3708): EE_Template->parse_variables_row('\n\t\t\t\t\t\t<div cla…', Array, false)
#3 user/addons/simple_grids/ft.simple_grid.php(273): EE_Template->parse_variables('\n\t\t\t\t\t\t<div cla…', Array)
#4 ee/legacy/libraries/api/Api_channel_fields.php(391): Simple_grid_ft->replace_tag(Array, Array, '\n\t\t\t\t\t\t<div cla…')
#5 ee/legacy/libraries/Grid_parser.php(671): Api_channel_fields->apply('replace_tag', Array)
#6 ee/legacy/libraries/Grid_parser.php(763): Grid_parser->call('replace_tag', Array, true)
#7 ee/legacy/libraries/Grid_parser.php(462): Grid_parser->_replace_tag(Array, 77, 31, 2, Array, Array, '\n\t\t\t\t\t\t<div cla…', 'channel', 2, 0)
#8 ee/legacy/libraries/Grid_parser.php(370): Grid_parser->_parse_row(Array, 77, '\n\t<div class="r…', Array, 'channel', 0)
#9 ee/ExpressionEngine/Addons/grid/ft.grid.php(231): Grid_parser->parse(Array, 77, Array, '\n\t<div class="r…', 'channel', 0)
#10 ee/legacy/libraries/api/Api_channel_fields.php(391): Grid_ft->replace_tag(NULL, Array, '\n\t<div class="r…')
#11 ee/legacy/libraries/channel_entries_parser/components/Custom_field_pair.php(183): Api_channel_fields->apply('replace_tag', Array)
#12 ee/legacy/libraries/channel_entries_parser/Parser.php(291): EE_Channel_custom_field_pair_parser->replace('\n\t{!-- ra:00000…', Object(EE_Channel_data_parser), Array)
#13 ee/legacy/libraries/Channel_entries_parser.php(172): EE_Channel_data_parser->parse(Array, Array)
#14 ee/ExpressionEngine/Addons/channel/mod.channel.php(2528): EE_Channel_parser->parse(Object(Channel), Array, Array)
#15 ee/ExpressionEngine/Addons/channel/mod.channel.php(261): Channel->parse_channel_entries()
#16 ee/legacy/libraries/Template.php(1830): Channel->entries()
#17 ee/legacy/libraries/Template.php(1505): EE_Template->process_tags()
#18 ee/legacy/libraries/Template.php(624): EE_Template->tags()
#19 ee/legacy/libraries/Template.php(247): EE_Template->parse('{!-- ra:0000000…', false, 1, false)
#20 ee/legacy/libraries/Template.php(177): EE_Template->fetch_and_parse('', '', false)
#21 ee/legacy/libraries/Core.php(811): EE_Template->run_template_engine('', '')
#22 ee/legacy/controllers/ee.php(53): EE_Core->generate_page()
#23 [internal function]: EE->index()
#24 ee/ExpressionEngine/Core/Core.php(268): call_user_func_array(Array, Array)
#25 ee/ExpressionEngine/Core/Core.php(124): ExpressionEngine\Core\Core->runController(Array)
#26 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#27 index.php(164): require_once('...')
#27 index.php(164): require_once('...')
If you require any additional information please let me know.
Regards
Wayne
BoldMinded (Brian)
If the image manipulation is named scroller_image, then this is what you’re template should look like:
Wayne Hultum
The EE grid field is called “Scrolling images fixed text” Within the grid there is a Simple grid field call “Scroller image” The “Scroller image” has a file column with the Short Name “image” The EE image manipulation is call “landscape_lg”
The code below works as intended.
Adding EE image manipulation to the
causes the error
BoldMinded (Brian)
Comment has been marked private.
Wayne Hultum
Thanks Brian