Results 1 to 5 of 5

Thread: Dashlet error when adding two identical dashlets

  1. #1
    Festus is offline Junior Member
    Join Date
    Apr 2007
    Posts
    1

    Default Dashlet error when adding two identical dashlets

    Hello!
    When i add two identical dashlets (eg. 2x leads) i get different errors on the homepage when reloading the page:

    Warning: Invalid argument supplied for foreach() in include/Dashlets/DashletGeneric.php on line 313
    Warning: Invalid argument supplied for foreach() in include/Dashlets/DashletGeneric.php on line 252
    (above is an example, sometimes there are more lines with errors)

    Additionally one of the identical dashlets on the homepage contains no data when the error occurs.

    I have the current version 6.0.3 and tried the admin/repair functions without any luck.

    Same problem with contact or task dashlets.
    There is no error in the logfile.

    Can somebody help?

    Regards

  2. #2
    VirtualSynergy is offline Sugar Community Member
    Join Date
    Jul 2009
    Posts
    24

    Default Re: Dashlet error when adding two identical dashlets

    I'm having the same problem..

    Following errors occure:

    Warning: Invalid argument supplied for foreach() in /include/Dashlets/DashletGeneric.php on line 313
    Warning: Division by zero in /include/ListView/ListViewSmarty.php on line 96
    Warning: Division by zero in /include/ListView/ListViewSmarty.php on line 96
    Warning: Division by zero in /include/ListView/ListViewSmarty.php on line 96
    Warning: Division by zero in /include/ListView/ListViewSmarty.php on line 96
    Warning: Division by zero in /include/ListView/ListViewSmarty.php on line 96

    Sugar version: 6.1.1

    If I delete the double dashlets error goes away..

    Tnx in advance

  3. #3
    yhercouet is offline Sugar Community Member
    Join Date
    Nov 2009
    Location
    Shanghai China
    Posts
    33

    Default Re: Dashlet error when adding two identical dashlets

    Hello,


    I have exactly the same problem.

    Please keep us informed in case you found a solution.

    Thanks !

  4. #4
    wichard is offline Sugar Community Member
    Join Date
    Dec 2004
    Location
    Almelo, Netherlands
    Posts
    75

    Default Re: Dashlet error when adding two identical dashlets

    You need to make the following change (this is a bug, and fixed in newer version)

    in file: include/Dashlets/DashletGeneric.php

    search for:
    function loadCustomMetadata()

    and change :
    require_once

    to:
    require_once
    Wichard Noppert
    Prudento
    Twitter

  5. #5
    yhercouet is offline Sugar Community Member
    Join Date
    Nov 2009
    Location
    Shanghai China
    Posts
    33

    Default Re: Dashlet error when adding two identical dashlets

    Hello Wichard,


    Can you please review your fix code, because you actually put back the same line

    Thank you!


    Yoann

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2010-08-11, 07:23 PM
  2. Replies: 1
    Last Post: 2009-11-20, 04:58 AM
  3. Error adding Dashlets
    By leowolff in forum Help
    Replies: 9
    Last Post: 2009-09-09, 12:29 PM
  4. Replies: 2
    Last Post: 2009-06-04, 06:14 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
  •