Fatal Error in Studio theme

I added Studio themes to the content directory and

Fatal error: Cannot redeclare bp_dtheme_object_template_loader() (previously declared in C:\x\htdocs\realtasia\wp-content\plugins\buddypress\bp-themes\bp-default\_inc\ajax.php:67) in C:\x\htdocs\realtasia\wp-content\themes\studio\_inc\ajax.php on line 72

Shouldn't the ajax.php in the Studio theme be wrapped with if function exists() conditions if the file is duplicated. But that said, it will be unnecessary overhead for a check for each function.

Since buddypress includes the default theme functions, is this file really needed?

  • Mason
    • DEV MAN’s Sidekick


    I don't think the issue is with Studio. Try disabling all other plugins besides BuddyPress and then activate Studio. Some plugins (such as bp template pack) try to make a theme BP compatible and add components to the theme that already exist resulting in PHP errors.

    If you're still having the issue with just BuddyPress and Studio, we'll want to take another look.

    Let us know how it goes! :smiley:


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.