10-11-2025 15:54:21.65086[0][4] - Elapsed time: 4.985 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 15:54:21.65114[4][4] - Elapsed time: 0.278 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 15:54:21.65135[4][4] - Elapsed time: 0.215 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 15:54:21.65145[4][4] - Elapsed time: 0.097 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 15:54:21.65183[4][4] - Elapsed time: 0.382 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 15:54:21.65184[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 15:54:21.65199[0][4] - Elapsed time: 0.151 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 0f03665c1d1e22bb114d0c6e4168fd0c 
-----------------------
10-11-2025 15:54:21.65200[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'siapa nama saya'. 
-----------------------
10-11-2025 15:54:21.65202[4][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 15:54:21.65203[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 15:54:21.65204[3][4] - Elapsed time: 0.010 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 15:54:21.65229[1][4] - Elapsed time: 0.250 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 0f03665c1d1e22bb114d0c6e4168fd0c 
-----------------------
10-11-2025 15:54:21.65230[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 15:54:21.65231[3][4] - Elapsed time: 0.008 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 15:54:21.65262[2][4] - Elapsed time: 0.309 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 15:54:21.65264[2][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 15:54:21.65288[2][4] - Elapsed time: 0.242 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 15:54:21.65316[3][4] - Elapsed time: 0.274 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #108 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '0f03665c1d1e22bb114d0c6e4168fd0c'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 15:54:21.65336[3][4] - Elapsed time: 0.202 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` = 108 AND `bot_id` = 1; 
-----------------------
10-11-2025 15:54:21.65360[2][4] - Elapsed time: 0.246 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 15:54:21.65367[2][4] - Elapsed time: 0.064 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on siapa. 
-----------------------
10-11-2025 15:54:21.65368[2][4] - Elapsed time: 0.014 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 15:54:21.65408[2][4] - Elapsed time: 0.395 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 15:54:21.65409[2][4] - Elapsed time: 0.017 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on nama. 
-----------------------
10-11-2025 15:54:21.65411[2][4] - Elapsed time: 0.017 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 15:54:21.65412[2][4] - Elapsed time: 0.011 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on saya. 
-----------------------
10-11-2025 15:54:21.65414[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'siapa nama saya' 
-----------------------
10-11-2025 15:54:21.65429[4][4] - Elapsed time: 0.150 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 15:54:21.65430[2][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: SIAPA NAMA SAYA
Convo id: 0f03665c1d1e22bb114d0c6e4168fd0c
Bot id: 1
Format:  
-----------------------
10-11-2025 15:54:21.65431[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 15:54:21.65431[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 15:54:21.65432[3][4] - Elapsed time: 0.009 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` = 108 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 15:54:21.65511[4][4] - Elapsed time: 0.783 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 15:54:21.65556[2][4] - Elapsed time: 0.452 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 15:54:21.65557[3][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
10-11-2025 15:54:21.65577[4][4] - Elapsed time: 0.201 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 15:54:21.65578[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 15:54:21.65579[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 15:54:21.65580[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 15:54:21.65580[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 15:54:21.65581[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'SIAPA NAMA SAYA' to the front of the [user_say] array 
-----------------------
10-11-2025 15:54:21.65584[4][4] - Elapsed time: 0.028 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 15:54:21.65585[0][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = siapa nama saya, RAW say = siapa nama saya 
-----------------------
10-11-2025 15:54:21.65586[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 15:54:21.65586[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 15:54:21.65587[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 15:54:21.65588[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 15:54:21.65589[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 15:54:21.65590[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 15:54:21.65614[4][4] - Elapsed time: 0.240 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 15:54:21.65616[3][4] - Elapsed time: 0.016 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` = '0f03665c1d1e22bb114d0c6e4168fd0c'
    AND (
        'SIAPA NAMA SAYA' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 15:54:21.65639[2][4] - Elapsed time: 0.233 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 15:54:21.65640[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 15:54:21.65640[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 15:54:21.65663[4][4] - Elapsed time: 0.227 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 15:54:21.65665[3][4] - Elapsed time: 0.015 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 15:54:21.65696[3][4] - Elapsed time: 0.308 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 15:54:21.65696[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
10-11-2025 15:54:21.65720[4][4] - Elapsed time: 0.237 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
10-11-2025 15:54:21.65721[4][4] - Elapsed time: 0.007 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 15:54:21.65731[4][4] - Elapsed time: 0.103 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 15:54:21.65732[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 15:54:21.65758[4][4] - Elapsed time: 0.255 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 1217
            [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"/>.
        Apakah ada yang salah?</li>
      </condition>
            [score] => 264
            [current_that] => 
            [aiml_id] => 1217
            [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] => 1190
            [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] => 1190
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
10-11-2025 15:54:21.65759[2][4] - Elapsed time: 0.018 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 1217
            [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"/>.
        Apakah ada yang salah?</li>
      </condition>
            [score] => 264
            [current_that] => 
            [aiml_id] => 1217
            [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 15:54:21.65791[4][4] - Elapsed time: 0.317 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 1217
    [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"/>.
        Apakah ada yang salah?</li>
      </condition>
    [score] => 264
    [current_that] => 
    [aiml_id] => 1217
    [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 15:54:21.65792[2][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 15:54:21.65794[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1217 (SIAPA NAMA SAYA) 
-----------------------
10-11-2025 15:54:21.65795[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 15:54:21.65795[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'SIAPA NAMA SAYA' 
-----------------------
10-11-2025 15:54:21.65796[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 15:54:21.65796[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 15:54:21.65797[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1217
    [category_id] => 1217
    [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"/>.
        Apakah ada yang salah?</li>
      </condition>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => siapa nama saya
)
 
-----------------------
10-11-2025 15:54:21.65798[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 15:54:21.65799[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 15:54:21.65805[4][4] - Elapsed time: 0.062 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>.        Apakah ada yang salah?</text></li></condition></template> 
-----------------------
10-11-2025 15:54:21.65819[2][4] - Elapsed time: 0.138 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:54:21.65826[4][4] - Elapsed time: 0.072 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>.        Apakah ada yang salah?</text></li></condition></template>
 
-----------------------
10-11-2025 15:54:21.65827[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 15:54:21.65829[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:54:21.65831[4][4] - Elapsed time: 0.023 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>.        Apakah ada yang salah?</text></li></condition> 
-----------------------
10-11-2025 15:54:21.65832[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_condition_tag does exist. Processing now. 
-----------------------
10-11-2025 15:54:21.65833[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element condition to the parse_condition_tag function 
-----------------------
10-11-2025 15:54:21.65833[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][809]
Parsing a CONDITION tag. 
-----------------------
10-11-2025 15:54:21.65835[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][818]
Element attributes:Array
(
    [name] => nama
)
 
-----------------------
10-11-2025 15:54:21.65835[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][820]
Element attribute count = 1 
-----------------------
10-11-2025 15:54:21.65836[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][951]
Parsing a CONDITION tag with only the NAME attribute 
-----------------------
10-11-2025 15:54:21.65837[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][964]
Looking for test value 'undefined' 
-----------------------
10-11-2025 15:54:21.65837[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 15:54:21.65844[4][4] - Elapsed time: 0.071 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] => .        Apakah ada yang salah?
                        )

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

                        )

                )

        )

)
 
-----------------------
10-11-2025 15:54:21.65845[4][4] - Elapsed time: 0.011 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] => .        Apakah ada yang salah?
                )

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

                )

        )

)
 
-----------------------
10-11-2025 15:54:21.65847[4][4] - Elapsed time: 0.019 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>.        Apakah ada yang salah?</text></li></condition> 
-----------------------
10-11-2025 15:54:21.65848[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 15:54:21.65849[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][983]
Current pick attributes = SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [value] => undefined
        )

)
 
-----------------------
10-11-2025 15:54:21.65849[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][986]
Pick Value = 'undefined' 
-----------------------
10-11-2025 15:54:21.65850[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 15:54:21.65854[4][4] - Elapsed time: 0.035 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 15:54:21.65854[4][4] - Elapsed time: 0.009 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 15:54:21.65856[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:54:21.65857[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 15:54:21.65857[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 15:54:21.65858[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 15:54:21.65858[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 15:54:21.65859[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 15:54:21.65860[4][4] - Elapsed time: 0.009 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 15:54:21.65860[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 15:54:21.65861[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 15:54:21.65861[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 15:54:21.65862[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 15:54:21.65862[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 15:54:21.65863[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 15:54:21.65864[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf, saya belum mengetahui nama Anda.  Boleh saya tahu?' 
-----------------------
10-11-2025 15:54:21.65864[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 15:54:21.65865[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 15:54:21.65866[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 15:54:21.65866[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 15:54:21.65867[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 15:54:21.65867[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 15:54:21.65868[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:54:21.65869[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 15:54:21.65869[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 15:54:21.65870[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 15:54:21.65870[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 15:54:21.65871[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 15:54:21.65872[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 15:54:21.65873[2][4] - Elapsed time: 0.005 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 15:54:21.65873[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 15:54:21.65880[2][4] - Elapsed time: 0.068 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 15:54:21.65881[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 15:54:21.65882[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 15:54:21.65883[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Maaf, saya belum mengetahui nama Anda.' 
-----------------------
10-11-2025 15:54:21.65884[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 15:54:21.65885[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF SAYA BELUM MENGETAHUI NAMA ANDA' 
-----------------------
10-11-2025 15:54:21.65885[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Boleh saya tahu?' 
-----------------------
10-11-2025 15:54:21.65886[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Boleh saya tahu?' 
-----------------------
10-11-2025 15:54:21.65886[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BOLEH SAYA TAHU' 
-----------------------
10-11-2025 15:54:21.65887[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'BOLEH SAYA TAHU' 
-----------------------
10-11-2025 15:54:21.65888[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 15:54:21.65889[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 15:54:21.65889[2][4] - Elapsed time: 0.008 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"/>.
        Apakah ada yang salah?</li>
      </condition>' to the front of the [template] array 
-----------------------
10-11-2025 15:54:21.65890[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 15:54:21.65891[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 15:54:21.65892[3][4] - Elapsed time: 0.012 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?',
      108,
      '0f03665c1d1e22bb114d0c6e4168fd0c',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 15:54:21.66057[4][4] - Elapsed time: 1.647 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 15:54:21.66075[3][4] - Elapsed time: 0.179 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 15:54:21.66099[2][4] - Elapsed time: 0.239 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 15:54:21.66100[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 15:54:21.66100[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 15:54:21.66103[4][4] - Elapsed time: 0.029 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"0f03665c1d1e22bb114d0c6e4168fd0c","usersay":"siapa nama saya","botsay":"Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?","botData":{"convo_id":"0f03665c1d1e22bb114d0c6e4168fd0c","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"108","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":"1217","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.\n        Boleh saya tahu?<\/li>\n        <li>Nama Anda adalah <get name=\"nama\"\/>.\n        Apakah ada yang salah?<\/li>\n      <\/condition>","score":264,"current_that":"","aiml_id":"1217","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 15:54:21.66129[2][4] - Elapsed time: 0.253 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 15:54:21.66133[0][4] - Elapsed time: 0.042 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 15.422 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => siapa nama saya
    [conversation] => Array
        (
            [convo_id] => 0f03665c1d1e22bb114d0c6e4168fd0c
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 108
            [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] => 1217
                    [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"/>.
        Apakah ada yang salah?</li>
      </condition>
                    [score] => 264
                    [current_that] => 
                    [aiml_id] => 1217
                    [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] => 1217
            [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"/>.
        Apakah ada yang salah?</li>
      </condition>
            [html_template] => 
            [topic] => 
            [score] => 264
            [aiml_id] => 1217
            [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] => 1762764861.6459
    [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"/>. Apakah ada yang salah?</li> </condition>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"0f03665c1d1e22bb114d0c6e4168fd0c","usersay":"siapa nama saya","botsay":"Maaf, saya belum mengetahui nama Anda. Boleh saya tahu?","botData":{"convo_id":"0f03665c1d1e22bb114d0c6e4168fd0c","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"108","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":"1217","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.\n        Boleh saya tahu?<\/li>\n        <li>Nama Anda adalah <get name=\"nama\"\/>.\n        Apakah ada yang salah?<\/li>\n      <\/condition>","score":264,"current_that":"","aiml_id":"1217","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: 15.422 Milliseconds. Goodbye.