28-10-2025 16:09:15.97882[0][4] - Elapsed time: 0.666 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              LiteSpeed
  PHP Version:                  7.4.33
  OS:                           Linux
  OS Version:                   #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
28-10-2025 16:09:15.97910[4][4] - Elapsed time: 0.277 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
28-10-2025 16:09:15.97932[4][4] - Elapsed time: 0.220 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
28-10-2025 16:09:15.97942[4][4] - Elapsed time: 0.103 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
28-10-2025 16:09:15.97983[4][4] - Elapsed time: 0.406 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
28-10-2025 16:09:15.97984[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
28-10-2025 16:09:15.97994[1][4] - Elapsed time: 0.104 milliseconds
[conversation_start.php][Called outside of function][118]
PHP ERROR [Warning] -session_id(): Cannot change session id when session is active in /home/siew8359/public_html/dannus.siega23.com/Program-O/chatbot/conversation_start.php on Line 118 
-----------------------
28-10-2025 16:09:15.98022[0][4] - Elapsed time: 0.273 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 6282fd0f42d9ef96f0387dc416d6c839 
-----------------------
28-10-2025 16:09:15.98023[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'halo'. 
-----------------------
28-10-2025 16:09:15.98024[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
28-10-2025 16:09:15.98025[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
28-10-2025 16:09:15.98026[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
28-10-2025 16:09:15.98043[4][4] - Elapsed time: 0.177 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value:  
-----------------------
28-10-2025 16:09:15.98044[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
28-10-2025 16:09:15.98045[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
28-10-2025 16:09:15.98065[2][4] - Elapsed time: 0.198 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
28-10-2025 16:09:15.98066[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
28-10-2025 16:09:15.98084[3][4] - Elapsed time: 0.177 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `siew8359_dannu`.`client_properties` WHERE `user_id` = 1 AND `bot_id` = 1; 
-----------------------
28-10-2025 16:09:15.98102[2][4] - Elapsed time: 0.182 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
28-10-2025 16:09:15.98103[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on halo. 
-----------------------
28-10-2025 16:09:15.98104[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
28-10-2025 16:09:15.98133[4][4] - Elapsed time: 0.289 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
28-10-2025 16:09:15.98135[4][4] - Elapsed time: 0.018 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
28-10-2025 16:09:15.98135[2][4] - Elapsed time: 0.007 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: 6282fd0f42d9ef96f0387dc416d6c839
Bot id: 1
Format:  
-----------------------
28-10-2025 16:09:15.98136[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
28-10-2025 16:09:15.98137[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
28-10-2025 16:09:15.98137[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 1 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
28-10-2025 16:09:15.98155[1][4] - Elapsed time: 0.175 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => halo
)
 
-----------------------
28-10-2025 16:09:15.98156[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
28-10-2025 16:09:15.98156[1][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => No AIML category found. This is a Default Response.
)
 
-----------------------
28-10-2025 16:09:15.98158[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 16:09:15.98158[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => No AIML category found
    [1] =>  This is a Default Response
    [2] => 
)

 
-----------------------
28-10-2025 16:09:15.98159[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 16:09:15.98159[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'No AIML category found This is a Default Response ' 
-----------------------
28-10-2025 16:09:15.98160[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'No AIML category found This is a Default Response ' 
-----------------------
28-10-2025 16:09:15.98161[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'No AIML category found This is a Default Response ' 
-----------------------
28-10-2025 16:09:15.98162[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' 
-----------------------
28-10-2025 16:09:15.98162[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' 
-----------------------
28-10-2025 16:09:15.98163[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' to the front of the [that] array 
-----------------------
28-10-2025 16:09:15.98164[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
28-10-2025 16:09:15.98165[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' 
-----------------------
28-10-2025 16:09:15.98166[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' 
-----------------------
28-10-2025 16:09:15.98167[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' 
-----------------------
28-10-2025 16:09:15.98167[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' 
-----------------------
28-10-2025 16:09:15.98168[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
28-10-2025 16:09:15.98169[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 16:09:15.98170[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
28-10-2025 16:09:15.98170[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 16:09:15.98171[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
28-10-2025 16:09:15.98171[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
28-10-2025 16:09:15.98172[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
28-10-2025 16:09:15.98172[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
28-10-2025 16:09:15.98173[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
28-10-2025 16:09:15.98173[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
28-10-2025 16:09:15.98174[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
28-10-2025 16:09:15.98200[2][4] - Elapsed time: 0.259 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
28-10-2025 16:09:15.98201[3][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
28-10-2025 16:09:15.98219[4][4] - Elapsed time: 0.176 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
28-10-2025 16:09:15.98220[0][4] - Elapsed time: 0.014 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
28-10-2025 16:09:15.98221[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
28-10-2025 16:09:15.98221[0][4] - Elapsed time: 0.006 milliseconds 
[conversation_start.php][Called outside of function][235]
Say = HALO: raw say = halo 
-----------------------
28-10-2025 16:09:15.98222[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
28-10-2025 16:09:15.98222[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [user_say] array 
-----------------------
28-10-2025 16:09:15.98223[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
28-10-2025 16:09:15.98224[0][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = halo, RAW say = halo 
-----------------------
28-10-2025 16:09:15.98225[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'halo' to the front of the [input] array 
-----------------------
28-10-2025 16:09:15.98226[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
28-10-2025 16:09:15.98226[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
28-10-2025 16:09:15.98227[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
28-10-2025 16:09:15.98229[4][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
28-10-2025 16:09:15.98246[4][4] - Elapsed time: 0.179 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
28-10-2025 16:09:15.98248[3][4] - Elapsed time: 0.018 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_dannu`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = ''
    AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
28-10-2025 16:09:15.98267[2][4] - Elapsed time: 0.187 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
28-10-2025 16:09:15.98268[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
28-10-2025 16:09:15.98268[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
28-10-2025 16:09:15.98286[4][4] - Elapsed time: 0.176 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
28-10-2025 16:09:15.98288[3][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_dannu`.`aiml` WHERE
    bot_id = 1 AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
28-10-2025 16:09:15.98312[3][4] - Elapsed time: 0.244 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
28-10-2025 16:09:15.98313[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (4) potential AIML matches 
-----------------------
28-10-2025 16:09:15.98331[1][4] - Elapsed time: 0.177 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE 
-----------------------
28-10-2025 16:09:15.98332[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 4 rows to unset bad matches 
-----------------------
28-10-2025 16:09:15.98332[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HALO' 
-----------------------
28-10-2025 16:09:15.98344[4][4] - Elapsed time: 0.120 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
28-10-2025 16:09:15.98345[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
28-10-2025 16:09:15.98364[4][4] - Elapsed time: 0.184 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 23
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => admin_added.aiml
            [template] => Halo juga, aku Pedro Salto
            [score] => 260
            [current_that] => no aiml category found this is a default response
            [aiml_id] => 23
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)
 
-----------------------
28-10-2025 16:09:15.98365[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 23
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => admin_added.aiml
            [template] => Halo juga, aku Pedro Salto
            [score] => 260
            [current_that] => no aiml category found this is a default response
            [aiml_id] => 23
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)

 
-----------------------
28-10-2025 16:09:15.98378[4][4] - Elapsed time: 0.125 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 23
    [bot_id] => 1
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [filename] => admin_added.aiml
    [template] => Halo juga, aku Pedro Salto
    [score] => 260
    [current_that] => no aiml category found this is a default response
    [aiml_id] => 23
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
)
 
-----------------------
28-10-2025 16:09:15.98378[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
28-10-2025 16:09:15.98380[4][4] - Elapsed time: 0.020 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:23 (HALO) 
-----------------------
28-10-2025 16:09:15.98381[3][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
28-10-2025 16:09:15.98382[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
28-10-2025 16:09:15.98382[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
28-10-2025 16:09:15.98383[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
28-10-2025 16:09:15.98384[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 23
    [category_id] => 23
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HALO
    [score] => 260
    [stars] => Array
        (
        )

    [template] => Halo juga, aku Pedro Salto
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

    [topic] => 
    [topic_stars] => Array
        (
        )

    [user_raw] => halo
)
 
-----------------------
28-10-2025 16:09:15.98385[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
28-10-2025 16:09:15.98386[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
28-10-2025 16:09:15.98387[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><text>Halo juga, aku Pedro Salto</text></template> 
-----------------------
28-10-2025 16:09:15.98391[2][4] - Elapsed time: 0.043 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 16:09:15.98393[4][4] - Elapsed time: 0.022 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><text>Halo juga, aku Pedro Salto</text></template>
 
-----------------------
28-10-2025 16:09:15.98394[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
28-10-2025 16:09:15.98395[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 16:09:15.98396[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>Halo juga, aku Pedro Salto</text> 
-----------------------
28-10-2025 16:09:15.98397[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
28-10-2025 16:09:15.98397[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
28-10-2025 16:09:15.98398[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
28-10-2025 16:09:15.98398[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo juga, aku Pedro Salto' to the response array. tag name is text 
-----------------------
28-10-2025 16:09:15.98399[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 16:09:15.98399[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo juga, aku Pedro Salto
)

 
-----------------------
28-10-2025 16:09:15.98400[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 16:09:15.98401[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo juga, aku Pedro Salto' 
-----------------------
28-10-2025 16:09:15.98401[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo juga, aku Pedro Salto' to the response array. tag name is template. 
-----------------------
28-10-2025 16:09:15.98402[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 16:09:15.98403[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo juga, aku Pedro Salto
)

 
-----------------------
28-10-2025 16:09:15.98403[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 16:09:15.98404[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo juga, aku Pedro Salto' 
-----------------------
28-10-2025 16:09:15.98404[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Halo juga, aku Pedro Salto 
-----------------------
28-10-2025 16:09:15.98405[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
28-10-2025 16:09:15.98406[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
28-10-2025 16:09:15.98406[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo juga, aku Pedro Salto' to the front of the [that_raw] array 
-----------------------
28-10-2025 16:09:15.98407[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
28-10-2025 16:09:15.98409[2][4] - Elapsed time: 0.018 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo juga, aku Pedro Salto' to the front of the [that] array 
-----------------------
28-10-2025 16:09:15.98410[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo juga, aku Pedro Salto' 
-----------------------
28-10-2025 16:09:15.98410[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo juga, aku Pedro Salto' 
-----------------------
28-10-2025 16:09:15.98411[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO JUGA AKU PEDRO SALTO' 
-----------------------
28-10-2025 16:09:15.98412[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO JUGA AKU PEDRO SALTO' 
-----------------------
28-10-2025 16:09:15.98413[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo juga, aku Pedro Salto' to the front of the [parsed_template] array 
-----------------------
28-10-2025 16:09:15.98413[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
28-10-2025 16:09:15.98414[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo juga, aku Pedro Salto' to the front of the [template] array 
-----------------------
28-10-2025 16:09:15.98415[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
28-10-2025 16:09:15.98416[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
28-10-2025 16:09:15.98417[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_dannu`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'halo',
      'Halo juga, aku Pedro Salto',
      1,
      '',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
28-10-2025 16:09:15.98498[4][4] - Elapsed time: 0.813 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
28-10-2025 16:09:15.98514[3][4] - Elapsed time: 0.157 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_dannu`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
28-10-2025 16:09:15.98533[2][4] - Elapsed time: 0.192 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
28-10-2025 16:09:15.98534[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
28-10-2025 16:09:15.98535[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
28-10-2025 16:09:15.98536[4][4] - Elapsed time: 0.014 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"","usersay":"halo","botsay":"Halo juga, aku Pedro Salto","botData":{"convo_id":"","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"1","totallines":1,"rawSay":"halo","conversation_lines":"1","remember_up_to":"10","debugemail":"imanueldannu910@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"23","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"admin_added.aiml","template":"Halo juga, aku Pedro Salto","score":260,"current_that":"no aiml category found this is a default response","aiml_id":"23","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}} 
-----------------------
28-10-2025 16:09:15.98554[2][4] - Elapsed time: 0.174 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
28-10-2025 16:09:15.98555[0][4] - Elapsed time: 0.017 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 7.388 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => halo
    [conversation] => Array
        (
            [convo_id] => 
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 1
            [totallines] => 1
            [rawSay] => halo
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => imanueldannu910@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 23
                    [bot_id] => 1
                    [pattern] => HALO
                    [thatpattern] => 
                    [topic] => 
                    [filename] => admin_added.aiml
                    [template] => Halo juga, aku Pedro Salto
                    [score] => 260
                    [current_that] => no aiml category found this is a default response
                    [aiml_id] => 23
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => halo
            [lookingfor] => HALO
            [category_id] => 23
            [pattern] => HALO
            [thatpattern] => 
            [template] => Halo juga, aku Pedro Salto
            [html_template] => 
            [topic] => 
            [score] => 260
            [aiml_id] => 23
            [stars] => Array
                (
                )

            [that_stars] => Array
                (
                    [1] => 
                )

            [topic_stars] => Array
                (
                )

            [parsed_template] => Halo juga, aku Pedro Salto
        )

    [client_properties] => Array
        (
            [ip_address] => 160.191.171.42
            [name] => Seeker
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => No AIML category found
                    [1] =>  This is a Default Response
                    [2] => 
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => HALO JUGA AKU PEDRO SALTO
                )

            [2] => Array
                (
                    [1] => NO AIML CATEGORY FOUND THIS IS A DEFAULT RESPONSE
                )

            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
            [12] => 
        )

    [input] => Array
        (
            [1] => halo
            [2] => HALO
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1761642555.9782
    [user_say] => Array
        (
            [1] => HALO
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Halo juga, aku Pedro Salto
                )

            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
            [12] => 
        )

    [parsed_template] => Array
        (
            [1] => Halo juga, aku Pedro Salto
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => Halo juga, aku Pedro Salto
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"","usersay":"halo","botsay":"Halo juga, aku Pedro Salto","botData":{"convo_id":"","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"1","totallines":1,"rawSay":"halo","conversation_lines":"1","remember_up_to":"10","debugemail":"imanueldannu910@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"23","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"admin_added.aiml","template":"Halo juga, aku Pedro Salto","score":260,"current_that":"no aiml category found this is a default response","aiml_id":"23","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}}
)

-----------------------
Total execution time: 7.388 Milliseconds. Goodbye.