Loading...
 
Documentation

Documentation


Unable to assign custom module

posts: 55 United States

Using Tiki 8.3 with jqui theme. I've used tiki before.

Problem 1 - Unable to upload any images to file gallery. This is a new install on a subdomain, upgraded from 7.2 to 8.3 recently.

Problem 2 - When I create a custom module and add an image (either with smarty code or html), in Assign New Module page I click Module Options and get this error:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "eval:" on line 1 "<!-- TPL: eval: ><! /TPL: eval: -->" unknown function "HTML"' in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:439 Stack trace: #0 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2694): Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown functio...') #1 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2846): Smarty_Internal_Templateparser->yy_r150() #2 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2946): Smarty_Internal_Templateparser-> in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 439

Anyone else have this issue?

I'm stumped. Database is new and working, no other errors.
I've gone through all the plugin areas in admin.

Thanks.

posts: 2420 Czech Republic

Hi,

disable the "Smarty Template usage indicator" on Features > Programmer Admin panel while having enabled the "Advanced" checkbox in the "Preference Filters" above.

luci

Mary Luketich wrote:

Using Tiki 8.3 with jqui theme. I've used tiki before.

Problem 1 - Unable to upload any images to file gallery. This is a new install on a subdomain, upgraded from 7.2 to 8.3 recently.

Problem 2 - When I create a custom module and add an image (either with smarty code or html), in Assign New Module page I click Module Options and get this error:

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "eval:" on line 1 "<!-- TPL: eval: ><! /TPL: eval: -->" unknown function "HTML"' in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:439 Stack trace: #0 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2694): Smarty_Internal_TemplateCompilerBase-trigger_template_error('unknown functio...') #1 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2846): Smarty_Internal_Templateparser-yy_r150() #2 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2946): Smarty_Internal_Templateparser- in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 439

Anyone else have this issue?

I'm stumped. Database is new and working, no other errors.
I've gone through all the plugin areas in admin.

Thanks.

posts: 55 United States

Hi Luci,

The "Smarty Template usage indicator" on Features > Programmer Admin panel was not enabled, but I turned off "Include Smarty Notices" in the Logging and Reporting area nearby.

Create new module, try to assign it and get this:

"Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "eval:" on line 1 "{HTML(wiki="0")}<img src="http://forwardlinkprotocol.com/8.3/id/images/web_compendia3-150sq-tag.gif" height="150" width="150" alt="Web Compendia logo" imalign="left"><br />" - Unexpected "=", expected one of: "","" , ")"' in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:439 Stack trace: #0 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2889): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2954): Smarty_Internal_Templateparser->yy_syntax_error(19, '=') #2 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8. in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 439"

Thanks for responding!

-littledove

posts: 2420 Czech Republic

Seems you do use HTML wikiplugin in the module.
If it is true, you need to make sure "Must be wiki parsed." checkbox is enabled in the Modules Admin while editing the custom module on the Custom Modules tab.
That brings me to the thought: Why do you use the HTML plugin there ? Is it a must ? If the answer is No or I do not know, simply remove the HTML plugin syntax from there and use just the HTML code directly there and you do not need the module to be wiki parsed at all.

luci


{QUOTE(replyto=>littledove)}Hi Luci,

The "Smarty Template usage indicator" on Features > Programmer Admin panel was not enabled, but I turned off "Include Smarty Notices" in the Logging and Reporting area nearby.

Create new module, try to assign it and get this:

"Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "eval:" on line 1 "{HTML(wiki="0")}<img src="http://forwardlinkprotocol.com/8.3/id/images/web_compendia3-150sq-tag.gif" height="150" width="150" alt="Web Compendia logo" imalign="left"><br />" - Unexpected "=", expected one of: "","" , ")"' in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:439 Stack trace: #0 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2889): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templateparser.php(2954): Smarty_Internal_Templateparser->yy_syntax_error(19, '=') #2 /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8. in /home/webcompe/public_html/forwardlinkprotocol.webcompendia.org/8.3/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 439"

Thanks for responding!

-littledove{QUOTE}


posts: 55 United States

Same result whether or not I use direct HTML or html plugin. In either case, the new module gets the fatal error before displaying.

I am trying to use a module to put up two images: the logo and another image. Both are sized to fit. We want the wiki to have the logos in the left sidebar area and remove the top header from the site, so the menu and content area move up to the top of the page.


posts: 55 United States

OMG, it worked! Thank you so much!

I removed the and and it worked!

biggrin
- littledove