Hi,
For local developent I use MODX evo 1.0.4 on MAMP 1.9 for Mac.
MAMP gives you two flavours: php 5.2 and 5.3.
I get errors with this module using php 5.3.2.
This php eror occurs:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in .../modx-1.0.4/manager/processors/execute_module.processor.php(114) : eval()'d code on line 1
It seems like the php-code that’s inserted in the "module code (php)" textarea in the "general" tab is being escaped, but not unescaped when fetched from the database.
I managed to get it to work in 5.3 by changing file [MODX]/manager/processors/execute_module.processor.php, line 114, from:
$mod = eval($moduleCode);
to
$mod = eval(stripslashes(($moduleCode)));
,
but this doesn’t seem like a robust solution (i’m not a php expert)
Anyone any suggestions?