Okay so Iām running into an odd issue. I have an install of 7.14.2 on a new server host (a2 hosting)ā¦ Trying to throw together a quick logic hook and ā¦ itās not workingā¦
I added the logic_hooks to the array through extensionā¦ rebuilt - itās showing up as expected in the ext/logichooks folderā¦
If I JUST write to a log, the logic hook works fine. If I try to do ANYTHING related to the bean even $bean->name into a logā¦ it hangs after clicking save on the module and appears to be trying to redirect back to index.php. Code below if it helpsā¦ but if I uncomment the part to set the variable for the name - it crashes. Just the log, works fine ā¦ I have done a rebuild, checked permissions, etc.
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class TestLHClass
{
function TestLHFunction($bean, $event, $arguments)
{
$GLOBALS['log']->debug('KorApp Inside Test LH');
//$name = $bean->name;
//$GLOBALS['log']->debug('KorApp Inside Test LH' + $name);
}
}