10-11-2025 14:34:32.45946[0][4] - Elapsed time: 0.698 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 
-----------------------
10-11-2025 14:34:32.45966[4][4] - Elapsed time: 0.200 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 14:34:32.45982[4][4] - Elapsed time: 0.157 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 14:34:32.45990[4][4] - Elapsed time: 0.081 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 14:34:32.46018[4][4] - Elapsed time: 0.275 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 14:34:32.46019[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 14:34:32.46030[0][4] - Elapsed time: 0.114 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 04a8ff4396f727d05a88c48b730f9b0e 
-----------------------
10-11-2025 14:34:32.46031[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'siapa nama saya'. 
-----------------------
10-11-2025 14:34:32.46032[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 14:34:32.46033[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 14:34:32.46034[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; 
-----------------------
10-11-2025 14:34:32.46052[1][4] - Elapsed time: 0.186 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 04a8ff4396f727d05a88c48b730f9b0e 
-----------------------
10-11-2025 14:34:32.46054[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 14:34:32.46054[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; 
-----------------------
10-11-2025 14:34:32.46076[2][4] - Elapsed time: 0.215 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 14:34:32.46077[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 14:34:32.46097[2][4] - Elapsed time: 0.199 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 14:34:32.46119[3][4] - Elapsed time: 0.218 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #77 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '04a8ff4396f727d05a88c48b730f9b0e'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 14:34:32.46136[3][4] - Elapsed time: 0.175 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` = 77 AND `bot_id` = 1; 
-----------------------
10-11-2025 14:34:32.46158[2][4] - Elapsed time: 0.220 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 14:34:32.46159[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on siapa. 
-----------------------
10-11-2025 14:34:32.46160[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 14:34:32.46189[2][4] - Elapsed time: 0.292 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 14:34:32.46191[2][4] - Elapsed time: 0.016 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on nama. 
-----------------------
10-11-2025 14:34:32.46193[2][4] - Elapsed time: 0.017 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 14:34:32.46194[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on saya. 
-----------------------
10-11-2025 14:34:32.46196[4][4] - Elapsed time: 0.019 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'siapa nama saya' 
-----------------------
10-11-2025 14:34:32.46198[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 14:34:32.46198[2][4] - Elapsed time: 0.008 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: SIAPA NAMA SAYA
Convo id: 04a8ff4396f727d05a88c48b730f9b0e
Bot id: 1
Format:  
-----------------------
10-11-2025 14:34:32.46199[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 14:34:32.46200[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 14:34:32.46201[3][4] - Elapsed time: 0.010 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` = 77 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 14:34:32.46266[4][4] - Elapsed time: 0.652 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 14:34:32.46289[2][4] - Elapsed time: 0.231 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 14:34:32.46290[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
10-11-2025 14:34:32.46309[4][4] - Elapsed time: 0.187 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 14:34:32.46310[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 14:34:32.46311[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 14:34:32.46311[0][4] - Elapsed time: 0.006 milliseconds 
[conversation_start.php][Called outside of function][235]
Say = SIAPA NAMA SAYA: raw say = siapa nama saya 
-----------------------
10-11-2025 14:34:32.46312[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 14:34:32.46313[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'SIAPA NAMA SAYA' to the front of the [user_say] array 
-----------------------
10-11-2025 14:34:32.46314[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 14:34:32.46315[0][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = siapa nama saya, RAW say = siapa nama saya 
-----------------------
10-11-2025 14:34:32.46316[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'siapa nama saya' to the front of the [input] array 
-----------------------
10-11-2025 14:34:32.46316[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 14:34:32.46317[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 14:34:32.46318[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 14:34:32.46319[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 14:34:32.46319[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 14:34:32.46341[4][4] - Elapsed time: 0.223 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 14:34:32.46343[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` = '04a8ff4396f727d05a88c48b730f9b0e'
    AND (
        'SIAPA NAMA SAYA' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 14:34:32.46362[2][4] - Elapsed time: 0.189 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 14:34:32.46363[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 14:34:32.46364[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 14:34:32.46386[4][4] - Elapsed time: 0.222 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 14:34:32.46388[3][4] - Elapsed time: 0.016 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 (
        'SIAPA NAMA SAYA' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 14:34:32.46419[3][4] - Elapsed time: 0.314 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 14:34:32.46420[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
10-11-2025 14:34:32.46443[4][4] - Elapsed time: 0.229 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
10-11-2025 14:34:32.46444[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 14:34:32.46452[4][4] - Elapsed time: 0.083 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 14:34:32.46453[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 14:34:32.46477[4][4] - Elapsed time: 0.239 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 481
            [bot_id] => 1
            [pattern] => SIAPA NAMA SAYA
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>
            [score] => 264
            [current_that] => 
            [aiml_id] => 481
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: siapa (2 points), direct word match: nama (2 points), direct word match: saya (2 points)
        )

    [1] => Array
        (
            [id] => 616
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <random>
        <li>Maaf, saya kurang memahami pertanyaan Anda. Bisakah Anda mengatakannya dengan cara lain?</li>
        <li>Hmm, saya belum mengerti maksud Anda. Bisa dijelaskan lebih detail?</li>
        <li>Maaf, saya masih belajar. Bisakah Anda bertanya dengan kalimat yang berbeda?</li>
        <li>Saya belum dapat memproses itu. Coba tanyakan hal lain atau gunakan kata-kata yang lebih sederhana.</li>
      </random>
            [score] => 252
            [current_that] => 
            [aiml_id] => 616
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
10-11-2025 14:34:32.46478[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 481
            [bot_id] => 1
            [pattern] => SIAPA NAMA SAYA
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>
            [score] => 264
            [current_that] => 
            [aiml_id] => 481
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: siapa (2 points), direct word match: nama (2 points), direct word match: saya (2 points)
        )

)

 
-----------------------
10-11-2025 14:34:32.46492[4][4] - Elapsed time: 0.138 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 481
    [bot_id] => 1
    [pattern] => SIAPA NAMA SAYA
    [thatpattern] => 
    [topic] => 
    [filename] => chatbot.aiml
    [template] => <condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>
    [score] => 264
    [current_that] => 
    [aiml_id] => 481
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: siapa (2 points), direct word match: nama (2 points), direct word match: saya (2 points)
)
 
-----------------------
10-11-2025 14:34:32.46493[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 14:34:32.46494[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:481 (SIAPA NAMA SAYA) 
-----------------------
10-11-2025 14:34:32.46495[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
10-11-2025 14:34:32.46496[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 14:34:32.46496[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 14:34:32.46497[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 14:34:32.46498[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 481
    [category_id] => 481
    [html_template] => 
    [lookingfor] => SIAPA NAMA SAYA
    [pattern] => SIAPA NAMA SAYA
    [score] => 264
    [stars] => Array
        (
        )

    [template] => <condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => siapa nama saya
)
 
-----------------------
10-11-2025 14:34:32.46499[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
10-11-2025 14:34:32.46499[2][4] - Elapsed time: 0.008 milliseconds 
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 14:34:32.46501[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><condition name="nama"><li value="undefined"><text>Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</text></li><li><text>Nama Anda adalah </text><get name="nama"/><text>.</text></li></condition></template> 
-----------------------
10-11-2025 14:34:32.46507[2][4] - Elapsed time: 0.058 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 14:34:32.46510[4][4] - Elapsed time: 0.035 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><condition name="nama"><li value="undefined"><text>Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</text></li><li><text>Nama Anda adalah </text><get name="nama"/><text>.</text></li></condition></template>
 
-----------------------
10-11-2025 14:34:32.46511[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. 
-----------------------
10-11-2025 14:34:32.46512[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 14:34:32.46514[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element condition at level 1. element XML = <condition name="nama"><li value="undefined"><text>Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</text></li><li><text>Nama Anda adalah </text><get name="nama"/><text>.</text></li></condition> 
-----------------------
10-11-2025 14:34:32.46514[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_condition_tag does exist. Processing now. 
-----------------------
10-11-2025 14:34:32.46515[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element condition to the parse_condition_tag function 
-----------------------
10-11-2025 14:34:32.46516[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][809]
Parsing a CONDITION tag. 
-----------------------
10-11-2025 14:34:32.46517[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][818]
Element attributes:Array
(
    [name] => nama
)
 
-----------------------
10-11-2025 14:34:32.46517[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][820]
Element attribute count = 1 
-----------------------
10-11-2025 14:34:32.46518[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][951]
Parsing a CONDITION tag with only the NAME attribute 
-----------------------
10-11-2025 14:34:32.46519[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][964]
Looking for test value 'undefined' 
-----------------------
10-11-2025 14:34:32.46519[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][967]
search string = li[@value]|li[not(@*)] 
-----------------------
10-11-2025 14:34:32.46528[4][4] - Elapsed time: 0.080 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][970]
element = SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [name] => nama
        )

    [li] => Array
        (
            [0] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [value] => undefined
                        )

                    [text] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
                )

            [1] => SimpleXMLElement Object
                (
                    [text] => Array
                        (
                            [0] => Nama Anda adalah 
                            [1] => .
                        )

                    [get] => SimpleXMLElement Object
                        (
                            [@attributes] => Array
                                (
                                    [name] => nama
                                )

                        )

                )

        )

)
 
-----------------------
10-11-2025 14:34:32.46529[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][971]
Choices = Array
(
    [0] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => undefined
                )

            [text] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
        )

    [1] => SimpleXMLElement Object
        (
            [text] => Array
                (
                    [0] => Nama Anda adalah 
                    [1] => .
                )

            [get] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [name] => nama
                        )

                )

        )

)
 
-----------------------
10-11-2025 14:34:32.46531[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][976]
parent XML = <condition name="nama"><li value="undefined"><text>Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</text></li><li><text>Nama Anda adalah </text><get name="nama"/><text>.</text></li></condition> 
-----------------------
10-11-2025 14:34:32.46531[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][980]
Current pick = SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [value] => undefined
        )

    [text] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
)
 
-----------------------
10-11-2025 14:34:32.46532[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][983]
Current pick attributes = SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [value] => undefined
        )

)
 
-----------------------
10-11-2025 14:34:32.46533[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][986]
Pick Value = 'undefined' 
-----------------------
10-11-2025 14:34:32.46533[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][987]
Checking to see if undefined (Client Property) matches undefined (condition value). 
-----------------------
10-11-2025 14:34:32.46537[4][4] - Elapsed time: 0.036 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][991]
Pick XML = <li value="undefined"><text>Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</text></li> 
-----------------------
10-11-2025 14:34:32.46538[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][995]
Found a match. Pick = SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [value] => undefined
        )

    [text] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
)
 
-----------------------
10-11-2025 14:34:32.46539[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 14:34:32.46540[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</text> 
-----------------------
10-11-2025 14:34:32.46540[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 14:34:32.46541[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 14:34:32.46541[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 14:34:32.46542[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' to the response array. tag name is text 
-----------------------
10-11-2025 14:34:32.46543[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][1023]
Response = Array
(
    [0] => Array
        (
            [0] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
        )

)
 
-----------------------
10-11-2025 14:34:32.46543[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 14:34:32.46544[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
        )

)

 
-----------------------
10-11-2025 14:34:32.46545[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 14:34:32.46545[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 14:34:32.46546[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
)

 
-----------------------
10-11-2025 14:34:32.46546[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 14:34:32.46547[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' 
-----------------------
10-11-2025 14:34:32.46547[4][4] - Elapsed time: 0.007 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' to the response array. tag name is condition 
-----------------------
10-11-2025 14:34:32.46548[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 14:34:32.46549[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
)

 
-----------------------
10-11-2025 14:34:32.46549[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 14:34:32.46550[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' 
-----------------------
10-11-2025 14:34:32.46550[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' to the response array. tag name is template. 
-----------------------
10-11-2025 14:34:32.46551[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 14:34:32.46552[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
)

 
-----------------------
10-11-2025 14:34:32.46552[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 14:34:32.46553[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' 
-----------------------
10-11-2025 14:34:32.46553[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: Maaf, saya belum mengetahui nama Anda. Boleh saya tahu? 
-----------------------
10-11-2025 14:34:32.46554[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 14:34:32.46555[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 14:34:32.46555[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' to the front of the [that_raw] array 
-----------------------
10-11-2025 14:34:32.46556[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 14:34:32.46558[2][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' to the front of the [that] array 
-----------------------
10-11-2025 14:34:32.46559[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 14:34:32.46560[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Maaf, saya belum mengetahui nama Anda.' 
-----------------------
10-11-2025 14:34:32.46561[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Maaf, saya belum mengetahui nama Anda.' 
-----------------------
10-11-2025 14:34:32.46562[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF SAYA BELUM MENGETAHUI NAMA ANDA' 
-----------------------
10-11-2025 14:34:32.46563[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF SAYA BELUM MENGETAHUI NAMA ANDA' 
-----------------------
10-11-2025 14:34:32.46563[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Boleh saya tahu?' 
-----------------------
10-11-2025 14:34:32.46564[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Boleh saya tahu?' 
-----------------------
10-11-2025 14:34:32.46565[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BOLEH SAYA TAHU' 
-----------------------
10-11-2025 14:34:32.46565[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'BOLEH SAYA TAHU' 
-----------------------
10-11-2025 14:34:32.46566[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?' to the front of the [parsed_template] array 
-----------------------
10-11-2025 14:34:32.46567[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 14:34:32.46568[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>' to the front of the [template] array 
-----------------------
10-11-2025 14:34:32.46568[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 14:34:32.46569[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 14:34:32.46570[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 ,
      'siapa nama saya',
      'Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?',
      77,
      '04a8ff4396f727d05a88c48b730f9b0e',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 14:34:32.46707[4][4] - Elapsed time: 1.368 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 14:34:32.46725[3][4] - Elapsed time: 0.181 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 
-----------------------
10-11-2025 14:34:32.46747[2][4] - Elapsed time: 0.217 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 14:34:32.46748[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 14:34:32.46748[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 14:34:32.46750[4][4] - Elapsed time: 0.014 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"04a8ff4396f727d05a88c48b730f9b0e","usersay":"siapa nama saya","botsay":"Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?","botData":{"convo_id":"04a8ff4396f727d05a88c48b730f9b0e","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"77","totallines":1,"user_name":"Seeker","rawSay":"siapa nama saya","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":"481","bot_id":"1","pattern":"SIAPA NAMA SAYA","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<condition name=\"nama\">\n        <li value=\"undefined\">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?<\/li>\n        <li>Nama Anda adalah <get name=\"nama\"\/>.<\/li>\n      <\/condition>","score":264,"current_that":"","aiml_id":"481","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: siapa (2 points), direct word match: nama (2 points), direct word match: saya (2 points)"}}} 
-----------------------
10-11-2025 14:34:32.46769[2][4] - Elapsed time: 0.191 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 14:34:32.46771[0][4] - Elapsed time: 0.020 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 8.932 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => siapa nama saya
    [conversation] => Array
        (
            [convo_id] => 04a8ff4396f727d05a88c48b730f9b0e
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 77
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => siapa nama saya
            [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] => 481
                    [bot_id] => 1
                    [pattern] => SIAPA NAMA SAYA
                    [thatpattern] => 
                    [topic] => 
                    [filename] => chatbot.aiml
                    [template] => <condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>
                    [score] => 264
                    [current_that] => 
                    [aiml_id] => 481
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: siapa (2 points), direct word match: nama (2 points), direct word match: saya (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => siapa nama saya
            [lookingfor] => SIAPA NAMA SAYA
            [category_id] => 481
            [pattern] => SIAPA NAMA SAYA
            [thatpattern] => 
            [template] => <condition name="nama">
        <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li>
        <li>Nama Anda adalah <get name="nama"/>.</li>
      </condition>
            [html_template] => 
            [topic] => 
            [score] => 264
            [aiml_id] => 481
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
        )

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

    [time_start] => 1762760072.4588
    [user_say] => Array
        (
            [1] => SIAPA NAMA SAYA
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [input] => Array
        (
            [1] => siapa nama saya
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Boleh saya tahu?
                    [3] => Maaf, saya belum mengetahui nama Anda.
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => BOLEH SAYA TAHU
                    [2] => MAAF SAYA BELUM MENGETAHUI NAMA ANDA
                )

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

    [parsed_template] => Array
        (
            [1] => Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <condition name="nama"> <li value="undefined">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?</li> <li>Nama Anda adalah <get name="nama"/>.</li> </condition>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"04a8ff4396f727d05a88c48b730f9b0e","usersay":"siapa nama saya","botsay":"Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?","botData":{"convo_id":"04a8ff4396f727d05a88c48b730f9b0e","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"77","totallines":1,"user_name":"Seeker","rawSay":"siapa nama saya","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":"481","bot_id":"1","pattern":"SIAPA NAMA SAYA","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<condition name=\"nama\">\n        <li value=\"undefined\">Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?<\/li>\n        <li>Nama Anda adalah <get name=\"nama\"\/>.<\/li>\n      <\/condition>","score":264,"current_that":"","aiml_id":"481","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: siapa (2 points), direct word match: nama (2 points), direct word match: saya (2 points)"}}}
)

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