{"id":1389950,"date":"2017-11-23T06:21:08","date_gmt":"2017-11-23T14:21:08","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/"},"modified":"2017-11-23T06:21:08","modified_gmt":"2017-11-23T14:21:08","slug":"possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/","title":{"rendered":"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors"},"content":{"rendered":"<p>Hello &#8211; following updating to Event Tickets Plus 4.6.1, ECPro 4.4.19 and Woocommerce 3.2.5, I&#8217;ve noticed errors whenever an order is placed that doesn&#8217;t include a ticket:<\/p>\n<p>[23-Nov-2017 13:58:14 UTC] PHP Notice:  Undefined variable: quantity in \/[root]\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Main.php on line 708<br \/>\n[23-Nov-2017 13:58:15 UTC] PHP Notice:  Trying to get property of non-object in \/[root]\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Global_Stock.php on line 245<\/p>\n<p>If the cart only has tickets, there&#8217;s no error when you check out, and if the cart includes a ticket as well as another product, there&#8217;s only a &#8216;Trying to get property of non-object&#8217; error message. It doesn&#8217;t seem to affect the order going through, but still&#8230;<\/p>\n","protected":false},"template":"","class_list":["post-1389950","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors -\" \/>\n<meta property=\"og:description\" content=\"Hello &#8211; following updating to Event Tickets Plus 4.6.1, ECPro 4.4.19 and Woocommerce 3.2.5, I&#8217;ve noticed errors whenever an order is placed that doesn&#8217;t include a ticket: [23-Nov-2017 13:58:14 UTC] PHP Notice: Undefined variable: quantity in \/[root]\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Main.php on line 708 [23-Nov-2017 13:58:15 UTC] PHP Notice: Trying to get property of non-object in \/[root]\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Global_Stock.php on line [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/\",\"name\":\"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-11-23T14:21:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/","og_locale":"en_US","og_type":"article","og_title":"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors -","og_description":"Hello &#8211; following updating to Event Tickets Plus 4.6.1, ECPro 4.4.19 and Woocommerce 3.2.5, I&#8217;ve noticed errors whenever an order is placed that doesn&#8217;t include a ticket: [23-Nov-2017 13:58:14 UTC] PHP Notice: Undefined variable: quantity in \/[root]\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Main.php on line 708 [23-Nov-2017 13:58:15 UTC] PHP Notice: Trying to get property of non-object in \/[root]\/wp-content\/plugins\/event-tickets-plus\/src\/Tribe\/Commerce\/WooCommerce\/Global_Stock.php on line [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/","name":"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-11-23T14:21:08+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/possible-woocommerce-conflict-with-trying-to-get-property-of-non-object-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Possible Woocommerce conflict with &#039;Trying to get property of non-object&#039; errors"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1389950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1389950\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1389950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}