Viewing 7 replies - 1 through 7 (of 7 total)
  • I am having a similar problem – It is calling this error when i attempt to add a #bpdmcustom# Custom Direct link. Login/Logout work fine.

    Fatal error: Call to undefined function messages_get_unread_count() in wp-content/plugins/bp-direct-menus/inc/frontend-noajax.inc.php on line 71

    You have to define where the custom direct link goes. It only breaks the site for logged in users. Look at your page in a private browser window. It should work fine.

    Once the custom link is defined, the problem should go away.

    I was incorrect about this. The problem is that the plugin does not work if bp modules that the plugin calls for are not activated.

    The plugin wants to fetch message counts and group counts, etc. If those bp modules are not activated, you get a fatal error.

    Bummer. I’m trying to find a way to work around this, but I am very novice at php.

    Okay, more updates that will hopefully help those brave enough to dig into the plugin’s php file…

    You can get this problem to go away by removing or commenting out lines of php that directly reference notification counts for modules that you do not have activated.

    For instance, if you’re not using the groups module, you would comment out these lines (found in different parts of the php file:

    $groupcount = groups_get_total_group_count();

    $item->title = str_ireplace(“%groupcount%”, $friendcount, $item->title);

    $item->title = str_ireplace(“%(groupcount)%”, ($groupcount > 0) ? ‘(‘.$groupcount.’)’ : ”, $item->title);

    You’d do the same for references to any other modules you’re not using.

    This is a fantastic plugin, but I hope the author fixes this in the next iteration so that disabling a module doesn’t take out your whole site!

    I’m having this problem too – turned off “Friends” feature in BP and now the plugin crashes. It’s a bit scary that it’s getting counts of things regardless of whether they are needed or not = extra server load.

    In case you guys have the same issue I had, it appears that #bpdmcustom# comes automatically misspelled. I had to correct it to #bpdlcustom# and now it works.

    Hope that helps!

    Scratch that. I didn’t try the links before I posted that. If you change it to #bpdlcustom#, it simply loads the current page and puts “#bpdlcustom#…” at the end of the url in the address bar.

    I’m still unsure of how to fix this issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Only header lodad, menu and rest of page blank’ is closed to new replies.