{"id":1221959,"date":"2017-01-21T16:29:40","date_gmt":"2017-01-22T00:29:40","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/"},"modified":"2017-01-22T21:37:07","modified_gmt":"2017-01-23T05:37:07","slug":"ecp-settings-additional-fields-tab-is-empty-because-of-php-error","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/","title":{"rendered":"ECP settings &quot;additional fields&quot; tab is empty because of PHP error"},"content":{"rendered":"<p>I am able to access all the other settings of Events Calendar Pro, but the Additional Fields tab is blank, because of a 500 error. Here&#8217;s the log output<\/p>\n<pre><code>[22-Jan-2017 00:19:56 UTC] event-tickets\/common -  Log: Initializing Tribe Events on Jan, 22nd at 12:01:56 am\r\n[22-Jan-2017 00:19:57 UTC] PHP Fatal error:  Uncaught Error: [] operator not supported for strings in \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-content\/plugins\/events-calendar-pro\/src\/Tribe\/Custom_Meta.php:138\r\nStack trace:\r\n#0 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-includes\/class-wp-hook.php(298): Tribe__Events__Pro__Custom_Meta::event_meta_options('')\r\n#1 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-includes\/class-wp-hook.php(323): WP_Hook-&gt;apply_filters('', Array)\r\n#2 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-includes\/plugin.php(453): WP_Hook-&gt;do_action(Array)\r\n#3 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-content\/plugins\/event-tickets\/common\/src\/Tribe\/Settings.php(354): do_action('tribe_settings_...')\r\n#4 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-includes\/class-wp-hook.php(298): Tribe__Settings-&gt;generatePage('')\r\n#5 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-includes\/class-wp-hook.php(323): WP_Hook-&gt;apply_filters('', Array)\r\n#6 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-includes\/plugin.php(453): WP_Hook-&gt;do_action(Array)\r\n#7 \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-adm in \/Volumes\/Omega\/Sites\/curtismethod.dev\/wp-content\/plugins\/events-calendar-pro\/src\/Tribe\/Custom_Meta.php on line 138<\/code><\/pre>\n<p>The code that&#8217;s failing seems to be this:<\/p>\n<pre><code>\t\t\/\/ Grab the custom fields and append an extra blank row at the end\r\n\t\t$customFields   = tribe_get_option( 'custom-fields' );\r\n\t\t$customFields[] = array();<\/code><\/pre>\n<p>I wouldn&#8217;t think this is caused by a conflict with any other plugin\/theme, as it&#8217;s a failure of ECP to load and manipulate its own options. Looks like a simple bug&#8230;<\/p>\n","protected":false},"template":"","class_list":["post-1221959","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>ECP settings &quot;additional fields&quot; tab is empty because of 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\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ECP settings &quot;additional fields&quot; tab is empty because of PHP error -\" \/>\n<meta property=\"og:description\" content=\"I am able to access all the other settings of Events Calendar Pro, but the Additional Fields tab is blank, because of a 500 error. Here&#8217;s the log output [22-Jan-2017 00:19:56 UTC] event-tickets\/common - Log: Initializing Tribe Events on Jan, 22nd at 12:01:56 am [22-Jan-2017 00:19:57 UTC] PHP Fatal error: Uncaught Error: [] operator not [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-23T05:37:07+00:00\" \/>\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\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/\",\"name\":\"ECP settings &quot;additional fields&quot; tab is empty because of PHP error -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-01-22T00:29:40+00:00\",\"dateModified\":\"2017-01-23T05:37:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-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\":\"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\":\"ECP settings &quot;additional fields&quot; tab is empty because of 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":"ECP settings &quot;additional fields&quot; tab is empty because of 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\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/","og_locale":"en_US","og_type":"article","og_title":"ECP settings &quot;additional fields&quot; tab is empty because of PHP error -","og_description":"I am able to access all the other settings of Events Calendar Pro, but the Additional Fields tab is blank, because of a 500 error. Here&#8217;s the log output [22-Jan-2017 00:19:56 UTC] event-tickets\/common - Log: Initializing Tribe Events on Jan, 22nd at 12:01:56 am [22-Jan-2017 00:19:57 UTC] PHP Fatal error: Uncaught Error: [] operator not [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/","article_modified_time":"2017-01-23T05:37:07+00:00","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\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/","name":"ECP settings &quot;additional fields&quot; tab is empty because of PHP error -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-01-22T00:29:40+00:00","dateModified":"2017-01-23T05:37:07+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-php-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ecp-settings-additional-fields-tab-is-empty-because-of-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":"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":"ECP settings &quot;additional fields&quot; tab is empty because of 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\/1221959","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1221959\/revisions"}],"predecessor-version":[{"id":1222190,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1221959\/revisions\/1222190"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1221959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}