|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Spinball Smarty n00b
Joined: 20 Jun 2011 Posts: 3
|
Posted: Mon Jun 20, 2011 11:08 pm Post subject: Help needed please with error following template edit |
|
|
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 |
|
Code62 Smarty Rookie
Joined: 21 Jun 2011 Posts: 12 Location: Work@Liège.be
|
Posted: Tue Jun 21, 2011 12:49 pm Post subject: |
|
|
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 |
|
Back to top |
|
Spinball Smarty n00b
Joined: 20 Jun 2011 Posts: 3
|
Posted: Tue Jun 21, 2011 2:57 pm Post subject: |
|
|
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 |
|
Code62 Smarty Rookie
Joined: 21 Jun 2011 Posts: 12 Location: Work@Liège.be
|
Posted: Tue Jun 21, 2011 3:24 pm Post subject: |
|
|
Spinball wrote: |
How do I flush the directory? You mean delete everything from it?
How are the files then recreated? |
exactly
smarty will recreate the file when it will "need" them, don't worry about it
careful, i said the template_c folder, not the "normal" template ^^ |
|
Back to top |
|
Spinball Smarty n00b
Joined: 20 Jun 2011 Posts: 3
|
Posted: Tue Jun 21, 2011 3:43 pm Post subject: |
|
|
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 |
|
|
|
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
|