[SOLVED] Problem with Smarty in newly uploaded site
Posted: Sun Mar 28, 2010 5:27 pm
Here is my environment:
CMSMadeSimple 1.6.7
PHP 5.2.11
MySQL 5.1.42
Apache Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
I have only been using CMSMadeSimple for a few weeks but have experience with other CMS systems. I have done this same process several times without any problem but today when I tried to setup a site for a friend, I am getting smarty errors. I have built other CMSMadeSimple 1.6.7 sites on this and other ISPs in the past few weeks without any issues.
I created the site locally using WAMPServer and then created a database with the same name on the ISP and did a SQL dump and load. I FTPed the files to the site and adjusted the database connection string. I had to change the DB name and user so I edited the username in the database. When I try to connect to the site I get the following error:
The above .php file in /tmp is:
Anyone have any ideas what the issue is? File corruption on the upload? The ISP doesn't have something installed? Something else? Just blow it off and start over from scratch?
Thanks
CMSMadeSimple 1.6.7
PHP 5.2.11
MySQL 5.1.42
Apache Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
I have only been using CMSMadeSimple for a few weeks but have experience with other CMS systems. I have done this same process several times without any problem but today when I tried to setup a site for a friend, I am getting smarty errors. I have built other CMSMadeSimple 1.6.7 sites on this and other ISPs in the past few weeks without any issues.
I created the site locally using WAMPServer and then created a database with the same name on the ISP and did a SQL dump and load. I FTPed the files to the site and adjusted the database connection string. I had to change the DB name and user so I edited the username in the database. When I try to connect to the site I get the following error:
Code: Select all
string(105) "Smarty error: [in tpl_body:25 line 15]: [plugin] unknown tag - 'search' (core.load_plugins.php, line 124)" string(103)
"Smarty error: [in tpl_body:25 line 24]: [plugin] unknown tag - 'menu' (core.load_plugins.php, line 124)" string(104)
"Smarty error: [in tpl_body:25 line 44]: [plugin] unknown tag - 'title' (core.load_plugins.php, line 124)" string(106)
"Smarty error: [in tpl_body:25 line 45]: [plugin] unknown tag - 'content' (core.load_plugins.php, line 124)"
Doire Bhrighid
An OBOD Grove
Fatal error: Call to undefined function smarty_cms_function_search() in /xxx/xxx/public_html/xxx/tmp/templates_c/%%E8^E85^E855A813%%tpl_body%3A25.php on line 19
Code: Select all
<?php /* Smarty version 2.6.25, created on 2010-03-28 08:36:59
compiled from tpl_body:25 */
$this->_cache_serials['C:\wamp\www\db\tmp\templates_c\%%E8^E85^E855A813%%tpl_body%3A25.inc'] = 'b81a30027fd135b245de0229f62524ba';
?><?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'search', 'tpl_body:25', 15, false),array('function', 'menu', 'tpl_body:25', 24, false),array('function', 'title', 'tpl_body:25', 44, false),array('function', 'content', 'tpl_body:25', 45, false),)), $this); ?>
<?php
function _smarty_tplfunc_b81a30027fd135b245de0229f62524ba_0(&$_smarty)
{
echo smarty_cms_function_search(array(), $_smarty);
}
function _smarty_tplfunc_b81a30027fd135b245de0229f62524ba_1(&$_smarty)
{
echo smarty_cms_function_menu(array('number_of_levels' => '1','template' => "minimal_menu.tpl"), $_smarty);
}
function _smarty_tplfunc_b81a30027fd135b245de0229f62524ba_2(&$_smarty)
{
echo smarty_cms_function_menu(array('start_level' => '2'), $_smarty);
}
function _smarty_tplfunc_b81a30027fd135b245de0229f62524ba_3(&$_smarty)
{
echo smarty_cms_function_title(array(), $_smarty);
}
function _smarty_tplfunc_b81a30027fd135b245de0229f62524ba_4(&$_smarty)
{
echo smarty_cms_function_content(array(), $_smarty);
}
?>
Thanks