Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By adsherpa

Thread: Can not edit the sugar dashlet

  1. #1
    MariocS is offline Member
    Join Date
    Dec 2009
    Posts
    7

    Default Can not edit the sugar dashlet

    Hi,
    when i try modify the properties a sugar dashlet, the window the modification is not see, in the php's logs i found this errors

    PHP Fatal error: Call to undefined method SugarWidgetFieldVarchar::SugarWidgetFieldVarchar() in /opt/lampp/htdocs/sugar_enlaceo/include/generic/SugarWidgets/SugarWidgetFieldname.php on line 48, referer: http://DIRECCIONIP/SUGARCRM/index.ph...e&action=index

    Operating system type and version Centos 5.4
    Sugar Version and Edition Sugar CE Version 5.2.0k (Build 5837)
    Webserver type an version LAMP,
    PHP Version PHP Version 5.3.0,
    APACHE VERSION Apache/2.2.12,
    MYSQL mysqlnd 5.0.5-dev - 081106

    thanks

  2. #2
    dfv78 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    16

    Default Re: Can not edit the sugar dashlet

    Hi, I'm having the same problem

    I'm using php 5.3.1
    sugarcrm 5.5

    I get the following error in the php log file:

    PHP Fatal error: Call to undefined method SugarWidgetFieldVarchar::SugarWidgetFieldVarchar() in /html/sugar/include/generic/SugarWidgets/SugarWidgetFieldname.php on line 48

    When I take a look at the file SugarWidgetFieldname.php on line 48 I see the method call that the error is referring to:

    PHP Code:
    parent::SugarWidgetFieldVarchar($layout_manager); 
    in the beginning of this same file there is this include where I presume the problematic method is defined.
    PHP Code:
    require_once('include/generic/SugarWidgets/SugarWidgetFieldvarchar.php'); 
    Then when I take a look at SugarWidgetFieldvarchar.php (where the method should be located) the only thing I see is the class:

    PHP Code:
    class SugarWidgetFieldVarchar extends SugarWidgetReportField 

    I had to downgrade to php 5.2.11 and now the Edit Sugar Dashlet is working again. I believe it was due to the ereg function being deprecated in php 5.3 as it was giving me error messages also.
    Last edited by dfv78; 2010-01-10 at 04:33 PM.

  3. #3
    adsherpa is offline Member
    Join Date
    Dec 2008
    Posts
    8

    Smile Re: Can not edit the sugar dashlet

    Hi all,
    Here is the solution that worked for me.

    in file include/generic/SugarWidgets/SugarWidgetFieldvarchar.php
    I added this function under the class.

    PHP Code:
    function SugarWidgetFieldVarchar(&$layout_manager)
     {
        
    parent::SugarWidgetReportField($layout_manager);
     } 

    Once I added this it worked. Looks like the problem was the method that was referring to parent class from calling function but the parent class which is SugarWidgetFieldVarchar didn't have this function.
    So in short, all I had to do was to add that constructor function which basically calls it's parent class function.

    Good luck!
    Last edited by adsherpa; 2010-01-27 at 08:46 PM.
    gregintdev likes this.

  4. #4
    gssergey is offline Junior Member
    Join Date
    Jul 2008
    Posts
    1

    Default Re: Can not edit the sugar dashlet

    RESPECT to you, adsherpa!! I writed it and it worked!! I have SugarCRM 5.5.1. Why SugarCRM have this bug so far ? It's impossible

  5. #5
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Can not edit the sugar dashlet

    5 months later, and still it's a bug. Thanks for the fix.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  6. #6
    pravin.agham is offline Senior Member
    Join Date
    Sep 2010
    Posts
    64

    Default Re: Can not edit the sugar dashlet

    Its really work man..

    Thank you very much.....


    -Pravin

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. disable edit mode in Dashlet
    By lukio in forum Developer Help
    Replies: 3
    Last Post: 2010-08-20, 04:35 AM
  2. Unable to Edit Sugar Dashlet
    By qmv in forum Help
    Replies: 9
    Last Post: 2009-03-30, 05:51 PM
  3. Replies: 0
    Last Post: 2008-12-04, 06:11 PM
  4. Edit Dashlet = Internet Acces
    By Romanzote in forum Help
    Replies: 1
    Last Post: 2007-05-11, 10:22 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
  •