Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error

Problem with Anchor nodes - Printable Version
The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error



Official Murl Engine Forum
Problem with Anchor nodes - Printable Version

+- Official Murl Engine Forum (https://murlengine.com/forum)
+-- Forum: Murl Engine (https://murlengine.com/forum/forumdisplay.php?fid=5)
+--- Forum: General (https://murlengine.com/forum/forumdisplay.php?fid=8)
+--- Thread: Problem with Anchor nodes (/showthread.php?tid=175)



Problem with Anchor nodes - Stefan - 09 Apr 2014

Hi!

There seems to be an issue with anchor nodes when being created within a custom node's InitSelf() method:

mAnchor = dynamic_cast<Graph::IAnchor*>(root->CreateNode("Anchor"));
AddChild(mAnchor->GetNodeInterface());


which generates the following output while failing initialization:

2014-04-09 15:43:11.239 Sky[20963:1d703] Load package 'menu'.
2014-04-09 15:43:11.244 Sky[20963:1d803] (null)
2014-04-09 15:43:11.244 Sky[20963:1d803] Murl::Graph::Node::Init(), line 893: ID=, InitSelf() failed
2014-04-09 15:43:11.244 Sky[20963:1d803] Murl::Graph::Node::InitChildren(), line 1275: ID=particles, Failed for child 3
2014-04-09 15:43:11.245 Sky[20963:1d803] Murl::Graph::Node::Init(), line 911: ID=particles, InitChildren() failed
2014-04-09 15:43:11.245 Sky[20963:1d803] Murl::Graph::Node::InitChildren(), line 1275: ID=, Failed for child 4
2014-04-09 15:43:11.245 Sky[20963:1d803] Murl::Graph::Node::Init(), line 911: ID=, InitChildren() failed



RE: Problem with Anchor nodes - dizzy - 09 Apr 2014

Oops, that's a bug.

Currently, the Graph::Anchor node expects an ID to be set, otherwise initialization fails. Unfortunately, the debug error output for this case is broken as well, that's why you get the "(null)" error message.

Will be fixed in the next release; we removed the ID check so that it's possible to create an unnamed anchor node (which is probably what you want when generating nodes from code).

In the meantime, you can work around that problem by setting a unique ID for the newly created anchor nodes:
mAnchor = dynamic_cast<Graph::IAnchor*>(root->CreateNode("Anchor", newAnchorId));
AddChild(mAnchor->GetNodeInterface());

Hope that helps!