That used to work in 6.x at least.
I created a simple sheet
foo | 1 |
bar | 2 |
yeah | 3 |
toto | 4 |
And wanted to create a simple scatter plot. I did select the required options, in this url
and got this error message:
( ! ) Fatal error: Maximum execution time of 90 seconds exceeded in /var/www/12.x/lib/graph-engine/abstract.gridbased.php on line 444 Call Stack # Time Memory Function Location 1 0.0015 307504 {main}( ) ../tiki-graph_sheet.php:0 2 0.1446 13397672 Graphic->draw( ) ../tiki-graph_sheet.php:160 3 0.1447 13407536 GridBasedGraphic->_drawContent( ) ../core.php:305 4 0.1449 13420336 GridBasedGraphic->_drawScales( ) ../abstract.gridbased.php:51 5 0.1450 13422144 LinearGridScale->getSize( ) ../abstract.gridbased.php:91 6 0.1450 13423168 LinearGridScale->_calculateSkip( ) ../abstract.gridbased.php:435
I've reproduced it in show.t.o
u: admin
p: 12345
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/xavi-9794-4890/lib/graph-engine/abstract.gridbased.php on line 444
I can't seem to fix this but the problem is that you are trying to draw a graph line from string data, i think.
If you add another column of numbers, and use the 2 numeric columns to draw the graphs with it works ok.
Can't seem to find a better fix in the code - the problem line tries to execute:
while( $size > $space * ++$skip )
without checking if the values are numeric or checking if it ever returns - bad (but very old) code
UPDATE: You are right Jonny. My confusion. Changing chart type to bar chart, or adding a new numeric column for the scatter plot fixed my issue.
Thanks!
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |