Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Vig

    (@vigneshmukund)

    I managed to solve it. Your additional logs helped. The field it was fetching wasn’t the one I wanted. I renamed a bunch of fields on the back-end and did not update the php files with the new names, and went on to update plugins. So, it kept looking for a field that doesn’t exist…

    I feel stupid, but hey 🤷🏾

    Thread Starter Vig

    (@vigneshmukund)

    Thank for the quick response. Here’s my debug.log

    [06-Nov-2024 18:53:00 UTC] event id: 1022925
    [06-Nov-2024 18:53:00 UTC] event fields: Array
    (
    [0] => region_event_information_layout
    )

    [06-Nov-2024 18:53:00 UTC] layout: region_event_information_layout
    [06-Nov-2024 18:53:00 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/themes/bricks-child/acf-templates/events-template/events-section-preview.php:48
    Stack trace:
    #0 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/acf-extended/includes/acfe-template-functions.php(193): include()
    #1 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/acf-extended/includes/fields/field-flexible-content-preview.php(485): acfe_flexible_render_layout_template()
    #2 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/acf-extended/includes/fields/field-flexible-content-preview.php(353): acfe_field_flexible_content_preview->layout_preview()
    #3 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(324): acfe_field_flexible_content_preview->prepare_layout()
    #4 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #5 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/acf-extended/includes/fields/field-flexible-content.php(565): apply_filters()
    #6 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/acf-extended/includes/fields/field-flexible-content.php(395): acfe_field_flexible_content->render_layout()
    #7 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(324): acfe_field_flexible_content->render_field()
    #8 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #9 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()
    #10 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php(113): do_action_ref_array()
    #11 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(324): _acf_apply_hook_variations()
    #12 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #13 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #14 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php(807): do_action()
    #15 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php(763): acf_render_field()
    #16 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php(614): acf_render_field_wrap()
    #17 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-post.php(223): acf_render_fields()
    #18 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-admin/includes/template.php(1456): ACF_Form_Post->render_meta_box()
    #19 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-post.php(192): do_meta_boxes()
    #20 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(324): ACF_Form_Post->edit_form_after_title()
    #21 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #22 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #23 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-admin/edit-form-advanced.php(607): do_action()
    #24 /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-admin/post.php(206): require('...')
    #25 {main}
    thrown in /home/nownsbeo1/domains/staging.nsbe.org/public_html/wp-content/themes/bricks-child/acf-templates/events-template/events-section-preview.php on line 48

    This is line #48:                             $event_title = $layout[‘event_title’];

    • This reply was modified 1 year, 7 months ago by Vig.
Viewing 2 replies - 1 through 2 (of 2 total)