Добрый день, подскажите как побороть
- ErrorException: Template error: [E_WARNING] Invalid argument supplied for foreach()
- src/XF/CustomField/Definition.php:50
Код:
#0 src/XF/CustomField/Definition.php(50): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Inv...', '/var/www/www-ro...', 50, Array)
#1 src/XF/Template/Templater.php(1191): XF\CustomField\Definition->getFormattedValue('3.7.0 - 4.x.x.')
#2 internal_data/code_cache/templates/l2/s1/public/custom_fields_macros.php(130): XF\Template\Templater->method(Object(XF\CustomField\Definition), 'getFormattedVal...', Array)
#3 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l2/s1/public/custom_fields_macros.php(66): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_field_va...', Array, Array)
#5 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#6 internal_data/code_cache/templates/l2/s1/public/custom_fields_macros.php(22): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_v...', Array, Array)
#7 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#8 internal_data/code_cache/templates/l2/s1/public/xfrm_resource_view.php(127): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_v...', Array, Array)
#9 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#11 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#13 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#16 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#17 src/XF.php(524): XF\App->run()
#18 index.php(20): XF::runApp('XF\\Pub\\App')
#19 {main}
Код:
Содержимое запроса
array(4) {
["url"] => string(39) "/resources/osclass-plagin-robokassa.24/"
["referrer"] => string(38) "https://site/resources/?page=68"
["_GET"] => array(1) {
["/resources/osclass-plagin-robokassa_24/"] => string(0) ""
}
["_POST"] => array(0) {
}
}