Page 1 of 1

Template unable to find module, but it is active

Posted: Fri Feb 17, 2017 4:43 pm
by akipt
Hello,

first of all, I know this is not the place for external module support, but I guess it is a core problem. I think...

I just try to update a CMSMS v1.10.3 to v1.11.3 (it was 1.0.8 before and should get the actual version). The system works well with version 1.10.3

After the update process (upgrade-script and module check) I try to load the front-end and it raises the error:

Code: Select all

Error: at line 1 in file /mydocumentpath/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:

Message:

Syntax error in template "content:content_en"  on line 1 "

{news}

" unknown tag "news"
But the News module is loaded, up-to date (2.15) and active. I also checked the syntax/spelling a few times, but the tag is 1:1 as written in the News-module documentation.

If I use the {cms_module module='news'} tag instead, the page is shown but the news area is empty and inside the html there is the following comment: <!-- news is not a plugin module -->

So what can it be? Maybe module-core incompatibility?

I appreciate any help!
Julius

Re: Template unable to find module, but it is active

Posted: Fri Feb 17, 2017 5:18 pm
by Jo Morg
Smarty is case sensitive from a few versions back already so you'll need to replace all occurrences {news} with {News}.

Re: Template unable to find module, but it is active

Posted: Sun Feb 19, 2017 10:21 am
by akipt
Thanks for your answer Jo,

still raises the same error: " unknown tag "News""

???

Re: Template unable to find module, but it is active

Posted: Mon Feb 20, 2017 12:12 pm
by Jo Morg
Ok, we'll need the system info, copy it from the backend of CMSMS and post it here.
In the mean time, try to clear the cache and see if that solves it; check if News did complete the upgrade (if not it should show the link to the upgrade action iirc...). Also check if News menu entries on the backend are visible and work.

Re: Template unable to find module, but it is active

Posted: Tue Feb 21, 2017 8:38 am
by scooper
Try using the longer version of the module tag as well ... I have a vague recollection of needing to do that when upgrading an old site a while back..

So.

{cms_module module="News"}

rather than

{News}

s.

Re: Template unable to find module, but it is active

Posted: Mon Feb 27, 2017 1:34 pm
by akipt
scooper wrote:
...
{cms_module module="News"}

rather than

{News}
...
Thats it! Thank you very much scooper and Jo Morg!

Only three more updates to 2.1.x :)

PS: Can some admin add [Solved] to the title. Didn't find the modify button.