Open main menu

Changes

830 bytes added ,  22:33, 13 March 2017
no edit summary
This article is a detailed walkthrough of debugging CiviCRM on Drupal (using NetBeans and XDebug). We're specifically debugging the behavior of token replacement and UI representation == Examples ==Just looking for Fatal errors in the CiviMail component. We've found that if log can help you create figure out what'multi value' custom data that the tokens are not replaceds wrong.<source lang="bash">find /var/www/html/ -regex .*log$ -lsgrep Fatal -A3 /var/www/html/wp-content/uploads/civicrm/ConfigAndLog/CiviCRM. We're trying to fix that but we're not sure by just reading the code where the problem liesae1lp|tree|search|stat|r. Hopefully the debugger will provide enough inspection capability to see exactly whatlog | grep --color 's going on; and by extension, what\[message\]'s going wrong.-B2</source>
== Debugging CiviCRM on Drupal using NetBeans and XDebug ==
 
This article is a detailed walkthrough of debugging CiviCRM on Drupal (using NetBeans and XDebug). We're specifically debugging the behavior of token replacement and UI representation in the CiviMail component. We've found that if you create 'multi record' custom data that the tokens are not replaced. We're trying to fix that but we're not sure by just reading the code where the problem lies. Hopefully the debugger will provide enough inspection capability to see exactly what's going on; and by extension, what's going wrong. Still haven't found the fix, but it looks like the data (that's there) isn't being picked up in $mailer->compose ([https://github.com/civicrm/civicrm-core/commits/master/api/v3/Mailing.php source])
== Call Stacks ==
|}
 
 
There is a lot going on with tokens in CiviCRM. There is a whole file <code>CRM/Utils/Token.php</code> to deal with tokens. 45 methods. 2 properties.
 
It's not just 'getTokens()' that get's called, there is also a function to flattenTokens and getTokenDetails()
4,558

edits