Home › Forums › Teddy WordPress Theme › Teddy, PHP 7.2, video isn't working
- This topic has 4 replies, 3 voices, and was last updated 4 years, 8 months ago by
bikulka.
- AuthorPosts
- March 18, 2019 at 9:42 am #18040
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
BlaiseMarch 18, 2019 at 12:38 pm #18041Hi,
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.com – Twitter – FacebookApril 1, 2019 at 10:57 am #18143bikulka
ParticipantHi, 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..
April 1, 2019 at 1:50 pm #18145Hi,
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
April 5, 2019 at 7:38 am #18182bikulka
Participantyes, this works, thanks a lot!!!
- AuthorPosts
- You must be logged in to reply to this topic.