Skip to:
Content
Pages
Categories
Search
Top
Bottom

Warning Error Message

  • @paragate

    Participant

    Hi there. I’m using a custom template however, also wanted to use buddypress so I followed the instructions in the post entitled “Making My WordPress Theme BuddyPress Compatible”. On the top of the homepage where the BuddyPress admin bar should be is the following error message:

    Warning: include() [function.include]: Failed opening ‘/home/pgnew/public_html/wp-content/themes/wp-clear-basic/bp/bp-functions.php’ for inclusion (include_path=’.:/usr/local/php52/pear’) in /home/pgnew/public_html/wp-content/themes/wp-clear-basic/functions.php on line 1

    Any suggestions you can give would be greatly appreciated. (The url of my site is http://www.pgnew.com).

Viewing 11 replies - 1 through 11 (of 11 total)
  • @paragate

    Participant

    I just noticed the links are at the bottom of the page….

    @aekeron

    Participant

    Is your buddypress functions file definitely present at /home/pgnew/public_html/wp-content/themes/wp-clear-basic/bp/bp-functions.php ?

    Looks like it isn’t finding it…

    @paragate

    Participant

    The following files are listed:

    activity

    blogs

    bp

    forums

    groups

    members

    registration

    Within the bp folder there is a file called bp-functions.php. Do I need to move it back a level?

    @davidtcarson

    Participant

    Double-check your theme’s functions file at /wp-content/themes/wp-clear-basic/functions.php to make sure you added

    include( TEMPLATEPATH . '/bp/bp-functions.php' ); right at the top after the opening php tag.

    If it’s there, try disabling other plugins one-by-one to see if they might be interfering. The Coming Soon plugin in particular.

    And if disabling plugins doesn’t work, try providing some more information because it will make it easier for others to help. https://buddypress.org/forums/topic/when-asking-for-support

    @apeatling

    Keymaster

    Also, if the above all looks ok, try:

    include( STYLESHEETPATH . '/bp/bp-functions.php' );

    @paragate

    Participant

    Include it in the functions.php after ( TEMPLATEPATH . ‘/bp/bp-functions.php’ ); ? (…and I’m assuming I am to include the parentheses with that correct?

    @paragate

    Participant

    When I deactivated the Coming Soon Plugin I received more errors:

    Warning: include() [function.include]: Failed opening ‘/home/pgnew/public_html/wp-content/themes/wp-clear-basic/bp/bp-functions.php’ for inclusion (include_path=’.:/usr/local/php52/pear’) in /home/pgnew/public_html/wp-content/themes/wp-clear-basic/functions.php on line 1

    Warning: Cannot modify header information – headers already sent by (output started at /home/pgnew/public_html/wp-content/themes/wp-clear-basic/functions.php:1) in /home/pgnew/public_html/wp-content/plugins/sidebar-login/sidebar-login.php on line 314

    Warning: Cannot modify header information – headers already sent by (output started at /home/pgnew/public_html/wp-content/themes/wp-clear-basic/functions.php:1) in /home/pgnew/public_html/wp-content/plugins/forum-server/wpf.class.php on line 1465

    The ( TEMPLATEPATH . ‘/bp/bp-functions.php’ ); is in the functions.php file.

    1. Which version of WP/MU are you running? (WP 2.9.1)

    2. Did you install WP/MU as a directory or subdomain install? (N/A)

    3. If a directory install, is it in root or in a subdirectory? (N/A)

    4. Did you upgraded from a previous version of WP/MU? If so, from which version? (N/A)

    5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. (Yes)

    6. Which version of BP are you running? (1.2)

    7. Did you upgraded from a previous version of BP? If so, from which version? (No)

    8. Do you have any plugins other than BuddyPress installed and activated? (Yes)

    9. Are you using the standard BuddyPress themes or customized themes? (Customized)

    10. Have you modified the core files in any way? (Just the functions.php file with ( TEMPLATEPATH . ‘/bp/bp-functions.php’ ); as directed)

    11. Do you have any custom functions in bp-custom.php? (No)

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? (Forum integration was done but have not yet added bbPress)

    13. Please provide a list of any errors in your server’s log files. (Please see above)

    14. Which company provides your hosting? (SiteGround.com)

    @davidtcarson

    Participant

    Did you test BuddyPress before with just the default theme and no plugins? Did you have it working with the default (bp-default) theme before you switched to your theme?

    Either way, the first thing I would do now is disable all plugins except BuddyPress.

    Next, I would switch the theme to back to the default (bp-default) within Appearance > Themes in your dashboard.

    Once you disable all plugins (except BuddyPress) and switch to the bp-default theme, you should confirm that the theme is working similarly to testbp.org.

    Assuming that everything is working and you are not seeing any error messages, switch the theme back to your custom theme before you re-activate any of the other plugins. Check to see if you are still seeing an error message.

    If you are, double-check steps 1,2,3 at https://codex.buddypress.org/how-to-guides/wordpress-to-buddypress-theme/. (1) Make sure you’ve put the theme extension pack in your custom theme. (2) Make sure you’ve added the following line to the top of the functions.php file for your custom theme:

    include( TEMPLATEPATH . '/bp/bp-functions.php' );

    (3) And make sure you’ve added the “Tags” line to your custom theme’s CSS header.

    Do you still see the error message? If so, try replacing the code you added to the top of your theme’s functions.php with the code as Andy suggested:

    include( STYLESHEETPATH . '/bp/bp-functions.php' );

    Check for the error message again.

    Once you have BuddyPress functioning using your custom theme without any error messages, then you can try activating plugins one-by-one to ensure you can identify any conflicts.

    P.S. You mentioned in #10 above that you had modified the core files by adding the functions line of code to the functions.php file. Just to make sure, the core files are in wp-content/plugins/buddypress/. You should not be modifying any files or folders within the core files. All of the customizations you need to make to adapt your custom theme should be within /wp-content/themes/your-theme/ which I believe for you is /wp-content/themes/wp-clear-basic/. So you are adding the theme extension pack within your theme’s folder at /wp-content/themes/wp-clear-basic/. And you are modifying functions.php and style.css within your custom theme’s folder only.

    @paragate

    Participant

    I’ll give this a try. I did replace TEMPLATEPATH with STYLESHEETPATH and nothing changed. But, I will use the steps above and try again.

    It was working with the default template prior to this.

    I’m only making changes to the custom theme folder only. :)

    @paragate

    Participant

    FIXED IT!!! :)

    The path it was seeking the file was home/pgnew/public_html/wp-content/themes/wpclearbasic/functions/bp/bp_functions.php

    The file path I HAD was: home/pgnew/public_html/wp-content/themes/wpclearbasic/functions/bp-template-pack/bp/bp_functions.php

    I moved the files from the bp-template-pack to wpclearbasic and ta da!!!! Yea me!

    @paragate

    Participant

    P.S. THANK YOU for your help!!! It made me start thinking! :)

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Warning Error Message’ is closed to new replies.
Skip to toolbar