{"id":9816967,"date":"2017-12-28T10:06:43","date_gmt":"2017-12-28T10:06:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/php-notices-83\/"},"modified":"2017-12-28T10:06:43","modified_gmt":"2017-12-28T10:06:43","slug":"php-notices-83","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/php-notices-83\/","title":{"rendered":"PHP notices"},"content":{"rendered":"<p>Hi @pigeonhut,<\/p>\n<p>I just wanted to let you know that the plugin throws a lot of notices in the admin area. It started upon activating the plugin. These were the ones:<\/p>\n<p>&#8211; Notice when a session already started.<br \/>\n  Fix: wrapping session_start around this:<br \/>\n  if (session_status() == PHP_SESSION_NONE) session_start();<\/p>\n<p>&#8211; Notices of undefined variables in lib\/MessengerBot\/Mod.php for various lines. Example line 14.<br \/>\n  Fix: use isset() to check if variable is set.<\/p>\n<p>&#8211; Various notices of an undefined index in the admin settings page. See screenshot: https:\/\/snag.gy\/lmncUk.jpg<\/p>\n<p>It&#8217;s not a big deal, but for those of us who develop in debug mode, this could be annoying \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-9816967","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9816967","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\/9816967\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9816967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}