Results 1 to 6 of 6

Thread: Need help on Team OS 3.3

  1. #1
    holyfire is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    43

    Default Need help on Team OS 3.3

    Hi,

    I recently installed Team OS 3.3, and i've got a warning message in users screen,
    here, this error refers to this part of code in utils.php:
    PHP Code:
        if (empty($key_list)) $key_list = array();
        
    //create the type dropdown domain and set the selected value if $opp value already exists
        
    foreach ($key_list as $option_key=>$option_value) {             //LINE 1285

            
    $selected_string '';
            
    // the system is evaluating $selected_key == 0 || '' to true.  Be very careful when changing this.  Test all cases.
            // The bug was only happening with one of the users in the drop down.  It was being replaced by none.
            
    if (($option_key != '' && $selected_key == $option_key) || ($selected_key == '' && $option_key == '') || (is_array($selected_key) &&  in_array($option_key$selected_key)))
            {
                
    $selected_string 'selected ';
            }

            
    $html_value $option_key;

            
    $select_options .= "\n<OPTION ".$selected_string."value='$html_value'>$label_list[$option_key]</OPTION>";
        }
        
    $select_options preg_replace($pattern$replacement$select_options);
        return 
    $select_options
    i don't know what is the problem, if i try to comment line 1285, the drop down default_team_id_c became populate and the error disapears,
    someone could help me please ?

    thank in advance,
    Alexandre A.
    Last edited by holyfire; 2007-06-26 at 06:38 AM.

  2. #2
    holyfire is offline Sugar Community Member
    Join Date
    May 2007
    Posts
    43

    Default Re: Need help on Team OS 3.3

    Up, no one had this warning message ?
    Warning: Invalid argument supplied for foreach() in C:\wamp\www\SugarOS\include\utils.php on line 1285, Pleaseee

    SugarCRM 4.5.1d
    Apache 2.0
    Php 4.4.7
    MySQL 3.23.49
    Windows 2003 server
    Last edited by holyfire; 2007-06-27 at 09:30 AM.

  3. #3
    jorik47 is offline Junior Member
    Join Date
    Aug 2007
    Posts
    1

    Default Re: Need help on Team OS 3.3

    Same problem here..

    Gr Jorik

  4. #4
    ivolator's Avatar
    ivolator is offline Sugar Community Member
    Join Date
    Sep 2006
    Location
    Dagobah
    Posts
    98

    Default Re: Need help on Team OS 3.3

    before the foreach loop ther should say
    PHP Code:
    if(is_array($key_list) && !empty($key_list){
         foreach (
    blahblah).......

    But since it is core code you might want to disable warrnings on your production at least.

  5. #5
    sherlock is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    13

    Default Re: Need help on Team OS 3.3

    I also get the error -

    Warning: Invalid argument supplied for foreach() in /var/www/SugarOS-Full-4.5.1d/include/utils.php on line 1285

    I get it when I view the "Companies" module for sugarcrm community version Sugar Open Source 4.5.1e

    Any ideas on how to stop as its not actually impacting functionality that we can see.

  6. #6
    eucrod is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    343

    Default Re: Need help on Team OS 3.3

    Quote Originally Posted by sherlock
    I also get the error -

    Warning: Invalid argument supplied for foreach() in /var/www/SugarOS-Full-4.5.1d/include/utils.php on line 1285

    I get it when I view the "Companies" module for sugarcrm community version Sugar Open Source 4.5.1e

    Any ideas on how to stop as its not actually impacting functionality that we can see.

    Hello sherlock,

    What is the version you using?

    The last version is this . Test it, please.
    Euclides Rodriguez G.
    Consultor Soluciones Empresariales
    Cel: 3144715833
    Soluciones 360°.
    Bogotá, Colombia

    En http://www.crmhispano.com puedes encontrar todo sobre SugarCRM en español.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Teams Open Source
    By dtokeefe in forum Downloads
    Replies: 191
    Last Post: 2010-04-07, 01:01 PM
  2. Why Teams OS 2.0 Could Be So Important to So Many
    By SohodojoJim in forum General Discussion
    Replies: 6
    Last Post: 2006-10-05, 02:15 PM
  3. Employee->User Conversion fails to create default team
    By richardk@idealogical.com in forum Help
    Replies: 0
    Last Post: 2006-07-26, 07:11 PM
  4. Team Manager Ability to add Team notice
    By synaq in forum Feature Requests
    Replies: 1
    Last Post: 2006-06-12, 02:08 PM
  5. Multiple Team Memberships
    By isnceo in forum Feature Requests
    Replies: 1
    Last Post: 2005-09-27, 07:02 PM

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
  •