Masetrix
Well-known member
Whenever I activate PHP 8.0.3 I get the following error:
However, it is not clear to me whether this is a bug in XF 2.2.4 or one (or all) of the add-ons involved here, or just a cache error.
Any hints?
PHP:
ErrorException: Template error: [E_WARNING] Array to string conversion src/XF/Str/Formatter.php:51
Generiert von: Unbekanntes Konto 11 März 2021 um 19:28
Stack-Trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Arr...', '/var/www/vhosts...', 51)
#1 src/XF/Str/Formatter.php(51): preg_replace(Array, Array, Array)
#2 src/XF/Template/Templater.php(4646): XF\Str\Formatter->censorText(Array, NULL)
#3 [internal function]: XF\Template\Templater->filterCensor(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, false)
#4 src/XF/Template/Templater.php(1056): call_user_func_array(Array, Array)
#5 internal_data/code_cache/templates/l2/s1/public/andy_calendar_events.php(30): XF\Template\Templater->filter(Array, Array, false)
#6 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#7 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('andy_calendar_e...', Array, true, NULL)
#8 src/XF/Widget/WidgetRenderer.php(62): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:andy_cal...', Array)
#9 src/XF/Widget/WidgetRenderer.php(67): XF\Widget\WidgetRenderer->render()
#10 src/XF/Template/Templater.php(1901): XF\Widget\WidgetRenderer->__toString()
#11 internal_data/code_cache/templates/l2/s1/public/whats_new.php(16): XF\Template\Templater->widgetPosition('whats_new_overv...', Array)
#12 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#13 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('whats_new', Array, true, NULL)
#14 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:whats_ne...', Array)
#15 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#16 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:WhatsNew\\Ove...', 'public:whats_ne...', Array)
#17 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#20 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#21 src/XF.php(488): XF\App->run()
#22 index.php(20): XF::runApp('XF\\Pub\\App')
#23 {main}
However, it is not clear to me whether this is a bug in XF 2.2.4 or one (or all) of the add-ons involved here, or just a cache error.
Any hints?