{"id":6693579,"date":"2015-10-28T14:12:48","date_gmt":"2015-10-28T14:12:48","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/undefined-index-wpdirauthtos\/"},"modified":"2016-08-30T19:37:24","modified_gmt":"2016-08-30T19:37:24","slug":"undefined-index-wpdirauthtos","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/undefined-index-wpdirauthtos\/","title":{"rendered":"Undefined index: wpDirAuthTOS"},"content":{"rendered":"<p>Hi,<\/p>\n<p>When I try to update user e.g. when changing a password or user role, I get this error:<\/p>\n<p><code>Fatal error: Uncaught exception &#039;ErrorException&#039; with message &#039;Undefined index: wpDirAuthTOS&#039; in C:\\www\\wordpress\\wp-content\\plugins\\wpdirauth\\wpDirAuth.php:1111 Stack trace: #0 C:\\www\\wordpress\\wp-content\\plugins\\wpdirauth\\wpDirAuth.php(1111): exceptions_error_handler(8, &#039;Undefined index...&#039;, &#039;C:\\\\w...&#039;, 1111, Array) #1 [internal function]: wpDirAuth_profileUpdate(45) #2 C:\\www\\wordpress\\wp-includes\\plugin.php(503): call_user_func_array(&#039;wpDirAuth_profi...&#039;, Array) #3 C:\\www\\wordpress\\wp-includes\\user.php(2094): do_action(&#039;profile_update&#039;, 45, Object(stdClass)) #4 C:\\www\\wordpress\\wp-includes\\user.php(2193): wp_insert_user(Array) #5 C:\\www\\wordpress\\wp-admin\\includes\\user.php(176): wp_update_user(Object(stdClass)) #6 C:\\www\\wordpress\\wp-admin\\user-edit.php(159): edit_user(45) #7 {main} thrown in C:\\www\\wordpress\\wp-content\\plugins\\wpdirauth\\wpDirAuth.php on line 1111<\/code><\/p>\n<p>So it looks like &#8216;wpDirAuthTOS&#8217; isn&#8217;t in the post data.<\/p>\n<p>I have &#8216;Terms of Services Agreement&#8217; set to &#8216;no&#8217; in Directory Authentication Options.  <\/p>\n<p>I&#8217;m using wpDirAuth 1.7.9. and WordPress 4.3.1.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wpdirauth\/<\/p>\n","protected":false},"template":"","class_list":["post-6693579","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6693579","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\/6693579\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6693579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}