Page 1 of 2
[CMSMS 0.13] Strange Smarty error
Posted: Sun Aug 20, 2006 4:55 pm
by Bumble
Hello,
A while ago I started with CMSMS and it worked quite well actually, I went on holiday and when I came back there was a strange error.
I'm using CMS Made Simple 0.13 "Canary", and CMSMS always worked. The smarty error is as following:
Fatal error: Smarty error: [in template:18 line 5]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 580) in /var/www/html/lib/smarty/Smarty.class.php on line 1095
When I look at the scripts I don't see what is wrong, so I uploaded the smarty directory again, no effect still the same error.
Anyone here who know's what the problem is and how it can be solved?
Thanks in advance!
Re: [CMSMS 0.13] Strange Smarty error
Posted: Sun Aug 20, 2006 5:02 pm
by calguy1000
check the plugins/function.title.php file, it needs to exist and have the proper permissions.
Re: [CMSMS 0.13] Strange Smarty error
Posted: Sun Aug 20, 2006 5:07 pm
by Bumble
Hello, the file exists and the directory /plugins/ is also chmodded 777.
I just removed the {title} tag from my template, again the same error but now it was "unrecognized tag 'metadata'".
Re: [CMSMS 0.13] Strange Smarty error
Posted: Sun Aug 20, 2006 10:16 pm
by Bumble
Somebody? I need to have my site back up and running in 4 days..
I did't change anything, my webhosting company only installed a PHP module after I had CMSMS up and running, in order to make another PHP-script work. Is it possible that the PHP module causes this problem?
Re: [CMSMS 0.13] Strange Smarty error
Posted: Mon Aug 21, 2006 12:04 am
by iNSiPiD
Clear the cache!
If that doesn't work then try uploading the whole CMS again amd run the install/upgrade.php file.
Re: [CMSMS 0.13] Strange Smarty error
Posted: Tue Aug 22, 2006 12:49 am
by Elijah Lofgren
Bumble wrote:
Hello, the file exists and the directory /plugins/ is also chmodded 777.
I just removed the {title} tag from my template, again the same error but now it was "unrecognized tag 'metadata'".
Please paste your config.php file here (without username and passwords!) and we can take a look at it. It could be a problem with $config['roo_path']
Re: [CMSMS 0.13] Strange Smarty error
Posted: Tue Aug 22, 2006 5:50 pm
by Bumble
Clear cache didn't work, I asked my webhost if they could find out what went wrong, they have tried a lot, but couldn't find it either. (good dutch webhosting company

)
The last thing I want to do is to completely reinstall the CMS, because I had to change a lot of things. My webhost uses a client control panel that also uses the /admin directory.
Elijah Lofgren wrote:
Bumble wrote:
Hello, the file exists and the directory /plugins/ is also chmodded 777.
I just removed the {title} tag from my template, again the same error but now it was "unrecognized tag 'metadata'".
Please paste your config.php file here (without username and passwords!) and we can take a look at it. It could be a problem with $config['roo_path']
Here is my config.php file:
Code: Select all
<?php
#CMS Made Simple Configuration File
#Please clear the cache (Site Admin->Global Settings in the admin panel)
#after making any changes to path or url related options
#-----------------
#Database Settings
#-----------------
#This is your database connection information. Name of the server,
#username, password and a database with proper permissions should
#all be setup before CMS Made Simple is installed.
$config['dbms'] = 'mysql';
$config['db_hostname'] = 'localhost';
$config['db_username'] = 'xxxx';
$config['db_password'] = 'xxxx';
$config['db_name'] = 'xxxx_nl_-_cms';
#If app needs to coexist with other tables in the same db,
#put a prefix here. e.g. "cms_"
$config['db_prefix'] = 'cms';
#Use persistent connections? They're generally faster, but not all hosts
#allow them.
$config['persistent_db_conn'] = false;
#Use ADODB Lite? This should be true in almost all cases. Note, slight
#tweaks might have to be made to date handling in a "regular" adodb
#install before it can be used.
$config['use_adodb_lite'] = true;
#-------------
#Path Settings
#-------------
#Document root as seen from the webserver. No slash at the end
#e.g. http://blah.com
$config['root_url'] = 'http://www.xxxxxx.nl';
#Path to document root. This should be the directory this file is in.
#e.g. /var/www/localhost
$config['root_path'] = '/home/virtual/site63/fst/var/www/html';
#Name of the admin directory
$config['admin_dir'] = 'cmsadmin';
#Where do previews get stored temporarily? It defaults to tmp/cache.
$config['previews_path'] = '/home/virtual/site63/fst/var/www/html/tmp/cache';
#Where are uploaded files put? This defaults to uploads.
$config['uploads_path'] = '/home/virtual/site63/fst/var/www/html/uploads';
#Where is the url to this uploads directory?
$config['uploads_url'] = 'http://www.xxxxxx.nl/uploads';
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 32000000;
#Permissions for uploaded files. This only really needs changing if your
#host has a weird permissions scheme.
$config['default_upload_permission'] = '664';
#------------------
#Usability Settings
#------------------
#Allow smarty {php} tags? These could be dangerous if you don't trust your users.
$config['use_smarty_php_tags'] = false;
#CMSMS Debug Mode? Turn is on to get a better error when you
#see {nocache} errors.
$config['debug'] = false;
#Automatically assign alias based on page title?
$config['auto_alias_content'] = true;
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu?
$config['assume_mod_rewrite'] = false;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '';
#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism? This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = true;
#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy? (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;
#If using none of the above options, what should we be using for the query string
#variable? (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = 'page';
#--------------
#Image Settings
#--------------
#Which program should be used for handling thumbnails in the image manager.
#See http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/Image_Manager for more
#info on what this all means
$config['image_manipulation_prog'] = 'GD';
$config['image_transform_lib_path'] = '/usr/bin/ImageMagick/';
#Default path and URL for uploaded images in the image manager
$config['image_uploads_path'] = '/home/virtual/site63/fst/var/www/html/uploads/images';
$config['image_uploads_url'] = 'http://www.xxxx.nl/uploads/images';
#------------------------
#Locale/Encoding Settings
#------------------------
#Locale to use for various default date handling functions, etc. Leaving
#this blank will use the server's default. This might not be good if the
#site is hosted in a different country than it's intended audience.
$config['locale'] = '';
#In almost all cases, default_encoding should be empty (which defaults to utf-8)
#and admin_encoding should be utf-8. If you'd like this to be different, change
#both. Keep in mind, however, that the admin interface translations are all in
#utf-8, and will be converted on the fly to match the admin_encoding. This
#could seriously slow down the admin interfaces for users.
$config['default_encoding'] = '';
$config['admin_encoding'] = 'utf-8';
#---------------------------------------------
#Use the old stylesheet logic? It's much slower, but it works with older
#versions of CMSMS. You'll also need this set to true if there is a module
#that uses a stylesheet callback. Leave it as false instead you really
#need it.
$config['old_stylesheet'] = false;
# URL of the Admin Panel section of the User Handbook
$config['wiki_url'] = 'http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel';
#Not used anymore... kept around, just in case
$config['disable_htmlarea_translation'] = false;
$config['use_Indite'] = true;
?>
Thanks in advance for your help and time Elijah Lofgren!
Re: [CMSMS 0.13] Strange Smarty error
Posted: Tue Aug 22, 2006 10:55 pm
by Elijah Lofgren
Hmm.. Config looks ok. I would try upgrading to the latest CMSMS 1.0 beta and see if that solve the problem.
Re: [CMSMS 0.13] Strange Smarty error
Posted: Tue Aug 22, 2006 10:57 pm
by Bumble
Elijah Lofgren wrote:
Hmm.. Config looks ok. I would try upgrading to the latest CMSMS 1.0 beta and see if that solve the problem.
Oke, maybe I'll try that, thanks!
Re: [CMSMS 0.13] Strange Smarty error
Posted: Thu Aug 24, 2006 12:17 pm
by Bumble
Before upgrading my very good webhost is trying to put a backup online. I tried to remember when CMSMS worked right, so they try to find a matching backup.
Hopefully that solves te problem!
(today is the day the website should be online

)
Re: [CMSMS 0.13] Strange Smarty error
Posted: Thu Aug 24, 2006 12:33 pm
by Fido
hello,
I already have this bug when i was trying to put an internal link with fckeditor and when the case "generate taglink" was checked. If i uncheck "generate taglink" the bug dissappear...
Re: [CMSMS 0.13] Strange Smarty error
Posted: Thu Aug 24, 2006 12:57 pm
by Bumble
Where do I find that case with "generate taglink" ?
Re: [CMSMS 0.13] Strange Smarty error
Posted: Thu Aug 24, 2006 1:01 pm
by Fido
when you are in fckeditor and you make an Internal link
Re: [CMSMS 0.13] Strange Smarty error
Posted: Thu Aug 24, 2006 1:24 pm
by Bumble
Fido wrote:
when you are in fckeditor and you make an Internal link
Ah oke, ehrm.. I removed al my internal links. The checkbox "generate taglink" is checked, and can't be unchecked when you don't make a internal link.
The error isn't solved ->
http://www.prmedia.nl/indexcms.php
Re: [CMSMS 0.13] Strange Smarty error
Posted: Fri Aug 25, 2006 7:44 pm
by jmcgin51
I'm having a similar error, Bumble. My error seems to be related to cms_selflink. If I use standard html links (), my links are fine, but if I use cms_selflink, I get an error like
Fatal error: Smarty error: [in content:content_en line 2]: syntax error: invalid attribute name: 'Information"' (Smarty_Compiler.class.php, line 1533) in E:\html\domains\katahdindesigns.com\wwwroot\cnh\cms\lib\smarty\Smarty.class.php on line 1095.
v.13
I also tried clearing the cache, running the upgrade.php file, etc. No fix so far, except to use html links...