Page 1 of 1

ListIt2 Smarty error

Posted: Wed Jun 17, 2015 9:10 am
by chillifish
When trying to list modules on the admin side, I get the following error:

Code: Select all

Fatal error: Uncaught --> Smarty: Unable to load template file '/home/~/public_html/modules/ListIt2/framework/templates/help.tpl' <-- thrown in /home/~/public_html/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 127
I appreciate the fact that ListIt2 is no longer in development, but does anyone have any ideas how I could fix it? I'm guessing there's something wrong with the script in the template file, but my Smarty knowledge is non-existent.

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 10:34 am
by velden
chillifish wrote:... but my Smarty knowledge is non-existent.
What about the 'Forum search knowledge'? :D

http://forum.cmsmadesimple.org/viewtopi ... 90#p320990

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 1:14 pm
by chillifish
Obviously not as good as it should be! Thanks for that, all fixed…

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 2:01 pm
by chillifish
Unfortunately, it's not entirely fixed as I can't use the module created with it, getting the error:

Code: Select all

Unable to load template file '/home/~/public_html/modules/ListIt2/framework/templates/itemtab.tpl'
How do I go about downgrading CMSMS to a previous version where everything just worked? Is it the same as upgrading, ie, can I just write the files over the existing files and run the upgrade script?

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 2:10 pm
by Jo Morg
chillifish wrote:Unfortunately, it's not entirely fixed as I can't use the module created with it
If you copied the lines correctly and cleared CMSMS cache it should work. It has been tested more than few times already...
chillifish wrote:How do I go about downgrading CMSMS to a previous version where everything just worked? Is it the same as upgrading, ie, can I just write the files over the existing files and run the upgrade script?
Nope, there is no downgrading method other than recovering from a backup (which is always a good practice to have one done before any upgrade). And CMSMS released an upgrade because not
chillifish wrote:... everything just worked...

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 2:23 pm
by chillifish
It was my mistake, on my live site, I copied the first function, not the second as on my dev site, so I was just replacing like with like.

I'm sure you know that I mean that everything just worked in terms of my site and its functionality.

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 4:10 pm
by chillifish
By the way, as an aside, anybody reading this and having problems with listit2 after a site move, it hard codes the path to the plugin in the database, so you need to do a search and replace on the relevant tables.

Re: ListIt2 Smarty error

Posted: Wed Jun 17, 2015 6:58 pm
by velden
By the way, as an aside, anybody reading this and having problems with listit2 after a site move, it hard codes the path to the plugin in the database,so you need to do a search and replace on the relevant tables.
Probably you missed the 'Scan Field Fefinitions' button in the Listit2 'main' module (extensions menu > Listit2 > Field Definitions tab)

If that's what you mean please

Re: ListIt2 Smarty error

Posted: Thu Jun 18, 2015 9:21 am
by chillifish
Yes, it looks like it, though it doesn't seem to explain anywhere what that button is for!

Re: ListIt2 Smarty error

Posted: Fri Jun 19, 2015 5:09 pm
by magallo
Have you fixed this? I'm having the same problem after i moved to a different server:

Extensions -> Modules
Fatal error: Uncaught --> Smarty: Unable to load template file '/home/tpfold/public_html/modules/ListIt2/framework/templates/help.tpl' <-- thrown in /home/tpfold/public_html/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 127
If i try to access any of the Listit2 istances i get:

ERROR: at line 127 in file /home/tpfold/public_html/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php:

message:
Unable to load template file '/home/tpfold/public_html/modules/ListIt2/framework/templates/itemtab.tpl'
please help

Re: ListIt2 Smarty error

Posted: Mon Jun 22, 2015 8:39 am
by chillifish
Yes, I used the code in this link http://forum.cmsmadesimple.org/viewtopi ... 90#p320990 and it now works.