After installing the Hana-FLV-Player and adding my first video to a WordPress Blog the following message is received. Warning: array_search(): Wrong datatype for second argument in mywebsites.com/httpdocs/wp-content/plugins/hana-flv-player/hana-flv-player.php on line 174. I am substituting mywebsites.com for the actual Blog.
I checked line 174 and also looked at my function.php's, searching for a possible content_limit issues. Even attempted the suggestion made to Kim regarding adding the following:
global $wp_current_filter;
array_push($wp_current_filter,'get_the_excerpt');
But the code is still showing.
Code appearing on WP Warning: array_search();
(4 posts) (2 voices)-
Posted 9 months ago #
-
Hello ajjjr
I am not sure what's going on because this error has occurred due to the missing
$wp_current_filterarray. But it should not be.Just to block the error to show up , change line 174
hana-flv-player.phpfile.from
if ( array_search('get_the_excerpt',$wp_current_filter) !== FALSE ) {to
if (is_array($wp_current_filter) && array_search('get_the_excerpt',$wp_current_filter) !== FALSE ) {It will at least hide the error code to show up. Let me know how this quick patch works for you.
Posted 9 months ago # -
Thank you. Your replacement code for line 174 has blocked the displayed error, but does that now mean that the description is not SEO compliant?
Posted 9 months ago # -
Hello again,
No this error is not (directly?) related to showing extra description within the object or script tags for the SEO purposes. But I can say that your Wordpress setup is not normal because$wp_current_filtervariable should be available by Wordpress.If you have other problems please , describe them in detail with the screenshot image or URL.
thank youPosted 9 months ago #
Reply
You must log in to post.
resolved