unnamed Report post Posted December 23, 2009 (edited) I have a page with 5 graphs. All of them should exported as PNG. Everything is OK, images are stored, but when captures process finished and some time passes (about 2 seconds) I get an JS error like on screen-shots below. I guess it's related with callback function. I need to use that callback function now, but haven't added any params for it. So, my XML file looks like this: chart yAxisName="Weight, kg" caption="Weight change" subcaption="Week 42 progress" numberPrefix="" useRoundEdges="1" bgColor="FFFFFF,FFFFFF" showBorder="0" exportEnabled="1" exportAtClient="0" exportAction="save" exportHandler="/graph/fusion/exportHandlers/PHP/FCExporter.php" set label="Start" color="4f81bd" value="90" set label="Current" color="c00000" value="85" chart Defining function FC_Exported like this: FC_Exported = function(a, b, c, d, e) { alert('gotcha'); } doesn't help. Advise, please. Edited December 23, 2009 by Guest Share this post Link to post Share on other sites
unnamed Report post Posted December 23, 2009 deleted angle brackets in XML file so it's could be displayed Share this post Link to post Share on other sites
shamasis Report post Posted December 23, 2009 Greetings, Oh... this is a notorious error! Kindly check whether your FCExporter.php contains any new-line character either before or after the <?php ... ?> code-block! Share this post Link to post Share on other sites
unnamed Report post Posted December 27, 2009 Thank you very much. I've fixed this in whole included library called Smarty, which had the closing bracket and then new-line in every of 50 files but it didn't helped. But you gave me the idea why it can happen, so I've quickly found problem. It was chmod command which produced some type of notice. So thanks again. Share this post Link to post Share on other sites
Guest Madhumita Report post Posted December 27, 2009 Hey, Glad that you solved the issue. Happy FusionCharting. Share this post Link to post Share on other sites