{"id":4727048,"date":"2014-03-20T18:17:31","date_gmt":"2014-03-20T18:17:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/debug-errors-6\/"},"modified":"2016-08-21T17:29:24","modified_gmt":"2016-08-21T17:29:24","slug":"debug-errors-6","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/debug-errors-6\/","title":{"rendered":"Debug errors"},"content":{"rendered":"<p>I, as a WP Developer, [with WP_DEBUG true] activated the plugin and the first notice appeared:<\/p>\n<blockquote>\n<p>Notice: Constant PLUGINDIR already defined in &#8230;\\wp-content\\plugins\\pricing-table<strong>\\pricing-table.php on line 22<\/strong><\/p>\n<\/blockquote>\n<p>I clicked on the &#8220;Pricing Table&#8221; post type collection, notice appeared:<\/p>\n<blockquote>\n<p>Notice: Trying to get property of non-object in &#8230;\\wp-content\\plugins\\pricing-table<strong>\\pricing-table.php on line 154<\/strong><\/p>\n<\/blockquote>\n<p>I clicked on the &#8220;Add New&#8221; sub menu, notice appeared:<\/p>\n<blockquote>\n<p>Notice: Undefined index: features in &#8230;\\wp-content\\plugins\\pricing-table<strong>\\modules\\metabox.php on line 40<\/strong><\/p>\n<\/blockquote>\n<p>and<\/p>\n<blockquote>\n<p>Notice: Undefined index: features in &#8230;\\wp-content\\plugins\\pricing-table<strong>\\modules\\metabox.php on line 42<\/strong><\/p>\n<\/blockquote>\n<p>In new post addition page, in Packages\/Features metabox:<\/p>\n<blockquote>\n<p>Notice: Uninitialized string offset: 0 in &#8230;\\wp-content\\plugins\\pricing-table<strong>\\tpls\\metabox-feature-options.php on line 94<\/strong><\/p>\n<\/blockquote>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>I din&#8217;t find any usage of the constant <code>PLUGINDIR<\/code> in your plugin, and I think it&#8217;s conflicting with any other built-in constant of WordPress.<\/p>\n<p>And as you are running a premium version of the plugin, you may need to concern about it. Thank you.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/pricing-table\/<\/p>\n","protected":false},"template":"","class_list":["post-4727048","topic","type-topic","status-closed","hentry","topic-tag-debug-errors"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4727048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4727048\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4727048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}