Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 4 years ago

#8331 closed defect (bug) (worksforme)

Fatal error: Class 'BP_REST_Components_Endpoint' not found

Reported by: man4toman's profile man4toman Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.0
Component: REST API Keywords: reporter-feedback
Cc:

Description

Hi
I start setup a test environment with latest version of WordPress "5.5-beta1-48404" and svn version of BuddyPress, but I get a fatal error:

<b>Fatal error</b>:  Uncaught Error: Class 'BP_REST_Components_Endpoint' not found in /wp-content/plugins/buddypress/bp-core/classes/class-bp-component.php:90

Am I missing something or this a critical problem?

Change History (5)

#1 @imath
4 years ago

  • Component changed from Core to REST API
  • Version set to 5.0.0

hi @man4toman

Thanks a lot for your feedback. Well, the BP REST API is included during our build process, so this issue should not happen with our stable releases. I never got this issue because I always have the development version of the BP REST API activated.

That being said, this fatal is pretty ugly. We should probably remove it. I'm going to look at it.

#2 @imath
4 years ago

  • Keywords reporter-feedback added

@man4toman I can't reproduce, are you using the BP REST API into one of your plugins or into your active theme ?

FYI, we are making sure the BP REST API is available using this function : bp_rest_api_is_available() and after testing it, it behaves the right way.

#3 @man4toman
4 years ago

@imath Thanks for your follow up.

I re-check everything also availability of BP REST API, fatal error gone away.

This ticket was mentioned in Slack in #buddypress by morteza20. View the logs.


4 years ago

#5 @imath
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Ok, then, I'm closing this ticket ;) Don't hesitate to reopen it if the issue comes back!

Note: See TracTickets for help on using tickets.