Forums

GH Email stopped working

skittle 04 Nov, 2016
Hello!

I have been using the GH_Email plugin with a form that I built using Chronoforms v4. I have been using the form and it has been sending emails reliably until recently.

Last week, I upgraded two sites to Joomla v3.6 (They are identical sites - one is a 'live' system, and the other is a copy set up for testing purposes.) Although, it may be a coincidence and there is some other cause, it seems that the upgrade caused some problems for the GH_Email plugin. When I put a debugger in my form, and then use the form to edit and save a record, I can see the output from the debugger only if the GH_Email plugin does not run. If the GH_Email plugin tries to run, everything stops and there is nothing output to the debugger. For example, if I add a condition to the GH_Email plugin that is always false, the debugger will output the expected information. However, if I add a condition to the plugin that is true (or if I have no condition entered), all processing stops when the plugin tries to run. The debugger outputs nothing and all processing seems to stop. In an attempt to work around the condition option in the GH_Email plugin I have also used an Event Switcher to try to process the condition and either process the Email or not. (This technique does work in an operational system but but does not help with this situation.)

Emails sent from Joomla (without using Chronoforms) continue to work. I have changed Joomla from PHPMail to SMTP mail and back again with no effect. The GH_Email plugin just seems to freeze whenever it tries to run. I hesitate to say for sure that the upgrade caused the problem because I have another site running the latest version of Joomla and the GH_Email plugin continues to work.

Just for fun, I have included the debugger output when the GH_EMail condition fails below, (there is nothing to show when it runs):

Data Array: 
Array
(
    [tmpl] => component
    [acid] => 7
    [cf_id] => 38
    [chronoform] => AirframeCurrentStatus
    [event] => submit
    [CURRSTAT_ID] => Array
        (
            [cf_modified] => 2016-11-04 08:24:05
            [cf_modified_by] => 546
            [input_tail_number] => 7
            [input_contractor_stat] => 9
            [input_CS_location] => Home Station
            [input_returndate] => 2016-10-27
            [input_comments] => A Check Scheduled 10/31-11/04
            [input_30outlook] => Monthly Due List
A Check
            [input_60outlook] => Induction Date: Jan 2017 - Installation of the new BBML Antenna VR-12C.
Induction Date: Aug 2018 - CLINS: X169, X170, X173, X176, X177, X181, X183, X199
            [cf_id] => 38
        )

    [COMMENT_ID] => Array
        (
            [input_aog_status] => 0
            [input_next_flight] => 2016-11-06
            [input_estrts_date] => 2016-11-04
            [input_aog_comment] => Test 31
            [cf_id] => 
            [input_ac_id] => 7
        )

    [input_attachment] => 
    [input_submit_10] => Submit
    [submit_aog] => CLOSE AOG
    [AOGLAST_ID] => Array
        (
            [input_aog_status] => 0
        )

    [aogstat] => 
    [input_email_recips] => jfauntleroy@gmail.com,john@whitehalldigitalsystems.com
    [tailnumber] => 1944
    [currusernm] => Super User
    [curruserph] => 
    [currusereml] => 
    [input_status_code] => AOG
    [cfid] => 
    [mnthbk] => 
    [40a75c9a4c2997dd7b03e25e01b8b3bc] => 1
    [currstat_id_cf_id] => 38
)
Validation Errors: 
Array
(
)
Debug Data
Email info
Conditional Email cancelled: CURRSTAT_ID.input_contractor_stat was not 9


Careful review of the debugger output shows that in fact CURRSTAT_ID.input_contractor_stat was 9 but the condition still failed. Anyway, if the email condition is empty (true) or tests true, processing seems to stop and I am presented with a blank screen.

Any help you can provide would be greatly appreciated as this is running on a live, customer system which (used to) makes regular use of email notifications. Thanks in advance for your help.

Kind regards,

John
GreyHead 04 Nov, 2016
Answer
Hi John,

I've sent you a PM with a link to the current version of the action. Hopefully that will fix the problem for you.

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

VPS & Email Hosting 20% discount
hostinger