Results 1 to 5 of 5

Thread: Fatal error: function get_summary_text() MVC/View/SugarView.php

  1. #1
    rafascarvalho is offline Member
    Join Date
    Feb 2011
    Location
    São Paulo, SP - Brazil
    Posts
    8

    Default Fatal error: function get_summary_text() MVC/View/SugarView.php

    When I access a specific Lead, Sugarcrm returns an error:

    Fatal error: Call to a member function get_summary_text() on a non-object in /home/xxxxx/public_html/vipcrm/include/MVC/View/SugarView.php on line 1088

    Code:
     protected function _getModuleTitleParams($bTitle=false)
        {
        	$params = array($this->_getModuleTitleListParam($bTitle));
        	
        	if (isset($this->action)){
        	    switch ($this->action) {
        	    case 'EditView':
                    if(!empty($this->bean->id)) {
                        $params[] = "<a href='index.php?module={$this->module}&action=DetailView&record={$this->bean->id}'>".$this->bean->get_summary_text()."</a>";
                        $params[] = $GLOBALS['app_strings']['LBL_EDIT_BUTTON_LABEL'];
                    }
                    else
                        $params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL'];
                    break;
                case 'DetailView':
                    $beanName = $this->bean->get_summary_text();
                    $params[] = $beanName;
                    break;
        		}
        	}
     		
        	return $params;
        }
    The line 1088 is this:
    Code:
    $beanName = $this->bean->get_summary_text();
    The status of this Lead is Converted, it's the only different what I have found comparing to others.

    Any ideia?

  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: Fatal error: function get_summary_text() MVC/View/SugarView.php

    Add the following code before line #1088

    PHP Code:
    $GLOBALS['log']->fatal("bean: " print_r($this->bean));
    $debug debug_backtrace();
    foreach(
    $debug as $id => $defs) {
      unset(
    $debug[$id]['args']);
      unset(
    $debug[$id]['object']);
    }

    $GLOBALS['log']->fatal("debug_backtrace: " print_r($debug)); 
    Test again, open sugarcrm.log and let us know the output for these two debug entries.

    Regards
    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
    rafascarvalho is offline Member
    Join Date
    Feb 2011
    Location
    São Paulo, SP - Brazil
    Posts
    8

    Default Re: Fatal error: function get_summary_text() MVC/View/SugarView.php

    Andre,

    Now SugarCRM returns:

    Code:
    Array ( [0] => Array ( [file] => /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php [line] => 1166 [function] => _getModuleTitleParams [class] => SugarView [type] => -> ) [1] => Array ( [file] => /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php [line] => 231 [function] => getBrowserTitle [class] => SugarView [type] => -> ) [2] => Array ( [file] => /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php [line] => 114 [function] => displayHeader [class] => SugarView [type] => -> ) [3] => Array ( [file] => /home/vipcomun/public_html/vipcrm/include/MVC/Controller/SugarController.php [line] => 292 [function] => process [class] => SugarView [type] => -> ) [4] => Array ( [file] => /home/vipcomun/public_html/vipcrm/include/MVC/Controller/SugarController.php [line] => 273 [function] => processView [class] => SugarController [type] => -> ) [5] => Array ( [file] => /home/vipcomun/public_html/vipcrm/include/MVC/SugarApplication.php [line] => 85 [function] => execute [class] => SugarController [type] => -> ) [6] => Array ( [file] => /home/vipcomun/public_html/vipcrm/index.php [line] => 43 [function] => execute [class] => SugarApplication [type] => -> ) ) 
    Fatal error: Call to a member function get_summary_text() on a non-object in /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php on line 1096
    SugarCRM log:
    Code:
    bean: 1
    Fri Jun 10 17:32:20 2011 [899771][bb00b1b1-2730-e212-161a-4c920b16a0d2][FATAL] debug_backtrace: 1

  4. #4
    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: Fatal error: function get_summary_text() MVC/View/SugarView.php

    Sorry, I forgot an attribute on print_r:

    PHP Code:
    $GLOBALS['log']->fatal("bean: " print_r($this->beantrue)); 
    $debug debug_backtrace(); 
    foreach(
    $debug as $id => $defs) { 
      unset(
    $debug[$id]['args']); 
      unset(
    $debug[$id]['object']); 


    $GLOBALS['log']->fatal("debug_backtrace: " print_r($debugtrue)); 
    Let me know what is in sugarcrm.log
    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.

  5. #5
    rafascarvalho is offline Member
    Join Date
    Feb 2011
    Location
    São Paulo, SP - Brazil
    Posts
    8

    Default Re: Fatal error: function get_summary_text() MVC/View/SugarView.php

    Sorry, I had others tasks to do and this error was not on the top list.

    PHP Code:
    [FATALbean
    Fri Jul  8 18:50:49 2011 [14953][bb00b1b1-2730-e212-161a-4c920b16a0d2][FATALdebug_backtrace: Array
    (
        [
    0] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php
                
    [line] => 1166
                
    [function] => _getModuleTitleParams
                
    [class] => SugarView
                
    [type] => ->
            )

        [
    1] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php
                
    [line] => 231
                
    [function] => getBrowserTitle
                
    [class] => SugarView
                
    [type] => ->
            )

        [
    2] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/include/MVC/View/SugarView.php
                
    [line] => 114
                
    [function] => displayHeader
                
    [class] => SugarView
                
    [type] => ->
            )

        [
    3] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/include/MVC/Controller/SugarController.php
                
    [line] => 292
                
    [function] => process
                
    [class] => SugarView
                
    [type] => ->
            )

        [
    4] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/include/MVC/Controller/SugarController.php
                
    [line] => 273
                
    [function] => processView
                
    [class] => SugarController
                
    [type] => ->
            )

        [
    5] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/include/MVC/SugarApplication.php
                
    [line] => 85
                
    [function] => execute
                
    [class] => SugarController
                
    [type] => ->
            )

        [
    6] => Array
            (
                [
    file] => /home/vipcomun/public_html/vipcrm/index.php
                
    [line] => 43
                
    [function] => execute
                
    [class] => SugarApplication
                
    [type] => ->
            )



Thread Information

Users Browsing this Thread

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

Similar Threads

  1. upgrade error Fatal error: Call to undefined function posix_getpwuid()
    By dsuvankar in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2010-05-26, 03:02 PM
  2. Replies: 1
    Last Post: 2009-11-03, 12:24 AM
  3. Fatal error: Call to undefined function mb_encode
    By vegardh in forum Developer Help
    Replies: 5
    Last Post: 2006-12-26, 04:52 PM
  4. Replies: 0
    Last Post: 2006-10-31, 08:09 AM
  5. Fatal Error: Call to undefined function:
    By developerx in forum Help
    Replies: 6
    Last Post: 2006-04-06, 04:20 PM

Tags for this Thread

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
  •