Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Help needed please with error following template edit

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Spinball
Smarty n00b


Joined: 20 Jun 2011
Posts: 3

PostPosted: Mon Jun 20, 2011 11:08 pm    Post subject: Help needed please with error following template edit Reply with quote

Hello,
I run a vBulletin forum with a Survey plugin installed.
I have never heard of Smarty until I got an error.
I edited results.tpl file (using Dreamweaver) to tweak the HTML layout.
Now when I try to view the results of the survey I get an error:

Warning: require_once(SMARTY_CORE_DIRcore.load_plugins.php) [function.require-once]: failed to open stream: No such file or directory in [path]/survey/smarty/templates_c/Default^results.tpl on line 3

Fatal error: require_once() [function.require]: Failed opening required 'SMARTY_CORE_DIRcore.load_plugins.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/sites/avforums/public_html/forums/survey/smarty/templates_c/Default^results.tpl on line 3

I don't know anything about Smarty and unfortunately this issue needs resolving sooner than I can learn anything about it.

What do I do, please?
Thanks in advance for any help.
Back to top
View user's profile Send private message
Code62
Smarty Rookie


Joined: 21 Jun 2011
Posts: 12
Location: Work@Liège.be

PostPosted: Tue Jun 21, 2011 12:49 pm    Post subject: Reply with quote

Hello,

Quote:
require_once(SMARTY_CORE_DIRcore.load_plugins.php)

it seems that the constant "SMARTY_CORE_DIR" is not interpreted, and is concatened as a string with the rest of the path...

Could you please show us what exactly you've modified in the template file ?
(and you didn't modify anything else at the same time ?)



=> after a search: it could be a bug in smarty 2 ( http://www.smarty.net/forums/viewtopic.php?t=17170&highlight=smartycoredircore )
so you could just try to just flush the template_c directory, and it could solve your problem Smile
Back to top
View user's profile Send private message Visit poster's website
Spinball
Smarty n00b


Joined: 20 Jun 2011
Posts: 3

PostPosted: Tue Jun 21, 2011 2:57 pm    Post subject: Reply with quote

Thanks for the reply.
I removed 'margin-left: 25px;' from the template and nothing else was changed.
How do I flush the directory? You mean delete everything from it?
How are the files then recreated?
Back to top
View user's profile Send private message
Code62
Smarty Rookie


Joined: 21 Jun 2011
Posts: 12
Location: Work@Liège.be

PostPosted: Tue Jun 21, 2011 3:24 pm    Post subject: Reply with quote

Spinball wrote:

How do I flush the directory? You mean delete everything from it?
How are the files then recreated?

exactly Smile
smarty will recreate the file when it will "need" them, don't worry about it Wink

careful, i said the template_c folder, not the "normal" template ^^
Back to top
View user's profile Send private message Visit poster's website
Spinball
Smarty n00b


Joined: 20 Jun 2011
Posts: 3

PostPosted: Tue Jun 21, 2011 3:43 pm    Post subject: Reply with quote

Will it recreate them with the same error because of that bug?

I fixed it, by the way, by editing the template Default^report.tpl and manually entering the correct path.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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