• Resolved vinem

    (@vinem)


    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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter vinem

    (@vinem)

    Checked in my Youzer folder* not file. Sorry!

    Thread Starter vinem

    (@vinem)

    “Funny thing” is, when I deactivate Youzer, move the rtmedia folder to my theme and click the Media page, I get a 404 page not found…

    Plugin Contributor Krupa Nanda

    (@krupajnanda)

    Hi @vinem,

    I hope you are doing good.

    Extremely sorry for the delay in response!

    Can you let us know if you are still facing the same problem?

    If yes then I would request you to please open a new ticket on our support channel – https://rtmedia.io/support/

    Have a great day!

    Regards,
    Krupa

    Plugin Contributor Krupa Nanda

    (@krupajnanda)

    Hi @vinem,

    I hope you are doing good!

    Is there abt reason that you need to move the rtMedia folder inside the theme folder?

    Also, I would like to request you to check if the media page is accessible if you deactivate youzer and keeping rtmedia installed inside the plugin’s folder only.

    Regarding this warning:

    Warning: include_once(/app/public/wp-content/plugins/youzer/includes/public/templates/rtmedia\main.php): failed to open stream: No such file or directory

    The above URL seems to be invalid. It should be /app/public/wp-content/plugins/youzer/includes/public/templates/rtmedia/main.php

    Please let me know if the above points help you to fix the problems

    Regards,
    Krupa

    Plugin Contributor Krupa Nanda

    (@krupajnanda)

    Hi @vinem

    Following up on my previous reply, were you able to look into the queries I raised? Can you please confirm if you are still facing the issue?

    Looking forward to your reply.

    Thanks,
    Krupa

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 Media page’ is closed to new replies.