Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Smarty 3 fatal error with compileTemplate()

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
glenn_crowdicity
Smarty n00b


Joined: 04 Feb 2013
Posts: 2

PostPosted: Mon Feb 04, 2013 10:58 am    Post subject: Smarty 3 fatal error with compileTemplate() Reply with quote

I've been trying to upgrade from Smarty2 to Smarty3 - as far as I can tell, everything is installed correctly, however I cannot render a template. Even just using testinstall() right after creating the Smarty object gives the same error:

Fatal error: Call to a member function compileTemplate() on a non-object in /<my_path>/Smarty/sysplugins/smarty_internal_template.php on line 187

Note that <my_path> is just the path to my app - it doesn't actually show like that in the error.

I can't find anyone else having this problem, so part of me thinks it's something I'm doing wrong, but the error doesn't give me much to go on. I've built plenty of sites with Smarty2 over the years, so I (generally!) know what I'm doing, but this has me stumped. Any advice, anyone?

Edit: This is with version 3.1.13, both BC and non-BC objects.
Back to top
View user's profile Send private message
glenn_crowdicity
Smarty n00b


Joined: 04 Feb 2013
Posts: 2

PostPosted: Mon Feb 04, 2013 11:30 am    Post subject: Reply with quote

Figured it out!

It was something I was doing - my existing autoloaders were causing trouble.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP