Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » tutorial4 Viewing the Tree structure (I am getting an error while following the tutorial: )
tutorial4 Viewing the Tree structure [message #4806] Tue, 07 July 2015 20:22 Go to next message
rafs is currently offline  rafs
Messages: 69
Registered: May 2015
Member
Link: http://myserver.mydomain/radicore/test/x_tree_node%28tree2%2 9.php?session_name=menu0&expand=25#25

The page loads fine, but when I expand the '+', I get some kind of infinite recursion, I guess....

( ! ) Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\xampp\radicore\includes\include.library.inc on line 1401
Call Stack
#	Time	Memory	Function	Location
1	0.0000	134728	{main}( )	..\x_tree_node(tree2).php:0
2	0.0010	176296	require( 'C:\xampp\radicore\includes\std.tree_view2.inc' )	..\x_tree_node(tree2).php:27
3	0.0800	3828704	Default_Table->getNodeData( )	..\std.tree_view2.inc:234
4	0.0810	3829120	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
5	0.0910	3927192	Default_Table->getNodeData( )	..\x_tree_node.class.inc:114
6	0.0920	3927416	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
7	0.0980	3929064	Default_Table->getNodeData( )	..\x_tree_node.class.inc:114
8	0.0990	3929288	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
9	0.1060	3930960	Default_Table->getNodeData( )	..\x_tree_node.class.inc:114
10	0.1060	3931184	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
11	0.1130	3932856	Default_Table->getNodeData( )	..\x_tree_node.class.inc:114
12	0.1130	3933080	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
13	0.1200	3934752	Default_Table->getNodeData( )	..\x_tree_node.class.inc:114
14	0.1200	3934976	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
15	0.1270	3936648	Default_Table->getNodeData( )	..\x_tree_node.class.inc:114
16	0.1270	3936872	x_tree_node->_cm_getNodeData( )	..\std.table.class.inc:2961
...
Re: tutorial4 Viewing the Tree structure [message #4807 is a reply to message #4806] Tue, 07 July 2015 21:26 Go to previous messageGo to next message
rafs is currently offline  rafs
Messages: 69
Registered: May 2015
Member
attached is code added to x_tree_node
Re: tutorial4 Viewing the Tree structure [message #4810 is a reply to message #4807] Wed, 08 July 2015 05:50 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2246
Registered: April 2006
Location: Surrey, UK
Senior Member
That code looks correct, and it works OK on both my local PC and the radicore web site. If you are running the code in the "Example" subsystem you may want to try unzipping it again as it may be corrupted. If this is your own code you have tried building from the tutorial then I suggest you compare it with what is in the "Example" subsystem.

I cannot immediately see what is wrong, but it looks like it is looping when it is looking for child nodes. You will have to step through with your debugger to see what SQL query is being generated and then what happens when that query is executed.

What version of the framework are you running?


Re: tutorial4 Viewing the Tree structure [message #4811 is a reply to message #4810] Wed, 08 July 2015 14:42 Go to previous messageGo to next message
rafs is currently offline  rafs
Messages: 69
Registered: May 2015
Member
I am running the version 1.89 from May 5th, 2015.
I was following along the tutorial. There is a good chance that I missed a step along the line.

[Updated on: Wed, 08 July 2015 14:45]

Report message to a moderator

Re: tutorial4 Viewing the Tree structure [message #4815 is a reply to message #4811] Thu, 09 July 2015 05:37 Go to previous message
AJM is currently offline  AJM
Messages: 2246
Registered: April 2006
Location: Surrey, UK
Senior Member
You should compare the code you have written with that which is contained within the "XAMPLE" subsystem as the tutorial is suppsed to duplicate this code. If you see any mistakes in the tutorial can you please let me now so that I can correct it.

Previous Topic: Batch Script connecting two databases in an Extract Tranform Load (ETL) Design Pattern
Next Topic: How to bulk import my users into Radicore?
Goto Forum:
  


Current Time: Sun Jun 13 10:21:47 EDT 2021

Total time taken to generate the page: 0.01825 seconds