Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chris

    (@zenation)

    I get what seems to be the problem but weirdly I cannot recreate it.

    Nevertheless I’ve implemented an explicit check (the max value has of course to be bigger than min value) that should prevent this from happening in what’s now v.1.5.5

    Could you check if updating the plugin did the trick?

    Thread Starter randolf.m

    (@randolfm)

    I think I know why I got this error. It don’t found a video with this searchstring (postTitle or postTags)!!!

    Before: postTitle is Suzuki Z400 Quad KBM-Umbau
    [relatedYouTubeVideos max=”3″ random=”10″]

    Error still avaible!!!

    Now:
    [relatedYouTubeVideos max=”3″ random=”10″ relation=”keywords” terms=”suzuki z400″]

    I specified it to custom keywords and it work well now.

    Plugin Author Chris

    (@zenation)

    Thanks for the detailed feedback! When I was testing for empty results YT was always sending back some unrelated videos instead of just nothing. Guess I wasn’t trying hard enough^^.

    Now, with v1.5.6, a hidden HTML comment is generated saying “no related videos found” if YT doesn’t return a thing.

    So in your case you would still be better off using custom keywords since you do want to display videos. But at least the “no results” case won’t throw any PHP error/warning anymore.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Error’ is closed to new replies.