|
User Details |
message
|
|
post date:
2009-09-15 09:24:33
|
I received this error when trying to create a simple single trend-line chart.
I am using two recordSets that require a URL param string which I don't know how to pass in during testing. I did add the param as a get in HTTP Request Settings in DreamWeaver hopefully doing the right thing..
Deprecated: Function split() is deprecated in C:pro...DWFChart.inc.php on line 386
I am not sure what's going on.
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2009-09-16 10:33:35
|
Hello,
You can use a different function instead of “split()”. Go to the line that gives you the error and use “explode()” instead of the deprecated function.
About your other problem, do you click on the chart before clicking ok? Also, please make sure that you click on the right option. For example, if you edit a dynamic chart, click on the “edit dynamic chart” and not the static button. If you could send us a copy of a page where you have a chart and can’t edit, it would be very helpful.
Regards,
--
Andrei Rinciog
Extend Studio - Support Engineer
|
|
|
post date:
2009-09-16 10:43:32
|
I am not utilizing the split() function in my code. I believe that it is autogened by your extension. (I will try and replace it)
I click on the placeholder for the chart and try to DELETE and the extension tells me that there is no chart on that page. Here is the code generated by the extension.
<?php require_once('Connections/MLB_2009.php'); ?><?php include('includes/FusionCharts/dynamic/DWFChart.inc.php'); ?>
<?php
// fusion chart # FusionChart1 data include
include('includes/FusionCharts/dynamic/data/fc_FusionChart1_data.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_RSplayerValues = "-1";
if (isset($_GET['player_id'])) {
$colname_RSplayerValues = $_GET['player_id'];
}
mysql_select_db($database_MLB_2009, $MLB_2009);
$query_RSplayerValues = sprintf("SELECT ytd_value FROM player_ytd WHERE player_id = %s", GetSQLValueString($colname_RSplayerValues, "text"));
$RSplayerValues = mysql_query($query_RSplayerValues, $MLB_2009) or die(mysql_error());
$row_RSplayerValues = mysql_fetch_assoc($RSplayerValues);
$totalRows_RSplayerValues = mysql_num_rows($RSplayerValues);
$colname_RSplayerGames = "-1";
if (isset($_GET['player_id'])) {
$colname_RSplayerGames = $_GET['player_id'];
}
mysql_select_db($database_MLB_2009, $MLB_2009);
$query_RSplayerGames = sprintf("SELECT tot_games FROM player_ytd WHERE player_id = %s", GetSQLValueString($colname_RSplayerGames, "text"));
$RSplayerGames = mysql_query($query_RSplayerGames, $MLB_2009) or die(mysql_error());
$row_RSplayerGames = mysql_fetch_assoc($RSplayerGames);
$totalRows_RSplayerGames = mysql_num_rows($RSplayerGames);
// fusion chart #FusionChart1 dynamic filter data
$dFCFusionChart1 = new DWFChart("FusionChart1", "MSColumn3D", "includes/FusionCharts/charts/", 400, 400, "", "", "", "", "", "");
$dFCFusionChart1->setConfigXML($FusionChart1_dataXML);
$dFCFusionChart1->setCategory($RSplayerGames, "tot_games", "", "");
$dFCFusionChart1->addSeries($RSplayerValues, "ytd_value", "", "color='a1dc3' seriesName='ytd_value' renderAs='Column' parentYAxis='P'", "default", "");
$dFCFusionChart1->addSeries($RSplayerValues, "ytd_value", "", "color='ab438b' seriesName='ytd_value' renderAs='Column' parentYAxis='P'", "default", "");
$dFCFusionChart1->setOrdering('None', 'asc');
$dFCFusionChart1->prepareData();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Player Dashboard</title>
<script type="text/javascript" src="includes/FusionCharts/dynamic/js/FusionCharts.js"></script>
</head>
<body><?php
// (FCChart Begin) #FusionChart1
renderFusionChart($dFCFusionChart1, 400, 400);
// #FusionChart1 (FCChart End)
?>
</body>
</html>
<?php
mysql_free_result($RSplayerValues);
mysql_free_result($RSplayerGames);
?>
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2009-09-16 12:08:19
|
Hello again,
The extension has two delete buttons, one for static charts and one for dynamic. I think that you are pressing on the static chart delete button because when I do that it gives me the same error as yours.
I have tested using the code you've send and it seems to work if I click on the right edit and delete buttons.
Yes, I was referring to the code generated by our extension. That's where you have to make the change. We will update our code in the near future but you can do the change yourself until we do it.
Regards,
Andrei
|
|
|
post date:
2009-09-16 12:45:45
|
Andrei,
Thank you for your response. I appreciate it. I did manage to delete the chart. (I can't believe I overlooked something so Obvious).
Please let us know when the update for the extension will be available.
Thank You,
Charlie
|
|
|
Cristian Dorobantescu [Extend Studio]
post date:
2009-11-25 11:38:19
|
This has been fixed in the latest release 1.1.0 which is available in the customer accounts or as a free trial from site.
Thanks,
Cristian
|
|
|
post date:
2010-10-10 10:38:10
|
|
I bought a license for developer dreamweaver, I wonder how do I change the colors of the slices of pizza in the graphs generated. Thank you.
|
|
|
Andrei Rinciog [Extend Studio]
post date:
2010-10-11 07:26:29
|
Hello,
There is a workaround that you can use but you have to modify the generated code a little bit.
Send an email to support at extendstudio.com and I will send you instructions and sample code by email.
Regards,
Andrei Rinciog
|
|
|
post date:
2010-10-11 15:02:06
|
Thank you Andrei
I have sent email.
Regards,
Marco Aurelio.
|
|