Jump to content
  • [Beta1] TypeError Exception when creating Template Hook for System: front/staffdirectory/layout_blocks


    Hello,

    Trying to create a Template Hook for System: front/staffdirectory/layout_blocks does not work.

    The same result under PHP 8.1.29 and 8.2.24

    1. "View Template" does not work - displays a blank popup
       
    2. TypeError exception when saving the template (e.g. "<li>HELP</li>" before closing tag)

    TypeError: implode(): Argument #1 ($array) must be of type array, string given (0)
    #0 /home/bn2468/public_html/system/Theme/CustomTemplate.php(774): implode()
    #1 /home/bn2468/public_html/system/Helpers/Form/FormAbstract.php(419): IPS\Theme\CustomTemplate->IPS\Theme\{closure}()
    #2 /home/bn2468/public_html/system/Helpers/Form/TextArea.php(146): IPS\Helpers\Form\FormAbstract->validate()
    #3 /home/bn2468/public_html/system/Helpers/Form/FormAbstract.php(207): IPS\Helpers\Form\TextArea->validate()
    #4 /home/bn2468/public_html/system/Helpers/Form/FormAbstract.php(184): IPS\Helpers\Form\FormAbstract->setValue()
    #5 /home/bn2468/public_html/system/Helpers/Form/TextArea.php(93): IPS\Helpers\Form\FormAbstract->__construct()
    #6 /home/bn2468/public_html/system/Helpers/Form/Codemirror.php(82): IPS\Helpers\Form\TextArea->__construct()
    #7 /home/bn2468/public_html/system/Theme/CustomTemplate.php(784): IPS\Helpers\Form\Codemirror->__construct()
    #8 /home/bn2468/public_html/applications/core/modules/admin/developer/customtemplates.php(163): IPS\Theme\CustomTemplate->form()
    #9 /home/bn2468/public_html/system/Dispatcher/Controller.php(128): IPS\core\modules\admin\developer\customtemplates->customTemplateForm()
    #10 /home/bn2468/public_html/system/Developer/Controller.php(92): IPS\Dispatcher\Controller->execute()
    #11 /home/bn2468/public_html/system/Dispatcher/Dispatcher.php(169): IPS\Developer\Controller->execute()
    #12 /home/bn2468/public_html/admin/index.php(15): IPS\Dispatcher->run()
    #13 {main}

    Thanks very much...

    John


    User Feedback

    Recommended Comments


×
×
  • Create New...