Results 1 to 10 of 10

Thread: Error adding Dashlets

  1. #1
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Error adding Dashlets

    Hello, I am using Sugar CE 5.2.c and my error is that whenever I try to add a dashlet (clicking on the button on the top left) it doesnt work, the pop up with the dashlets options appear, I select one, all the messages on the top of the page appear right (like: adding sugar dashlet, saving layout...), but it just doesnt show it.

    There is an error on my apache log:
    [Tue Jul 07 09:41:19 2009] [error] [client 127.0.0.1] PHP Fatal error: MySugar::require_once() [<a href='function.require'>function.require</a>]: Failed opening required '' (include_path='C:\\Arquivos de programas\\sugarcrm-5.1.0c\\htdocs\\sugarcrm\\include/..;.;C:\\Arquivos de programas\\sugarcrm-5.1.0c/php\\pear') in C:\\Arquivos de programas\\sugarcrm-5.1.0c\\htdocs\\sugarcrm\\include\\MySugar\\MySuga r.php on line 154, referer: http://127.0.0.1:8880/sugarcrm/index...d&action=index

    Any help where I should look?

    Regards

  2. #2
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: Error adding Dashlets

    The error if we have the same file is in this line:
    PHP Code:
    require_once($dashlets[$id]['fileLocation']); 
    Do you have the default dashlets or you were creating custom dashlets?
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  3. #3
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: Error adding Dashlets

    I have default dashlets, but I do have a few other custom modules (that I think dont touch dashlets) and I use language package too. And looking into the file, the error is in that line that you paste.

  4. #4
    eescribano's Avatar
    eescribano is offline Senior Member
    Join Date
    Mar 2009
    Location
    Netherlands
    Posts
    85

    Default Re: Error adding Dashlets

    Have you tried to print the array $dashlets to see if it has what it should have with function print_r ??
    Elisabeth Escribano
    Webdeveloper

    MADCAP verademing in ict

    e.escribano@madcap.nl

    Schapedrift 89
    3371 JJ Hardinxveld-Giessendam
    Netherlands
    Tel 088 99 088 99
    Fax 088 99 088 98

    www.madcap.nl

  5. #5
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: Error adding Dashlets

    The dashlets work, if I log with a brand new user I wil lsee the default dashlets populated, but if I delete them and try to add them again, or try to add a diferent one the error happens.

  6. #6
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: Error adding Dashlets

    Solved, it was an error on the language files on sugarcrm\custom\include\language, the english and portuguese had a diferent number of dropdown options.

  7. #7
    leenuxwu is offline Senior Member
    Join Date
    Jun 2009
    Location
    Guangzhou,China
    Posts
    188

    Default Re: Error adding Dashlets

    Quote Originally Posted by leowolff View Post
    Solved, it was an error on the language files on sugarcrm\custom\include\language, the english and portuguese had a diferent number of dropdown options.
    I also got the same issue you ever encountered. How did you fix that? Would you please give more detail steps ? I appreciate it very much. I have struggled a long time to find the cause. Thanks

  8. #8
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: Error adding Dashlets

    Just make sure the english file on custom\include\language is very similar to your language file. What generate the error is if you use a dropdown that is translated in your dashlets and it has a diferent number of options on both files.

    Like this:

    On English:
    $GLOBALS['app_list_strings']['case_type_dom']=array (
    'Product' => 'Production',
    'User' => 'User',
    );

    On Portuguese:
    $GLOBALS['app_list_strings']['case_type_dom']=array (
    'Product' => 'Production',
    'User' => 'User',
    'Supplier' => 'Supplier',
    );

    In this case the dashlets will not work.
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  9. #9
    leenuxwu is offline Senior Member
    Join Date
    Jun 2009
    Location
    Guangzhou,China
    Posts
    188

    Default Re: Error adding Dashlets

    I just compared very carefully between the English file and my language file. But didn't find any difference. frustrated, but really thanks for your reply. How did you find this cause? Debugging the application or judged by other statement??

  10. #10
    leowolff is offline Sugar Community Member
    Join Date
    Apr 2009
    Posts
    126

    Default Re: Error adding Dashlets

    If you want to see if this is your problem just rename the folder custom\include\language to something else like custom\include\languageOLD, after that try to add a dashlet, if it works the problem is related to the language files, if not is something else. Make sure the developer mode is selected before trying it.
    Regards,

    SugarCRM CE v.5.2.0c
    Windows platform
    MySQL v.5.0.37
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding Projects to my Sugar Dashlets
    By ilpalomba in forum Developer Help
    Replies: 0
    Last Post: 2009-05-18, 02:07 AM
  2. Adding Dashlets not working 5.0d
    By jlabuelo in forum Installation and Upgrade Help
    Replies: 5
    Last Post: 2008-06-17, 07:39 PM
  3. Adding Dashlets stop on loading...
    By dop3 in forum Help
    Replies: 5
    Last Post: 2008-02-21, 10:40 PM
  4. Sugar bug - adding same dashlets
    By stasdu in forum Help
    Replies: 2
    Last Post: 2006-12-14, 09:07 AM
  5. Adding cusomt fields to dashlets
    By stevec in forum Developer Help
    Replies: 3
    Last Post: 2006-12-08, 03:41 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
  •