Page 1 of 1
Version 1.2.1: Known issues and fixes
Posted: Tue Nov 27, 2007 7:23 am
by RonnyK
This topic is meant to have the issues and fixes of the latest stable at a single place.
* News broken and User Defined Tags broken, Tags being displayed twice.
Put the following logic in the file
modifier.cms_date_format.php under \Plugins
Clear the CACHE as well after putting in the changed file.
Code: Select all
<?php
function smarty_cms_modifier_cms_date_format($string, $format = '',
$default_date = '')
{
if( $format == '' )
{
$format = get_site_preference('defaultdateformat');
if( $format == '' )
{
$format = '%b %e, %Y';
}
$uid = get_userid(false);
if( $uid )
{
$tmp = get_preference($uid,'date_format_string');
if( $tmp != '' )
{
$format = $tmp;
}
}
}
global $gCms;
$smarty =& $gCms->GetSmarty();
$config =& $gCms->GetConfig();
$fn = cms_join_path($config['root_path'],'lib','smarty','plugins','modifier.date_format.php');
if( !file_exists($fn) ) die();
require_once( $fn );
return smarty_modifier_date_format($string,$format,$default_date);
}
// EOF
?>
Ronny
Re: Version 1.2.1: Known issues and fixes
Posted: Tue Nov 27, 2007 2:04 pm
by cnymike
Whoa! This did not work for me. Replacing the code as indicated results in these errors in admin...
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/admin/lang.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/lib/classes/class.admintheme.inc.php on line 161
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/lib/classes/class.admintheme.inc.php on line 164
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/lib/classes/class.admintheme.inc.php on line 167
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/lib/classes/class.admintheme.inc.php on line 168
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/lib/classes/class.admintheme.inc.php on line 171
Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/xxx/xxx/plugins/modifier.cms_date_format.php:38) in /usr/www/users/xxx/xxx/lib/classes/class.admintheme.inc.php on line 176
And the custom_copyright is now broken again on front end
Re: Version 1.2.1: Known issues and fixes
Posted: Tue Nov 27, 2007 2:17 pm
by tsw
make sure you dont have any extra empty lines after ?> in the file
Re: Version 1.2.1: Known issues and fixes
Posted: Tue Nov 27, 2007 2:33 pm
by cnymike
Sure enough, there were two blank lines. I removed them and the patch seems to be working now.
Re: Version 1.2.1: Known issues and fixes
Posted: Thu Nov 29, 2007 2:52 pm
by krussell
Apologies for repeated postings, but I still have UDT problems after implementing the suggested fix:
http://forum.cmsmadesimple.org/index.ph ... 245.0.html
Is the solution above intended to address this UDT issue, or is this a different problem?
Re: Version 1.2.1: Known issues and fixes
Posted: Fri Nov 30, 2007 9:55 am
by geepers
i've also implemented this patch on v1.2.1 and still can not get UDT's to display on the frontend at all. any other known patches at this time?
double-checked regarding the extra lines as well, still hooped

Re: Version 1.2.1: Known issues and fixes
Posted: Fri Nov 30, 2007 12:18 pm
by krussell
Solved the UDT problem.
The key missing bit of information was that in addition to installing the patch, you must clear your cache via the admin interface:
Site Admin -> Global Settings -> Clear Cache
I went round the houses a bit with this, because there were a few slightly different solutions described in the forums. For me, the solution has been to apply the patch described above and clear the cache.
I will try and tidy up by pointing stray threads back to here.
Thanks to everyone who provided advice.
Re: Version 1.2.1: Known issues and fixes
Posted: Fri Nov 30, 2007 12:36 pm
by RonnyK
Krussel,
thanks for the addinfo. I put it in the First subject now as well.
There will be a 1.2.2 release following shortly, where the patched file is included.
Ronny
Re: Version 1.2.1: Known issues and fixes
Posted: Fri Nov 30, 2007 3:29 pm
by geepers
cleared the cache and bingo
brilliant - thanks
Re: Version 1.2.1: Known issues and fixes
Posted: Sat Dec 01, 2007 12:05 pm
by RonnyK
This topic will no longer be sticky, as the 1.2.2 version is released. The issues and fixes mentioned here are part of the new release.
Please upgrade to latest stable.
http://cmsmadesimple.org/downloads
Ronny
Re: Version 1.2.1: Known issues and fixes
Posted: Tue Dec 04, 2007 10:37 pm
by minneapolis_dan
Wow, great. I was struggling with this issue of why my user defined tag was not working. Thanks for the help.