{"id":1571672,"date":"2018-07-10T09:06:09","date_gmt":"2018-07-10T16:06:09","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/"},"modified":"2018-07-10T09:06:09","modified_gmt":"2018-07-10T16:06:09","slug":"event-tickets-update-to-4-7-5-triggered-fatal-php-error","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/","title":{"rendered":"Event Tickets update to 4.7.5 triggered fatal PHP error"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>We just updated to Event Tickets and Event Tickets Plus 4.7.5 and got a fatal PHP error that prevented the loading of some pages.<\/p>\n<p>PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_event() in \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/src\/Tribe\/REST\/V1\/Headers\/Base.php:95\\nStack trace:\\n#0 \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/common\/src\/Tribe\/REST\/Headers\/Supported.php(39): Tribe__Tickets__REST__V1__Headers__Base-&gt;get_rest_url()\\n#1 [internal function]: Tribe__REST__Headers__Supported-&gt;send_header(&#8221;)\\n#2 \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/common\/vendor\/lucatume\/di52\/src\/tad\/DI52\/closuresSupport.php(24): call_user_func_array(Array, Array)\\n#3 [internal function]: {closure}(&#8221;)\\n#4 \/nas\/content\/live\/ilaudubon\/wp-includes\/class-wp-hook.php(286): call_user_func_array(Object(Closure), Array)\\n#5 \/nas\/content\/live\/ilaudubon\/wp-includes\/class-wp-hook.php(310): WP_Hook-&gt;apply_filters(NULL, Array)\\n#6 \/nas\/content\/live\/ilaudubon\/wp-includes\/plugin.php(453): WP_Hook-&gt;do_action(Array)\\n#7 \/nas\/content\/live\/ilaudubon\/wp-includes\/template-loader.php(12): do_action(&#8216;template_redire&#8230;&#8217;)\\n#8 in \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/src\/Tribe\/REST\/V1\/Headers\/Base.php on line 95<\/p>\n<p>It looks as though the function definition for tribe_is_event was removed from Event Tickets, but is needed in the event that the site is not using The Events Calendar (that is our situation &#8211; we DO NOT need or use The Events Calendar on this site).<\/p>\n<p>When I installed The Events Calendar, the error did not happen. But, we don&#8217;t need that, so I removed it and just rolled Event Tickets and Event Tickets Plus back to their last versions, and the error is no longer there.<\/p>\n<p>Hoping that helps in fixing this bug! Note that system information from below is AFTER the rollback to the last version of Event Tickets and Event Tickets Pro.<\/p>\n<p>Thanks much!<br \/>\nHeather<\/p>\n","protected":false},"template":"","class_list":["post-1571672","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>Event Tickets update to 4.7.5 triggered fatal PHP error -<\/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\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Event Tickets update to 4.7.5 triggered fatal PHP error -\" \/>\n<meta property=\"og:description\" content=\"Hi there, We just updated to Event Tickets and Event Tickets Plus 4.7.5 and got a fatal PHP error that prevented the loading of some pages. PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_event() in \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/src\/Tribe\/REST\/V1\/Headers\/Base.php:95nStack trace:n#0 \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/common\/src\/Tribe\/REST\/Headers\/Supported.php(39): Tribe__Tickets__REST__V1__Headers__Base-&gt;get_rest_url()n#1 [internal function]: Tribe__REST__Headers__Supported-&gt;send_header(&#8221;)n#2 \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/common\/vendor\/lucatume\/di52\/src\/tad\/DI52\/closuresSupport.php(24): call_user_func_array(Array, Array)n#3 [internal function]: {closure}(&#8221;)n#4 \/nas\/content\/live\/ilaudubon\/wp-includes\/class-wp-hook.php(286): call_user_func_array(Object(Closure), Array)n#5 \/nas\/content\/live\/ilaudubon\/wp-includes\/class-wp-hook.php(310): WP_Hook-&gt;apply_filters(NULL, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/\" \/>\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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/\",\"name\":\"Event Tickets update to 4.7.5 triggered fatal PHP error -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-07-10T16:06:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/#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\":\"Event Tickets update to 4.7.5 triggered fatal PHP error\"}]},{\"@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":"Event Tickets update to 4.7.5 triggered fatal PHP error -","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\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/","og_locale":"en_US","og_type":"article","og_title":"Event Tickets update to 4.7.5 triggered fatal PHP error -","og_description":"Hi there, We just updated to Event Tickets and Event Tickets Plus 4.7.5 and got a fatal PHP error that prevented the loading of some pages. PHP Fatal error: Uncaught Error: Call to undefined function tribe_is_event() in \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/src\/Tribe\/REST\/V1\/Headers\/Base.php:95nStack trace:n#0 \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/common\/src\/Tribe\/REST\/Headers\/Supported.php(39): Tribe__Tickets__REST__V1__Headers__Base-&gt;get_rest_url()n#1 [internal function]: Tribe__REST__Headers__Supported-&gt;send_header(&#8221;)n#2 \/nas\/content\/live\/ilaudubon\/wp-content\/plugins\/event-tickets\/common\/vendor\/lucatume\/di52\/src\/tad\/DI52\/closuresSupport.php(24): call_user_func_array(Array, Array)n#3 [internal function]: {closure}(&#8221;)n#4 \/nas\/content\/live\/ilaudubon\/wp-includes\/class-wp-hook.php(286): call_user_func_array(Object(Closure), Array)n#5 \/nas\/content\/live\/ilaudubon\/wp-includes\/class-wp-hook.php(310): WP_Hook-&gt;apply_filters(NULL, [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/","name":"Event Tickets update to 4.7.5 triggered fatal PHP error -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-07-10T16:06:09+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-tickets-update-to-4-7-5-triggered-fatal-php-error\/#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":"Event Tickets update to 4.7.5 triggered fatal PHP error"}]},{"@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\/1571672","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\/1571672\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1571672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}