Fatal error: Uncaught TypeError: fwrite(): Argument #1 ($stream) must be of type resource, bool given in /var/www/prestashop/mxlife1/modules/leoelements/includes/widgets/LeoGenCode.php:158
Stack trace:
#0 /var/www/prestashop/mxlife1/modules/leoelements/includes/widgets/LeoGenCode.php(158): fwrite()
#1 /var/www/prestashop/mxlife1/modules/leoelements/includes/widgets/LeoGenCode.php(135): LeoElements\Widget_LeoGenCode->generateFile()
#2 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/widget-base.php(464): LeoElements\Widget_LeoGenCode->render()
#3 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/widget-base.php(594): LeoElements\Widget_Base->render_content()
#4 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/element-base.php(612): LeoElements\Widget_Base->_print_content()
#5 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/element-base.php(861): LeoElements\Element_Base->print_element()
#6 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/element-base.php(612): LeoElements\Element_Base->_print_content()
#7 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/element-base.php(861): LeoElements\Element_Base->print_element()
#8 /var/www/prestashop/mxlife1/modules/leoelements/includes/base/element-base.php(612): LeoElements\Element_Base->_print_content()
#9 /var/www/prestashop/mxlife1/modules/leoelements/core/base/document.php(1144): LeoElements\Element_Base->print_element()
#10 /var/www/prestashop/mxlife1/modules/leoelements/core/base/document.php(799): LeoElements\Core\Base\Document->print_elements()
#11 /var/www/prestashop/mxlife1/modules/leoelements/includes/frontend.php(1032): LeoElements\Core\Base\Document->print_elements_with_wrapper()
#12 /var/www/prestashop/mxlife1/modules/leoelements/leoelements.php(1326): LeoElements\Frontend->get_builder_content()
#13 /var/www/prestashop/mxlife1/modules/leoelements/leoelements.php(2714): Leoelements->getWidgetVariables()
#14 /var/www/prestashop/mxlife1/modules/leoelements/leoelements.php(1305): Leoelements->renderWidget2()
#15 /var/www/prestashop/mxlife1/classes/Hook.php(1088): Leoelements->renderWidget()
#16 /var/www/prestashop/mxlife1/classes/Hook.php(1019): HookCore::coreRenderWidget()
#17 /var/www/prestashop/mxlife1/config/smarty.config.inc.php(201): HookCore::exec()
#18 /var/www/prestashop/mxlife1/classes/Smarty/SmartyLazyRegister.php(81): smartyHook()
#19 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/c3/76/a2/c376a2951dddbd72b3d419c8891d184967c6672e_2.file.header.tpl.php(177): SmartyLazyRegister->__call()
#20 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_2439130586837742057f716_72776386->callBlock()
#21 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#22 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#23 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/c3/76/a2/c376a2951dddbd72b3d419c8891d184967c6672e_2.file.header.tpl.php(93): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#24 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_683774205825e3_91945111()
#25 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#26 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#27 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#28 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/c5/44/64/c54464e78104446e17036ab6d75119b77d979c83_2.file.layout-both-columns.tpl.php(215): Smarty_Internal_Template->_subTemplateRender()
#29 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(248): Block_533729570683774204c1f31_98418707->callBlock()
#30 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(184): Smarty_Internal_Runtime_Inheritance->callBlock()
#31 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(156): Smarty_Internal_Runtime_Inheritance->process()
#32 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/c5/44/64/c54464e78104446e17036ab6d75119b77d979c83_2.file.layout-both-columns.tpl.php(76): Smarty_Internal_Runtime_Inheritance->instanceBlock()
#33 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_683774204e3884_60701807()
#34 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#35 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#36 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#37 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#38 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/ad/db/be/addbbee13a83c57b6dac031300d8358a4576eb7a_2.file.layout-left-column.tpl.php(42): Smarty_Internal_Runtime_Inheritance->endChild()
#39 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_683774204ac8e7_89786749()
#40 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#41 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#42 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#43 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#44 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/d4/e4/51/d4e45108c4deecf453df010ff8f4cb58e01f5933_2.file.product-list.tpl.php(44): Smarty_Internal_Runtime_Inheritance->endChild()
#45 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_68377420490c55_23889198()
#46 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#47 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#48 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(386): Smarty_Internal_Template->render()
#49 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_runtime_inheritance.php(116): Smarty_Internal_Template->_subTemplateRender()
#50 /var/www/prestashop/mxlife1/var/cache/dev/smarty/compile/leo_karpartlayouts_layout_left_column_tpl/94/99/b0/9499b0098fb8c83f93908dc78b41d5dd99e6f9cf_2.file.manufacturer.tpl.php(39): Smarty_Internal_Runtime_Inheritance->endChild()
#51 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_6837741e62e277_83853488()
#52 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#53 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#54 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#55 /var/www/prestashop/mxlife1/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#56 /var/www/prestashop/mxlife1/classes/Smarty/SmartyCustom.php(112): Smarty_Internal_TemplateBase->fetch()
#57 /var/www/prestashop/mxlife1/classes/controller/FrontController.php(760): SmartyCustomCore->fetch()
#58 /var/www/prestashop/mxlife1/classes/controller/FrontController.php(742): FrontControllerCore->smartyOutputContent()
#59 /var/www/prestashop/mxlife1/classes/controller/Controller.php(339): FrontControllerCore->display()
#60 /var/www/prestashop/mxlife1/classes/Dispatcher.php(510): ControllerCore->run()
#61 /var/www/prestashop/mxlife1/index.php(28): DispatcherCore->dispatch()
#62 {main}
thrown in /var/www/prestashop/mxlife1/modules/leoelements/includes/widgets/LeoGenCode.php on line 158