• I want to display my recent posts on the home page of my website and can’t find a way to make it happen.

    I go to Settings > Reading > Front Page Displays: Recent Posts

    Then I go to my website: https://www.theafhl.com

    and I get the following message…

    Members Directory

    Fatal error: Call to undefined function bp_directory_members_search_form() in /misc/25/000/212/149/6/user/web/theafhl.com/wp-content/themes/FlexxProfessional/index.php on line 13

    Can some please help me fix this because it’s very frustrating.

    Thanks,
    Tony

Viewing 15 replies - 1 through 15 (of 19 total)
  • You have a problem in your current theme. Either re-upload a fresh copy of the theme using FTP or switch to another theme such as Twenty Ten.

    Thread Starter Tony

    (@acfurino)

    Is there any way to find out the specific problem?

    I made too many changes to this theme to reupload it and do it all again.

    Should I copy/paste any coding from the theme to show you?

    Thread Starter Tony

    (@acfurino)

    Here is the index.php file:

    [Code moderated as per the Forum Rules. Please do not re-insert it but use the pastebin]

    Thread Starter Tony

    (@acfurino)

    Here it is on pastebin: https://pastebin.com/R3Lej4qd

    Remove:

    <div id="members-dir-search" class="dir-search">
    				<?php bp_directory_members_search_form() ?>
    			</div><!-- #members-dir-search -->

    And when code has been moderated in your forum posts, please do not re-insert it.

    Thread Starter Tony

    (@acfurino)

    Ok I followed your directions and it didn’t seem to fix it… now when I go to my site https://www.theafhl.com it says the following:

    Members Directory
    <a href=”
    Fatal error: Call to undefined function bp_root_domain() in /misc/25/000/212/149/6/user/web/theafhl.com/wp-content/themes/FlexxProfessional/index.php on line 15

    Thread Starter Tony

    (@acfurino)

    Could it have anything to do with the fact that I used to have a index.html page?

    Thread Starter Tony

    (@acfurino)

    Well I’m in trouble but better late than never…

    @esmi: Are there any other files I can copy/paste for you to check out? Maybe the posts.php or something?

    The problem lines:

    <li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li>

    1. I think you need to check if you still haver BuddyPress installed.

    2. Don’t bump!

    Thread Starter Tony

    (@acfurino)

    Ok so I removed all of that from the file and it’s still not fixed… you can see it here: https://www.theafhl.com

    Any other ideas?

    Thanks for trying to help by the way.

    Do you actually have BuddyPress installed?

    Thread Starter Tony

    (@acfurino)

    No I don’t but if you want I can give you a temporary username and password to look around… I see your reputation on these boards I think I can trust you…

    I’m flattered but I don’t think that will be necessary. ??

    From what I can see of the code that you posted, it is littered with calls to what appear to be BuddyPress functions. If you took over this site with this theme installed, then someone deactivated/deleted the BuddyPress plugin before you got there. If not, then you’re trying to use a BuddyPress theme on a non-BP site.

    Thread Starter Tony

    (@acfurino)

    Hmmm so what should I do?

    Two options:

    1. Reinstall & configure BuddyPress and see it that helps.
    2. Switch to another, standard WordPress, theme

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Fatal error when trying to display posts on my home page?’ is closed to new replies.