Flash Sale for Premium Subscriptions

50% off annual premium licence subscription.

Get 50%off now

critical error when trying to edit household address from the front end

About Support Support critical error when trying to edit household address from the front end

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9825
    Avatar for kgourlaykgourlay
    Participant

    I’m getting this error when trying to edit my address from the front end (within the Church Admin Register block). I don’t think it’s related, but if I edit the page containing this block, the block editor is showing me an error as well: “This block has encountered an error and cannot be previewed.”

    The PHP error appears to be a mismatch in the number of arguments being passed to a function. Not a null value, but just missing in the code. Must be a typo?

    2024-02-05 00:09:05.343237 [NOTICE] [260201] [172.70.178.187:45072-1>2601:lsapi] [STDERR] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function church_admin_frontend_address_form(), 2 passed in /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/plugins/church-admin/includes/front_end_register.php on line 575 and exactly 3 expected in /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/plugins/church-admin/includes/front_end_register.php:1205
    Stack trace:
    #0 /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/plugins/church-admin/includes/front_end_register.php(575): church_admin_frontend_address_form()
    #1 /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/plugins/church-admin/includes/front_end_register.php(118): church_admin_frontend_edit_address()
    #2 /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/plugins/church-admin/gutenberg/php-blocks.php(1370): church_admin_front_end_register()
    #3 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/class-wp-block.php(258): ca_block_register()
    #4 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/blocks.php(1484): WP_Block->render()
    #5 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/blocks.php(1522): render_block()
    #6 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/class-wp-hook.php(324): do_blocks()
    #7 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #8 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/post-template.php(256): apply_filters()
    #9 /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/themes/fluida/content/content-page.php(29): the_content()
    #10 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/template.php(792): require(‘…’)
    #11 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/template.php(725): load_template()
    #12 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/gener
    2024-02-05 00:09:05.343296 [NOTICE] [260201] [172.70.178.187:45072-1>2601:lsapi] [STDERR] al-template.php(206): locate_template()
    #13 /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/themes/fluida/page.php(20): get_template_part()
    #14 /home/admin/domains/stillmountainmeditation.org/public_html/wp-includes/template-loader.php(106): include(‘…’)
    #15 /home/admin/domains/stillmountainmeditation.org/public_html/wp-blog-header.php(19): require_once(‘…’)
    #16 /home/admin/domains/stillmountainmeditation.org/public_html/index.php(17): require(‘…’)
    #17 {main}
    thrown in /home/admin/domains/stillmountainmeditation.org/public_html/wp-content/plugins/church-admin/includes/front_end_register.php on line 1205

    #9898
    Avatar for kgourlaykgourlay
    Participant

    Debugging this because folks in my group want to be able to use the front end form, and I found another error in the people edit form in church-admin/includes/front_end_register.php.

    Around line 1130, there’s a duplicate checkbox for allowing sms messages, except that the label says “allow email” instead. There’s a checkbox earlier in the form for email permissions, so I think this checkbox should just be deleted.

    #9905
    Avatar for Andy MoyleAndy Moyle
    Keymaster

    I didn’t get the email from the site about your post. So just seen it. Will fix now!

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