Page 1 of 1

How to uninstall or at least deactivate News and Search m?

Posted: Thu Apr 25, 2013 10:29 pm
by Cobol74
Hello,

the current version of CMS MS comes with pre-installed News and Search modules. When I dis-activate them I get errors

Error: at line 702 in file C:\xampp\htdocs\bionovalab\lib\smarty\sysplugins\smarty_internal_templatecompilerbase.php:

Message:

Syntax Error in template "tpl_body:22" on line 25 "{* End Search *}" Default plugin handler: Returned callback for "search" not callabl

What is it? How I can rid of not needed modules?

Thanks in advance
Cobol74

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 6:23 am
by velden
Why?

If you want to hide them from users don't assign them permissions to work with (for News that is).

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 6:40 am
by uniqu3
Page Template is using {news} and {search} tags, if you disable or uninstall these modules, those smarty tags no longer exist therefore you are being faced with error.
Default plugin handler: Returned callback for "search" not callabl
Reading actual error would of gave you answer already.

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 10:14 am
by Cobol74
velden wrote:Why?

If you want to hide them from users don't assign them permissions to work with (for News that is).
I have designed by the client website and it does not include these features.

Should I define group 'visitors'?
And I don't see 'View' any particular modules permission to turn it off for any group...

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 10:19 am
by Cobol74
uniqu3 wrote:Page Template is using {news} and {search} tags, if you disable or uninstall these modules, those smarty tags no longer exist therefore you are being faced with error.
Default plugin handler: Returned callback for "search" not callabl
Reading actual error would of gave you answer already.
I understand it, but I can't find the template... The error message points me to error message generator (event handler) instead of place of error.

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 10:21 am
by Cobol74
uniqu3 wrote:Page Template is using {news} and {search} tags, if you disable or uninstall these modules, those smarty tags no longer exist therefore you are being faced with error.
Default plugin handler: Returned callback for "search" not callabl
Reading actual error would of gave you answer already.
Is here any possibility to turn off Smarty error messages and/or set it to ignore non-existent tags?

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 1:13 pm
by uniqu3
No there is no way and shouldn't be.
Template is the one you are using for your site.

And please read errors you get and try to understand these:
Syntax Error in template "tpl_body:22" on line 25 "{* End Search *}"
So this means that in your Page Template that is used on the site you have seen this error on line 25 there is {search} and it is very simple to search your Template for {* End Search *} to find exactly that line.

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 4:13 pm
by Cobol74
uniqu3 wrote:No there is no way and shouldn't be.
Template is the one you are using for your site.
I am using the default template which comes with CMS MS
NCleanBlue - I edit it and submitted:

Code: Select all

<!-- { * Start Search, the input "Submit" is using an image, CSS: div#search input.search-button * }
          <div id="search" class="core-float-right">
            {search search_method="post"}
          </div>
{ * End Search * }
-->       
I also put spaces between { and * and * and }
and similar commented out { news } tag,
but the error persists.

Re: How to uninstall or at least deactivate News and Search

Posted: Fri Apr 26, 2013 4:27 pm
by Cobol74
Thank you.
The problem is solved.
I had to comment out all smarty tags inside html comments