Video Thumbnails
Array error on line 408 in video-thumbnails.php (3 posts)

  1. astpaul
    Posted 5 years ago #


    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 ?

  2. Sutherland Boswell
    Plugin Author

    Posted 5 years ago #

    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!

  3. astpaul
    Posted 5 years ago #


    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Video Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic