Results 1 to 1 of 1

Thread: Error on SugarBean function mark_deleted

  1. #1
    jasv is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    98

    Default Error on SugarBean function mark_deleted

    Hello there,

    I'm using the mark_deleted function from a custom module. The problem is that this error is showing up:

    Catchable fatal error: Object of class Link could not be converted to string in C:\xampp\htdocs\Sugar-SII\data\SugarBean.php on line 1797

    The line 1797 is the next:
    PHP Code:
    $GLOBALS['log']->debug("save_relationship_changes(): From field_defs - attempting to add a relationship record - {$def [ 'link' ]} = {$this->$def [ 'id_name' ]}" ); 
    This is from a function called save_relationship_changes.

    I comment out this line but another error pops up:
    Catchable fatal error: Object of class Link could not be converted to string in C:\xampp\htdocs\Sugar-SII\data\Link.php on line 734

    This line is the next one:

    PHP Code:
        function _insert_row(&$value_array) {
            
    //add key column
            
    $value_array['id']= create_guid();
            
            
    $columns_list='';
            
    $values_list='';
            
    $delimiter='';
            foreach (
    $value_array as $key=>$value) {
                
    $columns_list.=$delimiter.$key;
                
    $values_list .=$delimiter."'".$value."'"//THIS THE LINE 734
                
    $delimiter=",";
            }
            
    $insert_string='INSERT into '.$this->_relationship->join_table.' ('.$columns_list.') VALUES ('.$values_list.')';
            
    $GLOBALS['log']->debug("Relationship Insert String :".$insert_string);
            
            
    $result=$this->_db->query($insert_stringtrue);
        } 
    What causes these errors???

    Thank in advance... Cheers.

    PD: My sugar version is SugarCRM 1.5.0a
    Last edited by jasv; 2009-01-09 at 09:59 PM. Reason: I forgot Sugar Version

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SugarBean.php error
    By kinshibuya in forum Help
    Replies: 1
    Last Post: 2008-09-22, 07:57 PM
  2. SugarBean.php loop error
    By bobby.bland in forum Help
    Replies: 2
    Last Post: 2008-08-18, 01:12 PM
  3. listview function from sugarbean not getting call
    By zohaib in forum Developer Help
    Replies: 0
    Last Post: 2008-08-11, 06:31 AM
  4. Fatal Error with SugarBean
    By cpozen in forum Help
    Replies: 1
    Last Post: 2007-07-09, 02:24 AM
  5. sugarbean fatal error
    By guz843 in forum Help
    Replies: 2
    Last Post: 2006-01-09, 11:43 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
  •