New lower pricing for Subscriptions

50%off old price

Directory People – head of household keeps changing

About Support Directory Directory People – head of household keeps changing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9869
    Avatar for Richard HughesRichard Hughes
    Participant

    version 4.1.3

    We have 10+ households where the head of household value keeps changing back to one of the children instead of the father.

    We set head of household to father.

    Next day – system shows the child as head of household.

    What cron could be doing this?

    When this happens, this household does not show in the app directory. That is why this is so important.

    #9871
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Hi,
    I’ve no idea why this is happening, so I have added some major debugging to every where in the plugin where the head of household is set or rest in v4.1.4.

    If you could delete any debug log Church Admin>Settings> Debug Log
    Then make sure it is switched on

    Please send me the log when a household is messed up – let me know their name so i can find it in the log!

    #9872
    Avatar for Richard HughesRichard Hughes
    Participant

    It occurred to me that the head-of-house might be getting changed on each new install. Because there is not any cron running. So I went looking…

    Great job Andy. You fixed it. I think the bug was in the church_admin_head_of_household_tidy() function.

    v 4.1.3 was like this
    if(!empty( $check) & $wpdb->num_rows>1)

    v 4.1.4 you changed it to be like this.
    if(!empty( $check) && $wpdb->num_rows>1)

    #9876
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    Great that sorted it!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.