Foliovision › Forums › FV Player › Troubleshooting › Post Interface Embeds into Custom Fields
-
I am having a problem when I want to add a new video. The Interface is already in my custom fields panel. I am not sure how to fix this and it won’t let me insert a video until this is fixed.
The custom fields is not a plugin but comes from my theme’s functions file. How do I separate the two from being in the same panel?
Also having a problem with JS. But all videos seem to be working okay is this something I should worry about?
It appears there are multiple jQuery libraries on your site, your videos might not be playing or may play with defects, please check.
We also recommend you to open any of your videos on your site and see if you get a red warning message about JavaScript not working.
FV Flowplayer script found: https://radcliffemedia.sosugary.com/wp-content/plugins/fv-wordpress-flowplayer/flowplayer/fv-flowplayer.min.js?ver=7.4.37.727!
jQuery library found: https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js!
jQuery library found: https://radcliffemedia.sosugary.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp!
-
-
Hello Marcie,
looking at your screenshot https://foliovision.com/images/2020/12/Screenshot-2020-12-01-22.44.21.png it appears something is calling one of the WP action hooks in a non-standard way.
Do you get into the same issue when you try to use some standard WordPress theme such as Twenty Twenty?
If that won’t help, then it might be one of the plugins. That warning about JavaScript is worth checking – if some plugin is loading the secondary copy of jQuery library like that it’s a good indication that some plugin is outdated and might be resposnible for these editing issues.
I recommend that you try disabling plugins one by one until you find which one it is. Or you can download all your files using FTP and then look for https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js in the file contents with some advanced search tool.
Thanks,
MartinHello Marcie,
I see no mention of a FLV Player plugin in your System Info, so I guess you mean FV Player.
It’s great that you were able to figure it out. Do you see anything suspicious in that function.php file?
Does it have a lot of “include” or “require” calls? If not, please send that file over to us – you can change the extensions from .php to .txt and then attach it here. I should be able to spot the suspicious call in it and figure out how to improve our FV Player’s compatibility.
Thanks,
Martin<?php add_theme_support( 'post-thumbnails' ); add_image_size( 'single-post-thumbnail', 590, 180 ); if ( function_exists('register_sidebars') ) { register_sidebar(array( 'name' => 'sidebar', 'before_widget' => '<div class="sidebarcontainer">', 'after_widget' => '</div><br>', 'before_title' => '<center><div class="sidebartitle">', 'after_title' => '</div></center>', )); } function wpb_total_posts() { $total = wp_count_posts()->publish; return $total; } add_shortcode('total_posts','wpb_total_posts'); function designsbykaci_numeric_posts_nav() { if( is_singular() ) return; global $wp_query; /** Stop execution if there's only 1 page */ if( $wp_query->max_num_pages <= 1 ) return; $paged = get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1; $max = intval( $wp_query->max_num_pages ); /** Add current page to the array */ if ( $paged >= 1 ) $links[] = $paged; /** Add the pages around the current page to the array */ if ( $paged >= 3 ) { $links[] = $paged - 1; $links[] = $paged - 2; } if ( ( $paged + 2 ) <= $max ) { $links[] = $paged + 2; $links[] = $paged + 1; } echo '<div class="pagenavi">
- ' . "\n";
/** Previous Post Link */
if ( get_previous_posts_link() )
printf( '
- %s ' . "\n", get_previous_posts_link() ); /** Link to first page, plus ellipses if necessary */ if ( ! in_array( 1, $links ) ) { $class = 1 == $paged ? ' class="active"' : ''; printf( '<li%s>%s' . "\n", $class, esc_url( get_pagenum_link( 1 ) ), '1' ); if ( ! in_array( 2, $links ) ) echo '
- … '; } /** Link to current page, plus 2 pages in either direction if necessary */ sort( $links ); foreach ( (array) $links as $link ) { $class = $paged == $link ? ' class="active"' : ''; printf( '<li%s>%s' . "\n", $class, esc_url( get_pagenum_link( $link ) ), $link ); } /** Link to last page, plus ellipses if necessary */ if ( ! in_array( $max, $links ) ) { if ( ! in_array( $max - 1, $links ) ) echo '
- … ' . "\n"; $class = $paged == $max ? ' class="active"' : ''; printf( '<li%s>%s' . "\n", $class, esc_url( get_pagenum_link( $max ) ), $max ); } /** Next Post Link */ if ( get_next_posts_link() ) printf( '
- %s ' . "\n", get_next_posts_link() ); echo '
Hello Marcie,
you sent the right code as it does register the “wpmedia” box on the post editing screen which is where the issue occurs – accodring to you screenshots.
I tried to use that part of your code and I’m running into that same issue. And it turns out the issue is your wpmedia_html() function – it misses the closing table tag.
So that’s an easy fix for you to do and they it should all be running just fine for you. I don’t see how we could prevent this issue in FV Player – if there is broken markup on the post editing page, any plugin might suffer some damage to its editing interface.
Thanks,
MartinWhere should I put that closing tag every time I do it gives a syntax error
<tr><td><p> <label for="wpmedia_video_description"><?php _e( 'video description', 'wpmedia' ); ?></label><br> <textarea name="wpmedia_video_description" id="wpmedia_video_description" ><?php echo wpmedia_get_meta( 'wpmedia_video_description' ); ?></textarea> </p></td></tr></table> <?php } Or here add_action( 'save_post', 'wpmedia_save' ); /* Usage: wpmedia_get_meta( 'wpmedia_file_name' ) Usage: wpmedia_get_meta( 'wpmedia_additional_folders' ) Usage: wpmedia_get_meta( 'wpmedia_duration' ) Usage: wpmedia_get_meta( 'wpmedia_width' ) Usage: wpmedia_get_meta( 'wpmedia_height' ) Usage: wpmedia_get_meta( 'wpmedia_embed_code_youtube_vimeo_etc_' ) Usage: wpmedia_get_meta( 'wpmedia_video_description' ) */ </table> ?>