-
- 125 Posts
I've been trying several things with formit and there doesn't seem to be any errors or any sort of error log which gives a hint what is wrong - it just doesn't work.
Am I missing something? Is there a way to debug with FormIt?
-
- 5,888 Posts
if you're talking about formit-hooks, I like to output debuggings into a chunk with something like this code:
$values = $hook->getValues();
$debug['values'] = $values;
if ($chunk = $modx->getObject('modChunk',array('name'=>'debug'))){
$chunk->setContent($chunk->getContent().print_r($debug,1));
$chunk->save();
}
don't forget to create a chunk with name 'debug' first.
-
- 24,544 Posts
AFAIK, Bruno17's method is the only way to debug what happens in hooks and prehooks.
Do you have a password manager that could be filling in the hidden spam field? If the spam hook crashes, the recapta hook won't execute.
------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using.
MODX info for everyone:
http://bobsguides.com/modx.html