• kwisatz

    (@kwisatz)


    When setting post_type to an array of values, for instance inside the pre_get_posts() filter, as described here https://codex.www.ads-software.com/Plugin_API/Action_Reference/pre_get_posts#Include_Custom_Post_Types_in_Search_Results

    Some of the function inside the breadcrumbs plugin will attempt to work with an Array object instead of a string:

    Notice: Array to string conversion in /app/src/wp-includes/formatting.php on line 961
    
    Notice: Undefined index: bpost_Array_archive_display in /app/src/wp-content/plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 731
    
    Notice: Array to string conversion in /app/src/wp-includes/formatting.php on line 961
    
    Notice: Trying to get property of non-object in /app/src/wp-content/plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 639
    
    Notice: Array to string conversion in /app/src/wp-includes/formatting.php on line 961
    
    Notice: Undefined index: apost_Array_root in /app/src/wp-content/plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 778

    https://www.ads-software.com/plugins/breadcrumb-navxt/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue when setting $query post_type to array value’ is closed to new replies.