• Resolved manrodsan

    (@manrodsan)


    Media tab disappeared, it is not showing inside groups options. Could you help me?
    i check that it is OK in my profile.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • I cleared my cache several times. Deaktivated rtmedia plugin an reactivaed it.
    Also de- and reactivated the cache plugins. But it had no effect.
    Here is a screenshot of my settings. Maybe there is something wrong there?
    https://www.werny.it/rtmedia.jpg

    I don’t see anything strange about this, so there must be some other reason.

    Have you tried appearance – themes – live preview (so that nothing changes on your website) with a different theme?

    Well Mehedi, I had to find it out by myself!!
    Now I know what the problem was:

    This happens when you update to php version 8.0.
    Switching it back to version 7.4 and the media tab comes back!
    So, somethings are not ready for version 8.0 php.

    You should pay me for that! ??

    Hi @werny

    Thank you for informing us. I’m taking this as a note and we’ll look into this soon. For now, until we release a PHP 8 compatible version, please consider using PHP 7.4.

    Thanks

    @thebengalboy the issue is in the file /app/main/controllers/template/RTMediaNav.php. There is a function which registers the menu called bp_core_new_subnav_item.

    The code doesn’t reach this function because of the following check:
    if (isset($bp->version) && $bp->version > '2.5.3')

    I know that the comparison operators changed between php 7.4 and 8, so the check here returns true in PHP 7.4, but it returns false in PHP 8, and that causes the error.

    Maybe it should be using the version_compare function to check this, as I see that function is also used elsewhere in rtMedia

    p.s. my temporary fix is to make the following changes in in RTMediaNav.php

    1.
    Delete this line
    $bp->version = floatval( $bp->version );

    2.
    replace this line:
    if ( isset( $bp->version ) && $bp->version > '2.5.3' ) {

    with this line:
    if (isset($bp->version) && version_compare($bp->version, "2.5.3", 'gt')) {

    • This reply was modified 2 years, 3 months ago by markcummins.

    Hi @comminski

    Thanks a lot for the detailed report. I have forwarded the same to our development team and hope to get it sorted out soon.

    We really appreciate your help.

    Thanks

    Great, good to hear it will be fixed soon. Thanks for the update Mehedi

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘media tab not showing in groups’ is closed to new replies.