[SOLVED] Problem with Smarty in newly uploaded site

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
EoinDubh
Forum Members
Forum Members
Posts: 34
Joined: Sun Feb 28, 2010 12:52 am

[SOLVED] Problem with Smarty in newly uploaded site

Post by EoinDubh »

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:

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
The above .php file in /tmp is:

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);
}



?>
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
Last edited by EoinDubh on Mon Apr 05, 2010 8:00 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problem with Smarty in newly uploaded site

Post by Nullig »

Clear the cache in Admin.

Nullig
EoinDubh
Forum Members
Forum Members
Posts: 34
Joined: Sun Feb 28, 2010 12:52 am

Re: [SOLVED] Problem with Smarty in newly uploaded site

Post by EoinDubh »

I was too quick with the solved. I can't get to the admin panel to clear the cache. It was kicking back to the local host and working OK until I shut down the WAMP server. I have the original error still and when I try to get to the admin page I get a page not found.
EoinDubh
Forum Members
Forum Members
Posts: 34
Joined: Sun Feb 28, 2010 12:52 am

Re: Problem with Smarty in newly uploaded site

Post by EoinDubh »

I have also tried moving the files out of the /tmp/cache directory with no change in the error message.

I moved the files in /tmp/cache /tmp/configs and /tmp/templates_c into another directory structure and now get this page:

Code: Select all

Doire Bhrighid
An OBOD Grove
Sidebar Navigation

© 2010 doirebhrighid.net | Design by: Ravensrock Design 
A view source shows the template code, but nothing displays.
Last edited by EoinDubh on Sun Mar 28, 2010 9:08 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problem with Smarty in newly uploaded site

Post by Nullig »

Did you change the paths in the config.php?
Have you tried reuploading the files, in case there was an FTP problem?

Nullig
EoinDubh
Forum Members
Forum Members
Posts: 34
Joined: Sun Feb 28, 2010 12:52 am

Re: Problem with Smarty in newly uploaded site

Post by EoinDubh »

Nullig,

Yes I checked the paths in config.php an made sure that they were pointing to the correct places and that the database connection entries were correct. I did that after uploading and before trying to access the site. I have also deleted everything and re-uploaded the files but get the same result. Do you thing that possibly uploading the setup files and trying an update might fix it? Or updating to 1.7?

Thanks
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Problem with Smarty in newly uploaded site

Post by Nullig »

You xould try doing a straight install of 1.6.7 on the server, but bypass the db creation and sample files. This should give you a clean config.php.

Did you add any modules to the local install before you uploaded it?

Nullig
EoinDubh
Forum Members
Forum Members
Posts: 34
Joined: Sun Feb 28, 2010 12:52 am

[SOLVED] Re: Problem with Smarty in newly uploaded site

Post by EoinDubh »

Doing a straight install of 1.6.7 on the server, but bypassing the db creation and sample files solved the problem. I backed up the system and uploaded a the /install file set, deleted config.php, created a new empty set and ran the install. After the install completed I went into admin and set the files that I wanted to be the defaults and edited the pages to make sure that the kinks and pictures were working properly. It is running great now.
Locked

Return to “[locked] Installation, Setup and Upgrade”