YouTube links checking issue
-
Hi,
does anyone know why my plugin not working with youtube links check?I have check option about checking youtube like:
– Embedded YouTube videos
– Embedded YouTube videos (old embed code)
– YouTube API
πBelow I share screenshots with my settings:
Anyone can help me please?
best regards.
-
YouTube API checking stopped working a while back, and AFAIK there is no fix coming any time soon. Disable the YouTube API check, they will then be checked with the regular methods (HEAD/GET).
Note that this has the drawback of not being able to detect for instance if a video is private, since it still technically exists and won’t return a 404.
Hi,
thank you, I already switch off YouTube API and we will see what happen.. πbut additional I have the same problem with videos from Vimeo service. π but Vimeo hasn’t API option to switch off. where to look for a solution?
Turn on logging under Advanced in the plugin settings. Do a recheck of the links and check the log for any errors and other messages which might explain it.
Hi Stian Lund,
I did it and checked errors but I’m confuse and I can not understand this could you check this:'UPDATE wp_blc_links SET url = \'https://www.youtube.com/watch?v=El4LKyzzWnw\', first_failure = \'0000-00-00 00:00:00\', last_check = \'0000-00-00 00:00:00\', last_success = \'0000-00-00 00:00:00\', last_check_attempt = \'2019-09-09 11:06:07\', check_count = 1, final_url = \'\', redirect_count = 0, log = \'\', http_code = 0, request_duration = 0.000000, timeout = 0, result_hash = \'\', broken = 0, warning = 0, false_positive = 0, may_recheck = 1, being_checked = 1, status_text = \'\', status_code = \'\', dismissed = 0 WHERE link_id=6' [2019-09-09 11:06:07 +00:00] DEBUG: blcLink:save Link updated. [2019-09-09 11:06:07 +00:00] DEBUG: Starting DB commit. [2019-09-09 11:06:07 +00:00] DEBUG: Commit executed. [2019-09-09 11:06:08 +00:00] DEBUG: HTTP module checking "https://www.youtube.com/watch?v=El4LKyzzWnw" [2019-09-09 11:06:08 +00:00] INFO: blcCurlHttp Checking link 'https://www.youtube.com/watch?v=El4LKyzzWnw' [2019-09-09 11:06:08 +00:00] DEBUG: blcCurlHttp Clean URL: 'https://www.youtube.com/watch?v=El4LKyzzWnw' [2019-09-09 11:06:08 +00:00] DEBUG: HTTP request took 0.191 seconds [2019-09-09 11:06:08 +00:00] INFO: HTTP response: 200, duration: 0.19 seconds, status text: "N/A" [2019-09-09 11:06:08 +00:00] DEBUG: blcLink:save Updating a link. SQL query: 'UPDATE wp_blc_links SET url = \'https://www.youtube.com/watch?v=El4LKyzzWnw\', first_failure = \'0000-00-00 00:00:00\', last_check = \'2019-09-09 11:06:07\', last_success = \'2019-09-09 11:06:07\', last_check_attempt = \'2019-09-09 11:06:07\', check_count = 0, final_url = \'https://www.youtube.com/watch?v=El4LKyzzWnw\', redirect_count = 0, log = \'=== HTTP code : 200 ===\\n\\nResponse headers\\n================\\nHTTP/1.1 200 OK\\r\\nX-Frame-Options: SAMEORIGIN\\r\\nX-Content-Type-Options: nosniff\\r\\nP3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more info."\\r\\nStrict-Transport-Security: max-age=31536000\\r\\nExpires: Tue, 27 Apr 1971 19:44:06 EST\\r\\nCache-Control: no-cache\\r\\nContent-Type: text/html; charset=utf-8\\r\\nDate: Mon, 09 Sep 2019 11:06:07 GMT\\r\\nServer: YouTube Frontend Proxy\\r\\nX-XSS-Protection: 0\\r\\nSet-Cookie: VISITOR_INFO1_LIVE=8wRYVVdVFws; path=/; domain=.youtube.com; expires=Sat, 07-Mar-2020 11:06:07 GMT; httponly\\r\\nSet-Cookie: GPS=1; path=/; domain=.youtube.com; expires=Mon, 09-Sep-2019 11:36:07 GMT\\r\\nSet-Cookie: PREF=f1=40000000; path=/; domain=.youtube.com; expires=Sat, 09-May-2020 22:59:07 GMT\\r\\nSet-Cookie: YSC=cQyHusj4y6g; path=/; domain=.youtube.com; httponly\\r\\nAlt-Svc: quic=":443"; ma=2592000; v="46,43,39"\\r\\nAccept-Ranges: none\\r\\nVary: Accept-Encoding\\r\\nConnection: close\\r\\n\\r\\nRequest headers\\n================\\nHEAD /watch?v=El4LKyzzWnw HTTP/1.1\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36\\r\\nHost: www.youtube.com\\r\\nAccept: */*\\r\\nReferer: http://skatevideotest.pl\\r\\nConnection: close\\r\\n\\r\\n\\nLink is valid.\', http_code = 200, request_duration = 0.190931, timeout = 0, result_hash = \'200|0|0|https://www.youtube.com/watch\', broken = 0, warning = 0, false_positive = 0, may_recheck = 1, being_checked = 0, status_text = \'\', status_code = \'\', dismissed = 0 WHERE link_id=6' [2019-09-09 11:06:08 +00:00] DEBUG: blcLink:save Link updated. [2019-09-09 11:06:08 +00:00] DEBUG: Starting DB commit. [2019-09-09 11:06:08 +00:00] DEBUG: Commit executed. [2019-09-09 11:06:08 +00:00] DEBUG: Starting DB commit. [2019-09-09 11:06:08 +00:00] DEBUG: Commit executed. [2019-09-09 11:06:08 +00:00] INFO: work(): All done.so URL: https://www.youtube.com/watch?v=El4LKyzzWnw is definitely broken but test passed?
Hey – like I said, turning off YouTube API checking will not mark private videos as broken so test will pass. YouTube returns a http 200 for private videos because they exist.
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_SuccessI thought you said Vimeo videos was the problem?
Hi,
I did some tests for ex.:I uploaded on my youtube profile one footage and then copy and paste link into post.
I tested with public and private visibility and after that I deleted video from youtube service and recheck all pages and posts.
NO broken links found. π I’m confused..
PS. I can allow to access to my WP test site to check this if you want to see it yourself.
Michael.
“I thought you said Vimeo videos was the problem?” – there problem is in YouTube and Vimeo too. :/
Michael.
You can post a link to the log here and I can have a look.
The URL for the log would be something like:
<site URL>/wp-content/uploads/broken-link-checker/blc-log.txtIf you give access to the site it might help too.
-
This reply was modified 6 years, 8 months ago by
Stian Lund.
Hi,
how can I sent it to you in safety way? any email or something?best regards
MichaelYou can email me stianlund at Gmail.
I have already sent you a message.
best regards,
MichaelI have the exact same issue on 4 different sites that I am using this plugin. Broken YT videos pass the check.
Did you came up with a fix? Please let us know.@cultoftheshadow There is no quick fix I’m afraid, and probably not coming. Apart from maybe getting your own key from Google APIs as outlined here:
https://developers.google.com/youtube/v3/getting-started
https://github.com/ManageWP/broken-link-checker/issues/56You can disable the YouTube API in settings, I assume this is what you’ve done? BLC will then check YT links the same way as regular links, with the drawback that for instance private/hidden videos will still show as OK. This is just how YT works.
@pathduck just saw your comment…. yes I have disable the YouTube API in settings and embedded YT video pass the check. I will try to see what can be done with Google API
-
This reply was modified 6 years, 8 months ago by
The topic ‘YouTube links checking issue’ is closed to new replies.