Results 1 to 6 of 6

Thread: Admin Module Displaying 'Random' Characters

  1. #1
    erica26 is offline Member
    Join Date
    Jan 2009
    Posts
    13

    Default Admin Module Displaying 'Random' Characters

    Running sugar version 5.2.0.

    In modules/Administration/index.php the following if block (starting on line 84) results in a new row in the Administration Network table.

    Code:
    if(!empty($license->settings['license_latest_versions'])){
        	$encodedVersions = $license->settings['license_latest_versions'];
        	$versions = unserialize(base64_decode( $encodedVersions));
        	include('sugar_version.php');
        	if(!empty($versions)){
        		foreach($versions as $version){
        			if($version['version'] > $sugar_version )
        			{
        				$admin_option_defs['update'][] ='red';
        				if(!isset($admin_option_defs['update']['additional_label']))$admin_option_defs['update']['additional_label']= '('.$version['version'].')';
        			}
        		}
        	}
        }
    Displayed on the page is the 'r' of the word red in one table cell, and a '(' in a second table cell. The '(' is colored red and from what it looks like in the code should have a version number following it. But it doesn't. Has anyone ever seen this behavior before?

  2. #2
    ddbtek is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    United States
    Posts
    45

    Default Re: Admin Module Displaying 'Random' Characters

    We're seeing this too, exactly as you have described. Have not seen this anywhere else. Is this something 5.2.0a patch would fix? Have not seen any info on how to apply the 5.2.0a patch, it's ignored on all of the online literature.

    I believe this problem is happening because the variable $license->settings['license_latest_versions'] is uninitialized and so it has garbage and the interpeter thinks it's nonzero and so it executes this code block. Of course, this code block then renders additional links with also uninitialized variables so you see the "base" url + the uninitialized variable which generates the onscreen garbage and incomplete character.
    Last edited by ddbtek; 2009-02-06 at 04:03 AM. Reason: reviewed code and identified actual cause

  3. #3
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Admin Module Displaying 'Random' Characters

    I've seen it on the German forum. Looks like a leftover from Pro/Ent. I'm running one 5.2a but I haven't seen it there.

    Upgrade: download the patch and simply apply it in the admin section under upgrades. No unzip. That's it.
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  4. #4
    ddbtek is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    United States
    Posts
    45

    Default Re: Admin Module Displaying 'Random' Characters

    I completely agree, remnant. The 5.2.0a patch *did* fix it.

  5. #5
    erica26 is offline Member
    Join Date
    Jan 2009
    Posts
    13

    Default Re: Admin Module Displaying 'Random' Characters

    Thanks! Installing the patch does remove those characters.

    However, I'm weary of thinking it actually fixed the issue because the code in index.php is still the same -- so my fear is that the same behavior will occur the next time there's a newer version available. Thoughts?

  6. #6
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Admin Module Displaying 'Random' Characters

    I think this is a minor issue compared to others.

    One should never change or upgrade a running software just because there is a new version available. Just wait and see, do a test installation and if everything is ok go ahead with your production box.

    Our customers are still on 5 and 5.1, one even on 4.5. As long as you do not need new functionality there is no need to upgrade...
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 15
    Last Post: 2009-04-22, 07:25 PM
  2. where i will found that random key?
    By ramji123 in forum Help
    Replies: 2
    Last Post: 2007-05-14, 06:29 PM
  3. Trouble displaying some Japanese characters (UTF-8)
    By monsieurgerard in forum Help
    Replies: 2
    Last Post: 2005-08-12, 02:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •