ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Error in phpchartdir
Posted by Aldy on Apr-11-2012 18:08
Hi Peter, any idea what are the possible causes of the following error?

Fatal error: Error converting argument 1 to type PC8DrawArea in
/usr/share/php/phpchartdir.php on line 1862

Thanks.

  Re: Error in phpchartdir
Posted by Peter Kwan on Apr-12-2012 02:18
Hi Aldy,

The error means that ChartDirector expects the first argument of a method call to be a DrawArea object, but it is not a DrawArea object.

Are your code calling DataSet.setDataSymbol3. This method expects a DrawArea object as its first and only argument. Are your code passing in a DrawArea object?

The error may also occur if your code calls DataSet.setDataSymbol or DataSet.setDataSymbol2, but pass in a parameter that ChartDirector does not expect. For example, if DataSet.setDataSymbol2 is used, ChartDirector expects a text string as its argument. If the argument is not a text string, ChartDirector will forward it to setDataSymbol3 as a last resort, and you may get the error message you see.

Regards
Peter Kwan