|
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 |
respect_ Smarty n00b
Joined: 26 Sep 2011 Posts: 3
|
Posted: Mon Sep 26, 2011 11:46 pm Post subject: Fatal Error: Running Smarty on localserv problem - pls help! |
|
|
Hi Good people of Smarty forums,
Just grabbed the public_html files of a website from FTP.
I've been trying to run the site on localserv with XAMPP. Unfortunately, I keep running into this bug:
Fatal error: Smarty error: [plugin] prefilter 'tpl_labels' is not implemented in /opt/lampp/htdocs/libsext/Smarty/libs/Smarty.class.php on line 1088
Here is line 1088 of Smarty.class.php
Code: | function trigger_error($error_msg, $error_type = E_USER_WARNING)
{
trigger_error("Smarty error: $error_msg", $error_type); #1088
} |
from Smarty_Compiler.class.php
Code: | // run template source through prefilter functions
if (count($this->_plugins['prefilter']) > 0) {
foreach ($this->_plugins['prefilter'] as $filter_name => $prefilter) {
if ($prefilter === false) continue;
if ($prefilter[3] || is_callable($prefilter[0])) {
$source_content = call_user_func_array($prefilter[0],
array($source_content, &$this));
$this->_plugins['prefilter'][$filter_name][3] = true;
} else {
$this->_trigger_fatal_error("[plugin] prefilter '$filter_name' is not implemented");
}
}
} |
I do not know how to get past it. I have set up a MySQL database and changed permissions to user running the Apache server.
Any ideas?
Please help![/code] |
|
Back to top |
|
respect_ Smarty n00b
Joined: 26 Sep 2011 Posts: 3
|
Posted: Thu Sep 29, 2011 10:12 pm Post subject: |
|
|
Just wanted to bump this as I still do not know how to get past this problem. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Sep 29, 2011 10:44 pm Post subject: |
|
|
Your application does try to load or register a prefilter with name 'tpl_labels' which is not defined. Look for something like $marty->register_filter(...) or $smarty->load_filter(...) in your PHP scripts.
If you find a load_filter(...) for 'tpl_labels' you should have a file prefilter.tpl_labels.php in your plugin_dir.
This is not a standard Smarty filter. So if you downloaded code from somewhere it's likely that something is missing.
Can't help more without knowing your application code. |
|
Back to top |
|
respect_ Smarty n00b
Joined: 26 Sep 2011 Posts: 3
|
Posted: Thu Sep 29, 2011 11:57 pm Post subject: |
|
|
Thanks for the quick reply!
Which PHP files should I look for the aforementioned?
Also, could it be possible that this is a pathing problem? I saw a similar error here where the OP solved the problem by modifying the SMARTY_DIR pathway: http://www.smarty.net/forums/viewtopic.php?t=461
But here mine is in Smarty.class.php which seems correct:
Code: | if (!defined('SMARTY_DIR')) {
define('SMARTY_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
} |
Also, I'd like to note that when everything is uploaded via FTP to the webserver, the site works fine. I just can't get it working on localserv with lampp..
What do you think? |
|
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
|