Issue with rtMedia - Error 500

Hi there,

I’m getting an issue with rtMedia - Error 500. If I enable troubleshoot mode from the Site Health plugin, enable buddypress, rtMedia and my child theme (Also tried with just the pro theme), the pages come through, but they’re broken and don’t allow you to do anything on them. Just displays stuff as text and no clickable links. I thought it may have something to do with the post carousel but apparently no dice!

Kind regards,

Hi @Keanu,

Please kindly consider that the request is a potential conflict with a third-party plugin and it is outside of our support scope. We certainly will do our best to help you identify the problem, but there is no guarantee that a fix will be introduced as it is virtually impossible to force compatibility for all third-party plugins in the Wordpress world.

Would you please kindly give us more detailed information on what steps we should take to see the Error 500?
The error 500 usually is either a PHP Memory limit exhaustion or a PHP error.

Please kindly enable the WordPress debug-mode so that instead of seeing the Error 500 you will be able to see the actual error:

https://wordpress.org/support/article/debugging-in-wordpress/

If the problem is related to the memory limit please follow the steps mentioned below:

If the problem is something else, please kindly get back to us with the exact steps we should take to see the problem.

Finally, I would also encourage you to switch the theme from Pro to Twenty-Twenty. If the problem persists, it is not related to a conflict at all.

Thank you.

Hi @christopher,

I have already increased the memory limit on the website, up to 512MB if I recall correclty, both CPanel end and via the wp-config. Will attach the debug mode stuff to the bottom of this message.

Problem does not persist in Twenty-Twenty, works fine in that, only an issue in Pro/pro-child. So it’s an actual conflict somehow in the theme. This is what shows up from the WP-Debug if you go to WEBSITE.co.uk/members/USERNAME/media/album/

Notice: Undefined property: stdClass::$object in /home/WEBSITE/public_html/wp-content/plugins/buddypress/bp-core/bp-core-filters.php on line 226

Notice: Undefined property: stdClass::$type in /home/WEBSITE/public_html/wp-content/themes/pro/framework/legacy/cranium/headers/functions/classes.php** on line 131

Fatal error : Uncaught Error: Call to undefined function bp_nouveau_member_hook() in /home/WEBSITE/public_html/wp-content/plugins/buddypress-media/templates/main.php:51 Stack trace: #0 /home/WEBSITE/public_html/wp-includes/template.php(723): require_once() #1 /home/WEBSITE/public_html/wp-content/plugins/buddypress-media/app/main/routers/RTMediaRouter.php(197): load_template(’/home/WEBSITE/…’) #2 /home/WEBSITE/public_html/wp-includes/class-wp-hook.php(287): RTMediaRouter->rt_replace_the_content(’’) #3 /home/WEBSITE/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(’’, Array) #4 /home/WEBSITE/public_html/wp-includes/post-template.php(253): apply_filters(‘the_content’, ‘’) #5 /home/WEBSITE/public_html/wp-content/themes/pro/framework/views/global/_content-the-content.php(17): the_content() #6 /home/WEBSITE/public_html/wp-content/themes/pro/framework/functions/frontend/view-routing.php(182): include(’/home/WEBSITE/…’) #7 /home/WEBSITE/public_html/wp-content/themes/pro/framework/functions/frontend/vi in /home/WEBSITE/public_html/wp-content/plugins/buddypress-media/templates/main.php on line 51

There has been a critical error on your website.

[Learn more about debugging in WordPress.]>(https://wordpress.org/support/article/debugging-in-wordpress/)

Please note i’ve replaced the website name from the above so it doesn’t show up on google searches, etc. Please can you also avoid using the website name. Thanks!

Hopefully that helps!

Thanks,
Kind regards,

Hey @Keanu,

We need FTP access for this case but the provided FTP credentials don’t work. Please update us with the working credentials.

Thanks.

Hi @christian ,

Apologies, new credentials posted on a secure note!

Thanks,
Kind regards,

Hi Keanu,

It’s indeed a conflict, but the fix should be added to rtMedia instead of the theme/cornerstone. That fatal error is caused by missing bp_nouveau_member_hook() and our theme or cornerstone doesn’t have any code that overrides it.

The nouveau is a BuddyPress Template, you can check that through FTP, at \wp-content\plugins\buddypress\bp-templates, there are legacy and nouveau. And rtMedia assumes all themes and plugins are using nouveau by default. Our theme uses BuddyPress’s legacy template

// Use legacy as default template
add_theme_support('buddypress-use-legacy');

We can’t just convert it to nouveau or every template integration we added will fail. The rtMedia plugin should have at least able to determine which templates are active before calling or executing codes.

Thanks!

Hi @rad ,

I believe I understand. So is it safe to assume that without rtMedia fixing it, it won’t work? Or is there a hacky way to force rtMedia to use the legacy?

Thanks for looking into this!
Kind regards,

Hi @Keanu,

Yes, it will not work if they aren’t going to fix it. Or you can just remove this line add_theme_support('buddypress-use-legacy'); from /x/framework/functions/plugins/buddypress.php. But that may cause issues and it’s something we can’t cover or provide support since it’s initially meant for legacy templates.

Thanks!

Hi @rad,

Awesome, thanks. I’ll give it a gander. If it breaks tons, then i’ll swap back and see if I can find something else to replace it with! Please consider this issue done.

EDIT - One last quick question. Is there a way to enable the Nouveau for all of buddypress on X please? Seems that it enables it for Only the media page of RTMedia, which is fine, but it breaks things on the legacy when trying to style it. It seems to work okay once adding a few lines of CSS, so I think it may be worth just testing it across the board and seeing how I get on!

Thanks again,
Kind regards,

Hi @Keanu,

If it was a matter of few CSS codes it would be possible, but if you check our theme you will see that there are quite a few integrations going on.

At this moment, we do not have any plans to switch the template for BuddyPress.

Thank you for your understanding.

Hi @christopher ,

That makes sense. Do you happen to know if there is a way to add new classes onto the nouveau pages instead then? If I style one, it happens for the other, so I need some other way of targeting the elements instead. It’s only on the Media pages.

Thanks,
Kind regards,

Hello @Keanu,

What you will need is a BuddyPress template modifications that you can add in your child theme. Please do check out this documentation to get started with what you need:

Note: We are unable to provide support for customizations under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One or Care service for further assistance.

Hope this helps.

Hi @ruenei ,

Perfect. Thank you very much for your help! Please consider this issue resolved!

Kind regards,

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.