[FIX] Trackers : TypeError: in_array(): Argument #2 () must be of type array, string given
Ticket: https://avan.tech/item101828
This happens when you add the "Tiki Manager Tracker Field" field type to the Tracker and want to edit the field options:
Fatal error rendering template file extends:layouts/internal/modal.tpl|tracker/edit_field.tpl
TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/reviews/public_html/temp/templates_c/en_basic^7493e7f964988e58c9ce1f95845d587f9557da7b_0.file.edit_field.tpl.php:168
Stack trace:
#0 /home/reviews/public_html/temp/templates_c/en_basic^7493e7f964988e58c9ce1f95845d587f9557da7b_0.file.edit_field.tpl.php(168): in_array()
#1 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_40191012965ae9c4a7cac07_12681739->callBlock()
#2 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#3 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(186): Smarty_Internal_Runtime_Inheritance->process()
#4 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#5 /home/reviews/public_html/temp/templates_c/en_basic^175e4a7987ed58edeeffea94005d58ae2704e603_0.file.modal.tpl.php(39): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#6 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65ae9be1421ce4_50861301()
#7 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#8 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#9 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#10 /home/reviews/public_html/temp/templates_c/en_basic^8cbcdc4b0b78987f604cafff861967aed3797963_0.extends.edit_field.tpl.php(24): Smarty_Internal_Template->_subTemplateRender()
#11 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_65ae9c4a7bbd00_69708987()
#12 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#13 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#14 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#15 /home/reviews/public_html/vendor_bundled/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#16 /home/reviews/public_html/lib/init/smarty.php(312): Smarty_Internal_TemplateBase->fetch()
#17 /home/reviews/public_html/lib/core/Services/Broker.php(181): Smarty_Tiki->fetch()
#18 /home/reviews/public_html/lib/core/Services/Broker.php(47): Services_Broker->render()
#19 /home/reviews/public_html/tiki-ajax_services.php(55): Services_Broker->process()
#20 {main}