Results 1 to 6 of 6

Thread: Save contact goes to blank page

  1. #1
    Benson is offline Member
    Join Date
    Jan 2008
    Posts
    5

    Default Save contact goes to blank page

    Having a strange problem with new install of sugarcrm 4.5.1 with Ajexa module installed. Everything works great except adding a new contact. I can add leads and convert to contact I can add anything else. It just seems to go to never never land. I have attached my log.txt file I captured and isolated. If I hit the back button or just hit enter it starts the log again.

    Please help.
    Bob

    Linux centos 5
    apache 2.0
    PHP Version 5.2.5
    MySQL 4.1.22-standard
    SugarCRM 4.5.1
    Attached Files Attached Files

  2. #2
    Benson is offline Member
    Join Date
    Jan 2008
    Posts
    5

    Default Re: Save contact goes to blank page

    I found where it is getting lost It is in this function cleanBean in data\SugarBean.php I am also lost! How to fix?

    function cleanBean() {

    foreach($this->field_defs as $key => $def) {
    echo count(($this->field_defs));
    $type = strtolower($def['type']);
    if(isset($def['dbType']))
    $type .= $def['dbType'];

    if((!($type == 'char' || $type == 'text' || $type == 'enum')) && isset($this->$key))
    {
    $str = from_html($this->$key);
    // Julian's XSS cleaner
    $potentials = clean_xss($str, false);
    if(is_array($potentials) && !empty($potentials)) {
    foreach($potentials as $bad) {
    $this->$key = to_html(str_replace($bad, "", $str));
    }
    }
    }
    }
    }

  3. #3
    Benson is offline Member
    Join Date
    Jan 2008
    Posts
    5

    Default Re: Save contact goes to blank page

    Traced one more step. from_html in includes/utils/db_utils.php It returns a few times then puf!!!

    function to_html($string, $encode=true){
    global $toHTML;

    if($encode && is_string($string)){//$string = htmlentities($string, ENT_QUOTES);
    if(is_array($toHTML)) { // cn: causing errors in i18n test suite ($toHTML is non-array)
    $string = str_replace(array_keys($toHTML), array_values($toHTML), $string);
    }
    }
    return $string;
    }


    function from_html($string, $encode=true){
    global $toHTML;
    //if($encode && is_string($string))$string = html_entity_decode($string, ENT_QUOTES);
    if($encode && is_string($string)){
    $string = str_replace(array_values($toHTML), array_keys($toHTML), $string);

    }
    echo "Here we are", $string;
    return $string;
    }

  4. #4
    Benson is offline Member
    Join Date
    Jan 2008
    Posts
    5

    Default Re: Save contact goes to blank page

    OK I know it we got a problem. I commented out the line in cleaBean
    $str = from_html($this->$key);
    And it work now. Do I have a data problem?

    Please somebody help!

  5. #5
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Save contact goes to blank page

    Hi Benson, it sure looks like your Contact ID is getting blown out for some reason.

    You say you're on 4.5.1 but the latest 451 release is 451h. If possible I suggest we start there. Also, any reason to not use 5.0?

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  6. #6
    Benson is offline Member
    Join Date
    Jan 2008
    Posts
    5

    Default Re: Save contact goes to blank page

    thanks for the reply Andy.

    I am using the Ajexa module and it is for 451. I will look into 451h. When I look at admin it tells me 5.0 update is available. Is there somewhere in the admin I can find the version?

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. CarouselCRM Installation
    By StevenE in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-08-30, 08:16 AM
  2. Replies: 14
    Last Post: 2007-05-29, 11:09 PM
  3. Replies: 13
    Last Post: 2006-08-03, 05:16 PM
  4. Replies: 0
    Last Post: 2005-08-18, 01:40 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
  •