{"id":1432421,"date":"2018-01-22T08:48:38","date_gmt":"2018-01-22T16:48:38","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/"},"modified":"2018-01-22T08:48:38","modified_gmt":"2018-01-22T16:48:38","slug":"reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/","title":{"rendered":"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot;"},"content":{"rendered":"<p>Reference Ticket https:\/\/theeventscalendar.com\/support\/forums\/topic\/deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/<\/p>\n<p>I made an edit to a function in my functions.php file as suggested by the deprecated notice but I am still getting the deprecated notice.<\/p>\n<blockquote><p>\n  PHP Notice: \/wp-content\/plugins\/the-events-calendar\/src\/deprecated\/TribeEvents.php is <strong>deprecated<\/strong> since version 3.10! Use Tribe__Events__Main instead. in \/wp-includes\/functions.php on line 3966\n<\/p><\/blockquote>\n<p>The deprecated function is a code snippet provided in the Knowledgebase for &#8220;Fixing HTTP 404 errors&#8221;. The code snippet is provided in the first bullet under &#8220;Less common solutions&#8221; and it was working. The snippet is in GitHub at https:\/\/gist.github.com\/elimn\/877bc90421526d22900b<\/p>\n<p>I have changed<br \/>\n        <code>remove_action( 'init', array( TribeEvents::instance(), 'init' ), 10 );<br \/>\n        add_action( 'init', array( TribeEvents::instance(), 'init' ), 1 );<\/code><\/p>\n<p>to<br \/>\n        <code>Tribe__Events__Template_Factory::asset_package('ajax-calendar');<br \/>\n        Tribe__Events__Template_Factory::asset_package('events-css');<\/code><\/p>\n<p>but I still get the warning notice.<\/p>\n<p>Does <code>if (class_exists('TribeEvents')) {<\/code> also need to be changed? Should it be <code>if (class_exists('Tribe__Events__Main')) {<\/code>?<\/p>\n<p>I think many users are using this snippet. The GitHub snippet needs to be updated so it doesn&#8217;t generate a PHP Notice.<\/p>\n<p>Note: I have not switched to a different theme or tested plugins because I know the problem is in this snippet.<\/p>\n","protected":false},"template":"","class_list":["post-1432421","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>Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot; -<\/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\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot; -\" \/>\n<meta property=\"og:description\" content=\"Reference Ticket https:\/\/theeventscalendar.com\/support\/forums\/topic\/deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/ I made an edit to a function in my functions.php file as suggested by the deprecated notice but I am still getting the deprecated notice. PHP Notice: \/wp-content\/plugins\/the-events-calendar\/src\/deprecated\/TribeEvents.php is deprecated since version 3.10! Use Tribe__Events__Main instead. in \/wp-includes\/functions.php on line 3966 The deprecated function is a code snippet provided in the Knowledgebase [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/\" \/>\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\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/\",\"name\":\"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot; -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-01-22T16:48:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot;\"}]},{\"@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":"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot; -","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\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/","og_locale":"en_US","og_type":"article","og_title":"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot; -","og_description":"Reference Ticket https:\/\/theeventscalendar.com\/support\/forums\/topic\/deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/ I made an edit to a function in my functions.php file as suggested by the deprecated notice but I am still getting the deprecated notice. PHP Notice: \/wp-content\/plugins\/the-events-calendar\/src\/deprecated\/TribeEvents.php is deprecated since version 3.10! Use Tribe__Events__Main instead. in \/wp-includes\/functions.php on line 3966 The deprecated function is a code snippet provided in the Knowledgebase [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/","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\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/","name":"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot; -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-01-22T16:48:38+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/reopen-deprecated-php-error-in-latest-update-4-6-7-of-the-events-calendar\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Reopen &quot;Deprecated PHP error in latest update 4.6.7 of The Events Calendar&quot;"}]},{"@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\/1432421","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\/1432421\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1432421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}