{"id":10524752,"date":"2018-07-24T23:45:36","date_gmt":"2018-07-24T23:45:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-http500-when-saving-with-not-published-yt-video\/"},"modified":"2018-07-24T23:45:36","modified_gmt":"2018-07-24T23:45:36","slug":"error-http500-when-saving-with-not-published-yt-video","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-http500-when-saving-with-not-published-yt-video\/","title":{"rendered":"Error HTTP500 when saving with not published YT Video"},"content":{"rendered":"<p>Hi Brecht,<\/p>\n<p>us again ;).<\/p>\n<p>Everytime a post with a Youtube URL that does not yet exist (i.e. the video hasn&#8217;t finished uploading) is saved or previewed, we get the following error message and a HTTP500.<\/p>\n<p>PHP message: PHP Fatal error:  Uncaught Error: Unsupported operand types in \/var\/www\/vhosts\/salala.de\/httpdocs\/wp-content\/plugins\/wp-recipe-maker\/includes\/public\/class-wprm-metadata-video.php:224\\n<br \/>\nStack trace:\\n<br \/>\n#0 \/var\/www\/vhosts\/salala.de\/httpdocs\/wp-content\/plugins\/wp-recipe-maker\/includes\/public\/class-wprm-metadata-video.php(69): WPRM_MetadataVideo::check_for_oembed(&#8216;https:\/\/youtu.b&#8230;&#8217;)\\n<br \/>\n#1 \/var\/www\/vhosts\/salala.de\/httpdocs\/wp-content\/plugins\/wp-recipe-maker\/includes\/public\/class-wprm-recipe.php(468): WPRM_MetadataVideo::get_video_metadata_for_recipe(Object(WPRM_Recipe))\\n<br \/>\n#2 \/var\/www\/vhosts\/salala.de\/httpdocs\/wp-content\/plugins\/wp-recipe-maker\/includes\/public\/class-wprm-metadata.php(133): WPRM_Recipe-&gt;video_metadata()\\n<br \/>\n#3 \/var\/www\/vhosts\/salala.de\/httpdocs\/wp-content\/plugins\/wp-recipe-maker\/includes\/public\/class-wprm-metadata.php(69): WPRM_Metadata::get_metadata(Object(WPRM_Recipe))\\n<br \/>\n#4 \/var\/www\/vhosts\/salala.de\/httpdocs\/wp-content\/plugins\/wp-recipe-maker\/includes\/public\/class-wprm-shortcode.php(189): WPRM&#8230;\\n&#8217;, referer: https:\/\/www.salala.de\/wp-admin\/post.php?post=36468&amp;action=edit<\/p>\n<p>I think you&#8217;ll want to catch that one \ud83d\ude42<\/p>\n<p>Thanks again<br \/>\nVroni &amp; Nico<\/p>\n","protected":false},"template":"","class_list":["post-10524752","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10524752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10524752\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10524752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}