WebDevStudios / Automatic-Featured-Images-from-Videos

If a YouTube or Vimeo video exists in the first few paragraphs of a post, automatically set the post's featured image to that vidoe's thumbnail.
33 stars 24 forks source link

Undefined variable errors #66

Closed tw2113 closed 3 years ago

tw2113 commented 4 years ago
PHP Notice:  Undefined variable: youtube_details in automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 137
PHP Notice:  Undefined variable: vimeo_details in automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 137

https://wordpress.org/support/topic/undefined-variables-15/

tw2113 commented 4 years ago
PHP Notice:  Undefined index: video_thumbnail_url in /automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 124
PHP Notice:  Undefined index: video_url in /automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 125
PHP Notice:  Undefined index: video_embed_url in automatic-featured-images-from-videos/automatic-featured-images-from-videos.php on line 126
tw2113 commented 3 years ago

This came up again today https://wordpress.org/support/topic/when-saving-a-nav-menu-i-get-error-messages-about-undefined-variables-in-this/

tw2113 commented 3 years ago

Also getting Trying to get property 'ID' of non-object when editing a comment, since wds_register_display_video_metabox is being run due to general metabox hook.

tw2113 commented 3 years ago

Original errors handled in 63bef39bca8a3b0c9aab90f1167ff3ffa97d94e8

https://github.com/WebDevStudios/Automatic-Featured-Images-from-Videos/issues/66#issuecomment-776285962 handled in def23f6aeb1f53617d953909bfd6e9a6b2e02ad3