WordPress.org

Support

Support » Plugins and Hacks » Array error on line 408 in video-thumbnails.php

Array error on line 408 in video-thumbnails.php

  • Hi

    Sometimes when submitting a page in Admin I get the following error:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/tapuat5/public_html/voltigers.com/wp-content/plugins/video-thumbnails/video-thumbnails.php on line 408

    Submitting the same page again solve the issue

    How can I solve this ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sutherland Boswell

    @sutherlandboswell

    Try opening the plugin and replacing this section on line 408:

    if (in_array($post_type, $video_thumbnails_post_types) OR $post_type == $video_thumbnails_post_types) {

    with this:

    if (in_array($post_type, (array) $video_thumbnails_post_types)
        || $post_type == $video_thumbnails_post_types) {

    Let me know if this fixes your problem and I’ll include it in the next update!

    Hi

    Many thanks to get back to me.

    It seems that all is ok but as the error came some times only I’ll have to confirm later 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Array error on line 408 in video-thumbnails.php’ is closed to new replies.