I don’t see anything in the actual posts about the error in the topic name, but I’ll copy my response from another thread:
To anyone who might still have this error -
Undefined index: treasure
As noted before, it doesn’t seem to affect any functionality; it just throws the error every time you launch the TreasureChest module from within the modx manager.
I am
not a PHP programmer, but I looked at the module code for anything named "treasure" that might be causing the error. Among the first few lines of code was this:
$action = $_REQUEST['treasure'];
I looked at all the cases, and thought that maybe when you first execute the module, no cases match, so
treasure might be empty (not really empty so much as
non-existent), and that’s what’s returning the
Undefined index: treasure error.
I consulted my business partner, Brandon, for a quick fix (he
is a PHP programmer), and he said to just replace the line
$action = $_REQUEST['treasure'];
with
$action = (isset($_REQUEST['treasure'])) ? $_REQUEST['treasure'] : '';
which will not affect the way the module works at all... it will just make it not access $_REQUEST[’treasure’] if there isn’t anything there. That keeps the error from happening, and keeps your modx system events log from filling up with this error.
Kevin
TransEffect LLC