Forums

Show debugger in Email

BNDragon 21 Nov, 2014
Hi there,

I have a "Event Switcher" action on Submit event.

My last case is when an error may happen on the selection of the profile.

And I will send an email to the administrator to communicate that something happened, but I liked to send information from the debugger, but without providing this information to the user.

Is it possible?

Thanks in advance,
BN
Max_admin 24 Nov, 2014
Answer
Hi BN,

Just use the debugger PHP code in your email template, you can get the code from the action file!

Regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
BNDragon 25 Nov, 2014
Hi Max,

Thanks, work like a charm😀

BN
GreyHead 26 Nov, 2014
Hi BN,

You can send an email to the Admin; I'm not sure if you can get the debugger output though without having the debugger on.

You could add some custom debug code.

Bob
BNDragon 26 Nov, 2014
I Bob,

I did what Max told me, in my email template I just put this code

<?php
echo '<div class="panel panel-warning"><div class="panel-heading">Data Array</div><div class="panel-body">';
		pr($form->data);
		pr($form->files);
		echo '</div></div>';
		echo '<div class="panel panel-danger"><div class="panel-heading">Errors</div><div class="panel-body">';
		pr($form->errors);
		echo '</div></div>';
		echo '<div class="panel panel-primary"><div class="panel-heading">Debug Info</div><div class="panel-body">';
		pr($form->debug);
		echo '</div></div>';
?>

and it work perfectly.

Thanks,
BN
GreyHead 26 Nov, 2014
Hi BN,

Ah, OK, that is useful to know. I wasn't sure if the Debug info was created when the debugger is disabled - apparently it is.

Bob
This topic is locked and no more replies can be posted.