Version 1.2.1: Known issues and fixes

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Version 1.2.1: Known issues and fixes

Post 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
Last edited by RonnyK on Fri Nov 30, 2007 12:34 pm, edited 1 time in total.
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Version 1.2.1: Known issues and fixes

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Version 1.2.1: Known issues and fixes

Post by tsw »

make sure you dont have any extra empty lines after ?> in the file
cnymike
Power Poster
Power Poster
Posts: 446
Joined: Sun Jan 22, 2006 3:24 am

Re: Version 1.2.1: Known issues and fixes

Post by cnymike »

Sure enough, there were two blank lines. I removed them and the patch seems to be working now.
krussell
Forum Members
Forum Members
Posts: 32
Joined: Wed May 16, 2007 2:00 pm

Re: Version 1.2.1: Known issues and fixes

Post 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?
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm

Re: Version 1.2.1: Known issues and fixes

Post 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 :(
Last edited by geepers on Fri Nov 30, 2007 10:03 am, edited 1 time in total.
krussell
Forum Members
Forum Members
Posts: 32
Joined: Wed May 16, 2007 2:00 pm

Re: Version 1.2.1: Known issues and fixes

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Version 1.2.1: Known issues and fixes

Post 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
geepers
Dev Team Member
Dev Team Member
Posts: 84
Joined: Thu Nov 22, 2007 10:41 pm

Re: Version 1.2.1: Known issues and fixes

Post by geepers »

cleared the cache and bingo

brilliant - thanks
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Version 1.2.1: Known issues and fixes

Post 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
minneapolis_dan
Forum Members
Forum Members
Posts: 36
Joined: Tue Jun 19, 2007 10:20 pm

Re: Version 1.2.1: Known issues and fixes

Post by minneapolis_dan »

Wow, great. I was struggling with this issue of why my user defined tag was not working. Thanks for the help.
Post Reply

Return to “CMSMS Core”