{"id":7233142,"date":"2016-04-02T17:46:23","date_gmt":"2016-04-02T17:46:23","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-error-in-indexphp\/"},"modified":"2016-08-31T15:22:44","modified_gmt":"2016-08-31T15:22:44","slug":"php-error-in-indexphp","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-error-in-indexphp\/","title":{"rendered":"php error in index.php"},"content":{"rendered":"<p>There a minor bug in the plugin. It generates a php error when it is not active. This is because $options[&#8216;active&#8217;] is not available. <\/p>\n<p>Line 148 in index.php: <code>if(!$options[&#039;active&#039;]) return;<\/code> gives error: &#8220;Undefined index: active on line 148 in file \/home\/micksp\/www\/WP-bootstrap\/sites\/zsbtest\/wp-content\/plugins\/simple-popup-manager\/index.php&#8221;<\/p>\n<p>My suggestion: change line 148 of index.php into:<br \/>\n<code>if(empty($options[&#039;active&#039;])) return;<\/code><\/p>\n<p>Best regards, Michael<\/p>\n<p>https:\/\/wordpress.org\/plugins\/simple-popup-manager\/<\/p>\n","protected":false},"template":"","class_list":["post-7233142","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/7233142","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\/7233142\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=7233142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}