Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cache issue on bp directory pages with multisite installtion

  • @mhawksey

    Participant

    Hi,

    We’ve got a multisite WP/BP installation (WP 4.2.3/BP 2.3.2.1) using the BP Multi Network plugin. Networks are in sub directories. We are in the process of setting up the site and encountered an issue defining the site pages for members, group, activity etc. Setting up one network was fine but when we created a second BP network member, group, activity pages included an error where the menu renders saying:

    Warning: in_array() expects parameter 2 to be array, null given in /home/altc/public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 192

    Updating the directory page options for the network with the error messages would remove the errors from that site, but they instead appeared on the other network.

    Digging around the code we believe the problem is linked to the directory pages (bp_core_get_directory_pages()) being called from the cache line 545 in bp-core-functions.php .

    I found a related ticket #5733 marked fixed but my interpretation is this only fixed xprofile.

    We’ve patched our own install with add_filter('bp_core_get_directory_pages', 'bp_core_get_directory_pages_cache_mod'); which suffixes the cache group with the root blog id. My concern is that this is not the only cache call.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache issue on bp directory pages with multisite installtion’ is closed to new replies.
Skip to toolbar