Summary:
Fatal Error using JMFilePicker in LISE Instance
Detailed Description:
When using JMFilePicker (v1.0.1) in a LISE Instance (v.1.5.6) on CMSMS
(V2.2.19), if you create a field of type JMFilePicker then create or edit an
item it crashes with a fatal error
Not sure whether this is a LISE or a JMFilePicker issue (same functionality
works without error if standard File Picker is used) but both modules have many
of the same Developers (thanks for the great work)
Error msg:
Uncaught TypeError: Unsupported operand types: bool | string in
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:574
Stack trace: #0
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templateparser.php(2085):
Smarty_Internal_TemplateCompilerBase->compileVariable() #1
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templateparser.php(2777):
Smarty_Internal_Templateparser->yy_r11() #2
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templateparser.php(2872):
Smarty_Internal_Templateparser->yy_reduce() #3
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(128):
Smarty_Internal_Templateparser->doParse() #4
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(466):
Smarty_Internal_SmartyTemplateCompiler->doCompile() #5
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php(394):
Smarty_Internal_TemplateCompilerBase->compileTemplateSource() #6
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_compiled.php(184):
Smarty_Internal_TemplateCompilerBase->compileTemplate() #7
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_compiled.php(141):
Smarty_Template_Compiled->compileTemplateSource() #8
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_compiled.php(105):
Smarty_Template_Compiled->process() #9
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_template.php(216):
Smarty_Template_Compiled->render() #10
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(238):
Smarty_Internal_Template->render() #11
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(116):
Smarty_Internal_TemplateBase->_execute() #12
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.CMS_Smarty_Template.php(20):
Smarty_Internal_TemplateBase->fetch() #13
/homepages/38/d242029264/htdocs/acuk_cmsms2/modules/JMFilePicker/JMFilePicker.module.php(572):
CMS_Smarty_Template->fetch() #14
/homepages/38/d242029264/htdocs/acuk_cmsms2/modules/LISE/lib/fielddefs/JMFilePicker/lisefd.JMFilePicker.php(149):
JMFilePicker->CreateFilePickerInput() #15
/homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/templates_c/305e209dd783a82a5f44144205f8080375499386_0.lisetemplate.fielddefsLISEHomesLISEtes.php(30):
lisefd_JMFilePicker->GetInput() #16
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_resource_base.php(123):
content_65c7e7a9bba989_32619332() #17
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_compiled.php(114):
Smarty_Template_Resource_Base->getRenderedTemplateCode() #18
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_template.php(216):
Smarty_Template_Compiled->render() #19
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(238):
Smarty_Internal_Template->render() #20
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(116):
Smarty_Internal_TemplateBase->_execute() #21
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.CMS_Smarty_Template.php(20):
Smarty_Internal_TemplateBase->fetch() #22
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.Smarty_CMS.php(376):
CMS_Smarty_Template->fetch() #23
/homepages/38/d242029264/htdocs/acuk_cmsms2/modules/LISE/lib/class.LISEFielddefBase.php(544):
Smarty_CMS->fetch() #24
/homepages/38/d242029264/htdocs/acuk_cmsms2/tmp/templates_c/9489bdb44b8dc996039373e0f874ef3d0c325970_0.lisetemplate.instanceLISEHomesedititem.php(228):
LISEFielddefBase->RenderInput() #25
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_resource_base.php(123):
content_65c7e75e8c0943_53817918() #26
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_template_compiled.php(114):
Smarty_Template_Resource_Base->getRenderedTemplateCode() #27
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_template.php(216):
Smarty_Template_Compiled->render() #28
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(238):
Smarty_Internal_Template->render() #29
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatebase.php(116):
Smarty_Internal_TemplateBase->_execute() #30
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.CMS_Smarty_Template.php(20):
Smarty_Internal_TemplateBase->fetch() #31
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/internal/class.Smarty_CMS.php(376):
CMS_Smarty_Template->fetch() #32
/homepages/38/d242029264/htdocs/acuk_cmsms2/modules/LISE/LISE.module.php(464):
Smarty_CMS->fetch() #33
/homepages/38/d242029264/htdocs/acuk_cmsms2/modules/LISE/framework/action.admin_edititem.php(470):
LISE->ModProcessTemplate() #34
/homepages/38/d242029264/htdocs/acuk_cmsms2/modules/LISE/lib/class.LISEInstance.php(532):
include('/homepages/38/d...') #35
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/classes/class.CMSModule.php(1483):
LISEInstance->DoAction() #36
/homepages/38/d242029264/htdocs/acuk_cmsms2/admin/moduleinterface.php(74):
CMSModule->DoActionBase() #37 {main} thrown in
/homepages/38/d242029264/htdocs/acuk_cmsms2/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php
on line 574