Skip to:
Content
Pages
Categories
Search
Top
Bottom

Uncaught Error: Class ‘BP_Component’ not found


  • tevintwotimes
    Participant

    @tevintwotimes

    Hello, all of a sudden my site went down because of the following error:

    [31-Oct-2019 09:04:39 UTC] PHP Fatal error:  Uncaught Error: Class 'BP_Component' not found in /home/website/web/website.com/public_html/wp-content/themes/videotube-child/inc/subscriptions-tab.php:11
    Stack trace:
    #0 /home/website/web/website.com/public_html/wp-content/themes/videotube-child/inc/buddypress.php(9): require_once()
    #1 /home/website/web/website.com/public_html/wp-content/themes/videotube-child/functions.php(5): require_once('/home/website...')
    #2 /home/website/web/website.com/public_html/wp-settings.php(499): include('/home/website...')
    #3 /home/website/web/website.com/public_html/wp-config.php(125): require_once('/home/website...')
    #4 /home/website/web/website.com/public_html/wp-load.php(37): require_once('/home/website...')
    #5 /home/website/web/website.com/public_html/wp-blog-header.php(13): require_once('/home/website...')
    #6 /home/website/web/website.com/public_html/index.php(17): require('/home/website...')
    #7 {main}
      thrown in /home/website/web/website.com/public_html/wp-content/themes/videotube-child/inc/subscriptions-tab.php on line 11

    I have the buddypress 5.0 plugin installed and I have an includes(inc) folder in my child theme folder so I can add tabs to the account page.

    Any idea why it is saying ‘BP_Component’ class not found all of a sudden?

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    subscriptions-tab.php is a custom file in your child theme, correct?

    The obvious guess is that there is a problem with the code in that file.
    Unless you share that code, it is difficult to know what the problem is.
    Please do not post the code here.
    Use a site like pastbin to share your code and then post the url here.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar