{"id":1351147,"date":"2017-09-19T08:59:45","date_gmt":"2017-09-19T15:59:45","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/"},"modified":"2017-09-19T08:59:45","modified_gmt":"2017-09-19T15:59:45","slug":"unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/","title":{"rendered":"Unable to create new events, post or pages when The Events Calendar is activated"},"content":{"rendered":"<p>Hello, we have a problem with your plugin &#8220;The Events Calendar&#8221; in our wordpress multisite, after some plugins, and themes updating we are enable to create a new post, event, or page when &#8220;The Events Calendar&#8221; is activated on the site, it reeturns an 500 error. Below we send the message from our error log.<\/p>\n<p>As I said, it only happens if your plugin is activated (The normal events calendar, not the pro), if not, we can create pages and post as usual. We are unable to locate exactly in what point in the past this error started to happen, so we can&#8217;t go back.<\/p>\n<p>Theme is AVADA last version, and we use plugins like WPML.<\/p>\n<p>Site url: www.morella.net<br \/>\nError Log:<br \/>\n[Tue Sep 19 15:30:59.500749 2017] [proxy_fcgi:error] [pid 28866] [client 83.59.59.189:54568] AH01071: Got error &#8216;PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Tribe__Events__Meta__Save::__construct() must be an instance of WP_Post, null given, called in \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-content\/plugins\/the-events-calendar\/src\/Tribe\/Main.php on line 2951 and defined in \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-content\/plugins\/the-events-calendar\/src\/Tribe\/Meta\/Save.php:33\\nStack trace:\\n#0 \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-content\/plugins\/the-events-calendar\/src\/Tribe\/Main.php(2951): Tribe__Events__Meta__Save-&gt;__construct(0, NULL)\\n#1 \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-includes\/class-wp-hook.php(300): Tribe__Events__Main-&gt;addEventMeta(0, NULL)\\n#2 \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-includes\/class-wp-hook.php(323): WP_Hook-&gt;apply_filters(NULL, Array)\\n#3 \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-includes\/plugin.php(453): WP_Hook-&gt;do_action(Array)\\n#4 \/var\/www\/vhosts\/morella.net\/httpdocs\/wp-includes\/post.php(3505): do_action(&#8216;save_post&#8217;, 0, NULL, false)\\n#5 \/var\/www\/vhosts\/morella.n&#8230;\\n&#8217;, referer: http:\/\/www.morella.net\/wp-admin\/edit.php<\/p>\n","protected":false},"template":"","class_list":["post-1351147","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>Unable to create new events, post or pages when The Events Calendar is activated -<\/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\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unable to create new events, post or pages when The Events Calendar is activated -\" \/>\n<meta property=\"og:description\" content=\"Hello, we have a problem with your plugin &#8220;The Events Calendar&#8221; in our wordpress multisite, after some plugins, and themes updating we are enable to create a new post, event, or page when &#8220;The Events Calendar&#8221; is activated on the site, it reeturns an 500 error. Below we send the message from our error log. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/\" \/>\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\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/\",\"name\":\"Unable to create new events, post or pages when The Events Calendar is activated -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-09-19T15:59:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/#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\":\"Unable to create new events, post or pages when The Events Calendar is activated\"}]},{\"@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":"Unable to create new events, post or pages when The Events Calendar is activated -","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\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/","og_locale":"en_US","og_type":"article","og_title":"Unable to create new events, post or pages when The Events Calendar is activated -","og_description":"Hello, we have a problem with your plugin &#8220;The Events Calendar&#8221; in our wordpress multisite, after some plugins, and themes updating we are enable to create a new post, event, or page when &#8220;The Events Calendar&#8221; is activated on the site, it reeturns an 500 error. Below we send the message from our error log. [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/","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\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/","name":"Unable to create new events, post or pages when The Events Calendar is activated -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-09-19T15:59:45+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/unable-to-create-new-events-post-or-pages-when-the-events-calendar-is-activated\/#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":"Unable to create new events, post or pages when The Events Calendar is activated"}]},{"@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\/1351147","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\/1351147\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1351147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}