404 Media page
-
Hi!
I’m using Buddypress, Youzer and rtMedia.
Problem is, when I click the Media tab from the user profile, I get this :Warning: include_once(/app/public/wp-content/plugins/youzer/includes/public/templates/rtmedia\main.php): failed to open stream: No such file or directory in /app/public/wp-content/plugins/youzer/includes/public/core/functions/yz-general-functions.php on line 1552 Warning: include_once(): Failed opening ‘/app/public/wp-content/plugins/youzer/includes/public/templates/rtmedia\main.php’ for inclusion (include_path=’.:/usr/share/php:/www/wp-content/pear’) in /app/public/wp-content/plugins/youzer/includes/public/core/functions/yz-general-functions.php on line 1552
I checked in my Youzer file, all the .php were well created and here is what I have in the yz-general-functions.php for rtMedia compatibility :
/**
* Make RTmedia compatible with Youzer.
*/
function yzc_rtmedia_main_template_include( $template ) {if ( bp_is_user() ) {
return YZ_TEMPLATE . ‘profile-template.php’;
} elseif ( bp_is_group() ) {
return YZ_TEMPLATE . ‘groups\single\home.php’;
} else {
return $template;
}}
add_filter( ‘rtmedia_media_include’, ‘yzc_rtmedia_main_template_include’, 0 );
/**
* Get Rtmedia Content
*/
function yzc_add_rtmedia_content() {global $rtmedia_query;
if ( $rtmedia_query ) {
include_once YZ_TEMPLATE . ‘rtmedia\main.php’; //line 1552
}}
add_action( ‘yz_group_main_column’, ‘yzc_add_rtmedia_content’ );
add_action( ‘yz_profile_main_column’, ‘yzc_add_rtmedia_content’ );Could someone help me figure out what’s wrong and what to do?
Thank you!
- The topic ‘404 Media page’ is closed to new replies.