{"action":"created","issue":{"url":"https://api.github.com/repos/Program-O/Program-O/issues/280","repository_url":"https://api.github.com/repos/Program-O/Program-O","labels_url":"https://api.github.com/repos/Program-O/Program-O/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/Program-O/Program-O/issues/280/comments","events_url":"https://api.github.com/repos/Program-O/Program-O/issues/280/events","html_url":"https://github.com/Program-O/Program-O/issues/280","id":232439483,"number":280,"title":"dev branch find_aiml.php does not show results from aiml_userdefined table?","user":{"login":"rwaters71","id":8212123,"avatar_url":"https://avatars1.githubusercontent.com/u/8212123?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaters71","html_url":"https://github.com/rwaters71","followers_url":"https://api.github.com/users/rwaters71/followers","following_url":"https://api.github.com/users/rwaters71/following{/other_user}","gists_url":"https://api.github.com/users/rwaters71/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaters71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaters71/subscriptions","organizations_url":"https://api.github.com/users/rwaters71/orgs","repos_url":"https://api.github.com/users/rwaters71/repos","events_url":"https://api.github.com/users/rwaters71/events{/privacy}","received_events_url":"https://api.github.com/users/rwaters71/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2017-05-31T02:57:49Z","updated_at":"2017-06-01T15:36:10Z","closed_at":null,"body":"As the title says, seems the dev branch version of find_aiml.php does not return any results from the aiml_userdefined table?\r\n\r\nIt seems to execute the SQL query, finds a result (the result is only in aiml_userdefined table, not aiml), but then never adds it to the conversation array. Seems in that case WinningCategory variable remains undefined.. (at least that's what happens from my limited understanding of the debug logs/code).\r\n\r\nI seem to get these errors in the debug log:\r\n\r\n```\r\n-----------------------\r\n31-05-2017 07:17:57.16189[2][4] - Elapsed time: 0.046 milliseconds\r\n[find_aiml.php][find_userdefined_aiml][1003]\r\nUser defined rows found: '1' \r\n-----------------------\r\n31-05-2017 07:17:57.16193[1][4] - Elapsed time: 0.042 milliseconds\r\n[find_aiml.php][Called outside of function][1042]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1042 \r\n-----------------------\r\n31-05-2017 07:17:57.16204[1][4] - Elapsed time: 0.110 milliseconds\r\n[find_aiml.php][Called outside of function][1051]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1051 \r\n-----------------------\r\n31-05-2017 07:17:57.16211[1][4] - Elapsed time: 0.061 milliseconds\r\n[find_aiml.php][Called outside of function][1052]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1052 \r\n-----------------------\r\n31-05-2017 07:17:57.16216[1][4] - Elapsed time: 0.051 milliseconds\r\n[find_aiml.php][Called outside of function][1053]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1053 \r\n-----------------------\r\n31-05-2017 07:17:57.1622[1][4] - Elapsed time: 0.048 milliseconds\r\n[find_aiml.php][Called outside of function][1055]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1055 \r\n-----------------------\r\n31-05-2017 07:17:57.16225[1][4] - Elapsed time: 0.050 milliseconds\r\n[find_aiml.php][Called outside of function][1059]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1059 \r\n-----------------------\r\n31-05-2017 07:17:57.1623[1][4] - Elapsed time: 0.048 milliseconds\r\n[find_aiml.php][Called outside of function][1059]\r\nPHP ERROR [Notice] -Undefined variable: WinningCategory in /chatbot/core/aiml/find_aiml.php on Line 1059 \r\n-----------------------\r\n```\r\n.. and then further down, there is no response, it pushes '' to the arrays\r\n\r\nPushing '' to the front of the [that_raw] array \r\nPushing '' to the front of the [that] array \r\nPushing '' to the front of the [parsed_template] array \r\nPushing '' to the front of the [template] array \r\n\r\n.. and nothing gets output:\r\n\r\n\r\n```\r\n-----------------------\r\n31-05-2017 07:17:57.16433[2][4] - Elapsed time: 0.027 milliseconds\r\n[display_conversation.php][get_json][137]\r\nOutputting response as JSON \r\n-----------------------\r\n31-05-2017 07:17:57.16436[1][4] - Elapsed time: 0.035 milliseconds\r\n[display_conversation.php][Called outside of function][146]\r\nPHP ERROR [Notice] -Undefined index: data in /chatbot/core/conversation/display_conversation.php on Line 146 \r\n-----------------------\r\n31-05-2017 07:17:57.16445[4][4] - Elapsed time: 0.091 milliseconds\r\n[display_conversation.php][get_json][151]\r\nReturning JSON string: {\"convo_id\":\".....\",\"usersay\":\"Who likes MadDoc?\",\"botsay\":\"\",\"data\":null} \r\n-----------------------\r\n```"},"comment":{"url":"https://api.github.com/repos/Program-O/Program-O/issues/comments/305531915","html_url":"https://github.com/Program-O/Program-O/issues/280#issuecomment-305531915","issue_url":"https://api.github.com/repos/Program-O/Program-O/issues/280","id":305531915,"user":{"login":"rwaters71","id":8212123,"avatar_url":"https://avatars1.githubusercontent.com/u/8212123?v=3","gravatar_id":"","url":"https://api.github.com/users/rwaters71","html_url":"https://github.com/rwaters71","followers_url":"https://api.github.com/users/rwaters71/followers","following_url":"https://api.github.com/users/rwaters71/following{/other_user}","gists_url":"https://api.github.com/users/rwaters71/gists{/gist_id}","starred_url":"https://api.github.com/users/rwaters71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwaters71/subscriptions","organizations_url":"https://api.github.com/users/rwaters71/orgs","repos_url":"https://api.github.com/users/rwaters71/repos","events_url":"https://api.github.com/users/rwaters71/events{/privacy}","received_events_url":"https://api.github.com/users/rwaters71/received_events","type":"User","site_admin":false},"created_at":"2017-06-01T15:36:10Z","updated_at":"2017-06-01T15:36:10Z","body":"@patrickschur I just emailed you with the web address and the debug folder info."}}
{"actor":{"display_login":"rwaters71"}}