Home Forums Teddy WordPress Theme Teddy, PHP 7.2, video isn't working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18040
    Cedrovsky
    Participant
    Purchased
    Expired

    Hello, after I’ve changed PHP script on my server to 7.2 all video on the website stopped working. Checking and checking and everything looks fine and don’t know what’s going on… Teddy Theme: 1.3.6
    https://chmiel.az.pl/

    Regards
    Blaise

    #18041
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi,

    Please send your question(this topic URL), FTP account and wp-admin(URL / username/password) to uiueux@gmail.com, I’ll log in to check it.

    Regards!
    Bwsm – uiueux.comTwitterFacebook

    #18143
    bikulka
    Participant

    Hi, I need to switch to PHP 7.2 as well, but I tested it before the switch and I would have the same problem, video would stop working.. have you found out what the problem was? I am afraid to do the switch, but my PHP 5.4 is out of date and soon will need to do it..

    #18145
    SeaTheme
    Keymaster
    Purchased
    Expired

    Hi,

    Please update the mod-video.php to:

    <?php
    $teddy_embeded_code = get_post_meta(get_the_ID(), 'teddy_embeded_code', true);
    $teddy_m4v_file = get_post_meta(get_the_ID(), 'teddy_m4v_file', true);
    $teddy_ogv_file = get_post_meta(get_the_ID(), 'teddy_ogv_file', true);
    if($teddy_m4v_file != ''){
         $teddy__file = $teddy_m4v_file;
    }else{
         $teddy__file = $teddy_ogv_file;
    }
    
    if($teddy_embeded_code != ''):
    ?>
                <!-- VIdeo -->
                <section class="list_item container video_wrap" >
                    <div class="videoWrapper">
                        <?php if ( strstr($teddy_embeded_code,"youtube") && !(strstr($teddy_embeded_code, "iframe"))) : ?>
                            <iframe src="//www.youtube.com/embed/<?php echo get_you_tube_id($teddy_embeded_code);?>?rel=0&controls=1&showinfo=0&theme=light&autoplay=0&wmode=transparent"></iframe>
                        <?php //elseif ( strstr("vimeo", $teddy_embeded_code) && !(strstr("iframe", $teddy_embeded_code))) :
                             elseif(strstr($teddy_embeded_code, "vimeo") && !(strstr($teddy_embeded_code, "iframe"))) :?>
                            <iframe title="Vimeo video player" src="//player.vimeo.com/video/<?php echo get_vimeo_id($teddy_embeded_code); ?>?title=0&byline=0&portrait=0" width="100%" height="auto" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
                        <?php else :?>
                            <?php echo $teddy_embeded_code; ?>
                        <?php endif; ?>
                    </div><!--End .video_wrap-->    
                </section>
    
    <?php else: ?>
    
                <!-- VIdeo -->
               
    <?php endif; ?>

    Regards

    #18182
    bikulka
    Participant

    yes, this works, thanks a lot!!!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!