Page 1 of 2 12 LastLast
Results 1 to 10 of 14
Like Tree1Likes

Thread: Add Dashlets - Basic Charts *Fail message

  1. #1
    tancott is offline Junior Member
    Join Date
    Jun 2011
    Posts
    1

    Default Add Dashlets - Basic Charts *Fail message

    Hi,

    Please could you help me to fix this issue, I have installed version 6.2.0 of sugar, and have set the permissions correctly according to what they are required to be but this issue keeps cropping up and Im not sure where to find the fix for it.

    When on the dashboard > Click "Add Dashlet" then select "Charts" when I try to add a new Basic Chart a prompt appears saying Fail - When I proceed to click "OK" another prompt box appears saying "Failed - Prevent this dialogue from creating additional pages".

    Although the chart does add to the dashboard it appears empty, although there is data.

    Please see the screen-shots attached.

    I am rather desperate to find a solution for this as I don't want to go back to an earlier version,

    Any help is greatly appreciated.
    Attached Images Attached Images    

  2. #2
    houlejo is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Qc, Canada
    Posts
    116

    Default Re: Add Dashlets - Basic Charts *Fail message

    Did you found any answers ?

  3. #3
    houlejo is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Qc, Canada
    Posts
    116

    Default Re: Add Dashlets - Basic Charts *Fail message

    Ok found it.

    Clear the cache folder.
    Add the dashlet.
    Set cache folder and subfolder to chmod 775
    Set cache files to chmod 664
    Refresh

  4. #4
    houlejo is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Qc, Canada
    Posts
    116

    Default Re: Add Dashlets - Basic Charts *Fail message

    Ok that's bad, I had to do it each time I add a dashlet.

    I had to do modification to the code to make it work because the cache file created when adding the dashlet is always chmod 660.

    You can 2 things :
    Modifications to /include/SugarCharts
    Files : SugarChart.php, JsChart.php

    Sugarchart.php
    ********************
    //MOD CHMOD 664 HOULEJO
    chmod($xmlFilename,0664);
    //MOD CHMOD 664 HOULEJO
    $GLOBALS['log']->debug("Success, wrote ($xmlContents) to file ($xmlFilename)");
    *********************

    JSChart.php
    *********************
    //MOD CHMOD 664 HOULEJO
    chmod($this->jsonFilename,0664);
    //MOD CHMOD 664 HOULEJO
    $GLOBALS['log']->debug("Success, wrote ($jsonContents) to file ($this->jsonFilename)");
    ******************************

    Or modify the config.php file to give the correct file permissions (755 and 664)
    'default_permissions' =>
    array (
    'dir_mode' => 1517, //Was 1528 by default
    'file_mode' => 436, //Was 432 by default
    'user' => '',
    'group' => '',

    The second one (config.php) worked better. But I don't know the risks of giving different permissions to all the system.

    good luck!

  5. #5
    mathias.de is offline Junior Member
    Join Date
    Oct 2011
    Posts
    2

    Default Re: Add Dashlets - Basic Charts *Fail message

    Hi,
    i'm installed sugar 6.2.4
    I have the Exact same problem but your solutions aren't working for me...

    What can i do to get charts?

    any idea?

    Thanks
    Mat

  6. #6
    houlejo is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Qc, Canada
    Posts
    116

    Default Re: Add Dashlets - Basic Charts *Fail message

    Hi, For me it was a permission thing. Look at the permissions by default.

  7. #7
    mathias.de is offline Junior Member
    Join Date
    Oct 2011
    Posts
    2

    Default Re: Add Dashlets - Basic Charts *Fail message

    ok the problem is a permission one.

    see the below:

    First you need to log onto your server and go to the folder where you have your crm files located.

    Here are the steps:

    1. Click on the file cache.

    2. Click on the file XML.

    3. You will now see a lot files and highlight all of them except chart_strings and index.html.

    4. Right click and select properties set permissions to 666.

    Go back to your dashboard and refresh all the charts should be coming up for you now.

    And you need to do that each time you want to had a new charts! i don't know how to generate permanently permission on 666 when added new charts... any idea?

  8. #8
    houlejo is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Qc, Canada
    Posts
    116

    Default Re: Add Dashlets - Basic Charts *Fail message

    For permanent permission, see my post in this thread :

    Or modify the config.php file to give the correct file permissions (755 and 664)
    'default_permissions' =>
    array (
    'dir_mode' => 1517, //Was 1528 by default
    'file_mode' => 436, //Was 432 by default
    'user' => '',
    'group' => '',
    tshepoth likes this.

  9. #9
    tshepoth is offline Sugar Community Member
    Join Date
    Jun 2010
    Posts
    44

    Default Re: Add Dashlets - Basic Charts *Fail message

    Thanks Houlejo, changing permisions in config.php file worked for me as well

  10. #10
    tshepoth is offline Sugar Community Member
    Join Date
    Jun 2010
    Posts
    44

    Default Re: Add Dashlets - Basic Charts *Fail message

    I learned the harder way... the danger is that config file gets corrupt and the sugar instance does not open anymore!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using reports instead of Charts in dashlets
    By nick.devilliers@maxasp.com in forum Developer Help
    Replies: 2
    Last Post: 2010-11-01, 09:27 PM
  2. Edit Dashlets (Charts)
    By Alamgir in forum Developer Help
    Replies: 0
    Last Post: 2010-04-23, 12:29 PM
  3. Charts and dashlets
    By michamamo2 in forum Developer Help
    Replies: 1
    Last Post: 2008-10-15, 12:57 PM
  4. Replies: 0
    Last Post: 2008-01-20, 06:23 AM
  5. Charts & Dashlets
    By Deland02 in forum Help
    Replies: 1
    Last Post: 2007-03-15, 05: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
  •