• I’m not sure if this is a problem for everyone, but I was getting an error from the filter widget. I don’t know if this is the best or most sustainable solution, but it was suggested by ChatGPT and it’s working:

    line 1092 in /wp-content/plugins/stax-buddy-builder/core/widgets/members-directory/Filters.php

    Replace:

    $has_list_toggle = ! in_array( $settings[‘content_display’], [ 9, 10, 13, 15 ], false );

    With:

    $content_display = isset($settings[‘content_display’]) ? $settings[‘content_display’] : 0;
    $has_list_toggle = ! in_array($content_display, [ 9, 10, 13, 15 ], false );


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

    (@hcst)

    The original error message:

    Warning: Undefined array key “content_display” in /wp-content/plugins/stax-buddy-builder/core/widgets/members-directory/Filters.php on line 1092

    Plugin Support john

    (@johnweru)

    Hi there,

    Thanks for reaching out to us.

    In regards to the issue here, I was in a position to replicate that warning from my end. The code that you shared does also seem to fix the issue.

    I will notify the development team about it so that it is fixed in an update.

    Thanks for bringing this to our attention.

    Kind Regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Members Directory Filter Widget Error Fix’ is closed to new replies.