Results 1 to 3 of 3

Thread: Sugar Outputs an array at the top of the page

  1. #1
    seismicmike is offline Member
    Join Date
    Dec 2008
    Posts
    7

    Default Sugar Outputs an array at the top of the page

    One of our guys was trying to add a custom drop down to the leads form using the studio. I don't know exactly how or what happened, but now sugar loads any page the contents of an array ($GLOBALS['app_list_strings']['lead/contact type']) gets output at the top of the page. It's really annoying and studio doesn't work right any more.

    I think he said this happened when he tried to save the changes he was making in the studio and either his browser crashed (not sure what he was using), or the save failed, or it hung to much so at some point he hit the save button again. I don't know how or why this would happen. I tried to restore the mysql database from a backup, but it didn't help. Any help you could give us would be nice.

    OS: RHEL 5
    Sugar Version: CE 5.0.0g (Build 3391)
    Webserver Type & Version: Apache2.2.3
    PHP Version: 5.1.6
    MySQL Server Version: 5.0.22

    We're not interested in upgrading to 5.1 because we want to maintain compatibility with the Outlander Outlook plug in.

    Screenshot attached. Pic Related. Thanks in advance.
    Attached Images Attached Images  

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Sugar Outputs an array at the top of the page

    Hi Mike

    Run this command at the root of your sugar installation:

    find -name "*.php" | xargs grep -n "print_r(" | grep -v "GLOBALS\['log'\]"

    It will return some lines.
    Let us know the output.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    seismicmike is offline Member
    Join Date
    Dec 2008
    Posts
    7

    Default Re: Sugar Outputs an array at the top of the page

    That's a good idea. I should have thought of that myself. Here's the output. Nothing is jumping out at me, but I don't know for sure what I'm looking at/for quite yet.

    Code:
    ./jssource/minify.php:483:    //print_r($argv);
    ./modules/InboundEmail/InboundEmail.php:3238:           $message_id = md5(print_r($header, true));
    ./modules/Roles/Save.php:53:print_r($_POST);
    ./modules/Employees/Menu.php:47://print_r($current_user); echo "<Br/>";
    ./modules/Calendar/templates/template_shared_calendar.php:82:        //print_r($cur_time);
    ./modules/Users/reassignUserRecords.php:357:    //print_r($_SESSION['reassignRecords']);
    ./modules/Administration/QuickRepairAndRebuild.php:173:                                                 print_r("<p>" .$mod_strings['LBL_REPAIR_DB_FOR'].' '. $bean_name . "</p>");
    ./modules/UpgradeWizard/uw_utils.php:3674:              //print_r('RES ARRAY '.$resumeFromQuery[0].'</br>');
    ./modules/UpgradeWizard/uw_utils.php:3808:              //print_r($currVarsArray);
    ./include/pdf/class.pdf.php:2694://print_r($info);
    ./include/pdf/class.pdf.php:2809://print_r($info);
    ./include/utils.php:2245: * @param $mixed var to print_r()
    ./include/domit/testing_domit.php:87:                                   print_r($this->xmldoc->toArray());
    ./include/generic/SugarWidgets/SugarWidgetFielddatetime.php:597:                        //print_r($layout_def);
    ./include/database/DBManager.php:525:            //echo "<pre>" . print_r($value, true) . "</pre>";
    ./include/database/DBManager.php:956:                else print_r($err);
    ./include/SugarDependentDropdown/SugarDependentDropdown.php:328:                print_r($v);
    ./install/install_utils.php:1430:        print_r( "-->\n" );
    ./examples/SoapTestPortal2.php:74:echo print_r($result);
    ./examples/SoapTestPortal2.php:87:echo print_r($result);
    ./examples/SoapTestPortal2.php:101:echo print_r($result);
    ./examples/SoapTestPortal.php:77:echo print_r($result);
    ./examples/SoapTestPortal.php:88:echo print_r($result);
    ./examples/SoapTestPortal.php:100:echo print_r($result);
    ./examples/SoapTestPortal.php:111:echo print_r($result);
    ./examples/SoapTestPortal.php:123:echo print_r($result);
    ./examples/SoapTestPortal.php:135:echo print_r($result);
    ./examples/SoapTestPortal.php:147:echo print_r($result);
    ./examples/SoapTestPortal.php:158:echo print_r($result);
    ./examples/SoapTestPortal.php:170:echo print_r($result);
    ./examples/SoapTestPortal.php:183:echo print_r($result);
    ./examples/SoapTestPortal.php:195:echo print_r($result);
    ./examples/SoapTestPortal.php:208:echo print_r($result);
    ./examples/SoapTestPortal.php:220:echo print_r($result);
    ./examples/SoapTestPortal.php:232:echo print_r($result);
    ./examples/SoapTestPortal.php:244:echo print_r($result);
    ./examples/SoapTestPortal.php:258:echo print_r($result);
    ./examples/SoapTest.php:73:echo print_r($result);
    ./examples/SoapTest.php:85:echo print_r($result);
    ./examples/SoapTest.php:96:echo print_r($result);
    ./examples/SoapTest.php:107:echo print_r($result);
    ./examples/SoapTest.php:118:echo print_r($result);

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Array format
    By aswath28 in forum Developer Help
    Replies: 3
    Last Post: 2008-10-17, 11:44 AM
  2. Replies: 3
    Last Post: 2007-11-07, 02:28 PM
  3. Replies: 0
    Last Post: 2007-04-13, 10:41 AM
  4. Replies: 0
    Last Post: 2007-04-13, 09:55 AM
  5. Can't find an array :(
    By Zarg in forum Developer Help
    Replies: 0
    Last Post: 2005-04-20, 05:57 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
  •