03-09-2025 16:37:47.72327[0][4] - Elapsed time: 24.345 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.3.33
  PHP Version:                  7.3.33
  OS:                           Windows NT
  OS Version:                   build 22631 (Windows 10)
  MySQL Version:                10.4.22-MariaDB
  Multi-byte functions enabled: true 
-----------------------
03-09-2025 16:37:47.72670[4][4] - Elapsed time: 3.421 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
03-09-2025 16:37:47.72804[4][4] - Elapsed time: 1.349 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
03-09-2025 16:37:47.72837[4][4] - Elapsed time: 0.322 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
03-09-2025 16:37:47.72974[4][4] - Elapsed time: 1.375 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
03-09-2025 16:37:47.72975[4][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
03-09-2025 16:37:47.73001[1][4] - Elapsed time: 0.256 milliseconds
[conversation_start.php][Called outside of function][118]
PHP ERROR [Warning] -session_id(): Cannot change session id when session is active in C:\xmpp\htdocs\Program-O-master\chatbot\conversation_start.php on Line 118 
-----------------------
03-09-2025 16:37:47.73053[0][4] - Elapsed time: 0.518 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = fc231p3c4jeopkkpf08fkt1dmf 
-----------------------
03-09-2025 16:37:47.73054[4][4] - Elapsed time: 0.016 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'Warna favoirt'. 
-----------------------
03-09-2025 16:37:47.73056[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
03-09-2025 16:37:47.73056[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
03-09-2025 16:37:47.73057[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `Syifa`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
03-09-2025 16:37:47.73079[4][4] - Elapsed time: 0.217 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: np0unpj1u6fvutj7meb3gc4vko 
-----------------------
03-09-2025 16:37:47.73081[2][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
03-09-2025 16:37:47.73081[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `Syifa`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
03-09-2025 16:37:47.73102[2][4] - Elapsed time: 0.209 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
03-09-2025 16:37:47.73103[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
03-09-2025 16:37:47.73114[3][4] - Elapsed time: 0.112 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `Syifa`.`client_properties` WHERE `user_id` = 1 AND `bot_id` = 1; 
-----------------------
03-09-2025 16:37:47.73126[2][4] - Elapsed time: 0.113 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
03-09-2025 16:37:47.73127[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on Warna. 
-----------------------
03-09-2025 16:37:47.73128[2][4] - Elapsed time: 0.008 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
03-09-2025 16:37:47.73148[2][4] - Elapsed time: 0.196 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
03-09-2025 16:37:47.73148[2][4] - Elapsed time: 0.010 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on favoirt. 
-----------------------
03-09-2025 16:37:47.73150[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Warna favoirt' 
-----------------------
03-09-2025 16:37:47.73151[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'WARNA FAVOIRT' 
-----------------------
03-09-2025 16:37:47.73151[2][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: WARNA FAVOIRT
Convo id: fc231p3c4jeopkkpf08fkt1dmf
Bot id: 1
Format: json 
-----------------------
03-09-2025 16:37:47.73152[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
03-09-2025 16:37:47.73152[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
03-09-2025 16:37:47.73153[3][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `Syifa`.`conversation_log` WHERE `user_id` = 1 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
03-09-2025 16:37:47.73167[1][4] - Elapsed time: 0.138 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => Hello
)
 
-----------------------
03-09-2025 16:37:47.73168[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
03-09-2025 16:37:47.73168[1][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Hii!! Apa kabar kamu??
)
 
-----------------------
03-09-2025 16:37:47.73169[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:37:47.73169[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hii
    [1] => 
    [2] =>  Apa kabar kamu
    [3] => 
    [4] => 
)

 
-----------------------
03-09-2025 16:37:47.73170[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:37:47.73170[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hii  Apa kabar kamu ' 
-----------------------
03-09-2025 16:37:47.73171[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hii  Apa kabar kamu ' 
-----------------------
03-09-2025 16:37:47.73172[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hii  Apa kabar kamu ' 
-----------------------
03-09-2025 16:37:47.73172[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:37:47.73173[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:37:47.73173[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HII APA KABAR KAMU' to the front of the [that] array 
-----------------------
03-09-2025 16:37:47.73174[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
03-09-2025 16:37:47.73175[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:37:47.73176[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:37:47.73176[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:37:47.73177[4][4] - Elapsed time: 0.003 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:37:47.73178[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
03-09-2025 16:37:47.73178[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:37:47.73179[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hello
)

 
-----------------------
03-09-2025 16:37:47.73179[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:37:47.73180[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hello' 
-----------------------
03-09-2025 16:37:47.73180[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hello' 
-----------------------
03-09-2025 16:37:47.73180[4][4] - Elapsed time: 0.004 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hello' 
-----------------------
03-09-2025 16:37:47.73181[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
03-09-2025 16:37:47.73181[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HELLO' 
-----------------------
03-09-2025 16:37:47.73182[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
03-09-2025 16:37:47.73182[4][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
03-09-2025 16:37:47.73216[2][4] - Elapsed time: 0.341 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
03-09-2025 16:37:47.73217[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `Syifa`.`bots` WHERE bot_id = 1; 
-----------------------
03-09-2025 16:37:47.73230[4][4] - Elapsed time: 0.130 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
03-09-2025 16:37:47.73232[0][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
03-09-2025 16:37:47.73232[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
03-09-2025 16:37:47.73233[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = WARNA FAVOIRT: raw say = Warna favoirt 
-----------------------
03-09-2025 16:37:47.73233[4][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
03-09-2025 16:37:47.73234[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'WARNA FAVOIRT' to the front of the [user_say] array 
-----------------------
03-09-2025 16:37:47.73234[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
03-09-2025 16:37:47.73235[0][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = Warna favoirt, RAW say = Warna favoirt 
-----------------------
03-09-2025 16:37:47.73236[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Warna favoirt' to the front of the [input] array 
-----------------------
03-09-2025 16:37:47.73236[4][4] - Elapsed time: 0.007 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
03-09-2025 16:37:47.73237[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'WARNA FAVOIRT' 
-----------------------
03-09-2025 16:37:47.73238[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'WARNA FAVOIRT' 
-----------------------
03-09-2025 16:37:47.73238[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
03-09-2025 16:37:47.73248[4][4] - Elapsed time: 0.094 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
03-09-2025 16:37:47.73249[3][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `Syifa`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'np0unpj1u6fvutj7meb3gc4vko'
    AND (
        'WARNA FAVOIRT' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HII APA KABAR KAMU' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
03-09-2025 16:37:47.73259[2][4] - Elapsed time: 0.104 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
03-09-2025 16:37:47.73260[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
03-09-2025 16:37:47.73260[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
03-09-2025 16:37:47.73269[4][4] - Elapsed time: 0.081 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
03-09-2025 16:37:47.73270[3][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `Syifa`.`aiml` WHERE
    bot_id = 1 AND (
        'WARNA FAVOIRT' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HII APA KABAR KAMU' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
03-09-2025 16:37:47.73283[3][4] - Elapsed time: 0.131 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
03-09-2025 16:37:47.73283[1][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][1082]
Error: FOUND NO AIML matches in DB. 
-----------------------
03-09-2025 16:37:47.73284[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
03-09-2025 16:37:47.73284[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][get_convo_var][757]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] FOUND: ConvoArr Value = 'RANDOM PICKUP LINE' 
-----------------------
03-09-2025 16:37:47.73303[2][4] - Elapsed time: 0.187 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
03-09-2025 16:37:47.73304[1][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][1084]
Added input 'WARNA FAVOIRT' to the unknown_inputs table. 
-----------------------
03-09-2025 16:37:47.73313[1][4] - Elapsed time: 0.097 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = HII APA KABAR KAMU 
-----------------------
03-09-2025 16:37:47.73314[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
03-09-2025 16:37:47.73315[1][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][56]
Returning error as no results where found 
-----------------------
03-09-2025 16:37:47.73315[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
03-09-2025 16:37:47.73325[4][4] - Elapsed time: 0.098 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [aiml_id] => -1
            [bot_id] => 1
            [pattern] => no results
            [thatpattern] => 
            [template] => Maaf, tidak ada jawaban.
            [topic] => 
            [score] => 261
            [track_score] => current bot (250 points), no thatpattern to match (1 point), common word match: no (1 points), uncommon word match: results (8 points)
        )

)
 
-----------------------
03-09-2025 16:37:47.73326[2][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [aiml_id] => -1
            [bot_id] => 1
            [pattern] => no results
            [thatpattern] => 
            [template] => Maaf, tidak ada jawaban.
            [topic] => 
            [score] => 261
            [track_score] => current bot (250 points), no thatpattern to match (1 point), common word match: no (1 points), uncommon word match: results (8 points)
        )

)

 
-----------------------
03-09-2025 16:37:47.73334[4][4] - Elapsed time: 0.078 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [aiml_id] => -1
    [bot_id] => 1
    [pattern] => no results
    [thatpattern] => 
    [template] => Maaf, tidak ada jawaban.
    [topic] => 
    [score] => 261
    [track_score] => current bot (250 points), no thatpattern to match (1 point), common word match: no (1 points), uncommon word match: results (8 points)
)
 
-----------------------
03-09-2025 16:37:47.73334[2][4] - Elapsed time: 0.004 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
03-09-2025 16:37:47.73335[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:-1 (no results) 
-----------------------
03-09-2025 16:37:47.73336[3][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
03-09-2025 16:37:47.73336[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'no results' 
-----------------------
03-09-2025 16:37:47.73337[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
03-09-2025 16:37:47.73337[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
03-09-2025 16:37:47.73338[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => -1
    [html_template] => 
    [lookingfor] => WARNA FAVOIRT
    [pattern] => no results
    [score] => 261
    [stars] => Array
        (
        )

    [template] => Maaf, tidak ada jawaban.
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => Warna favoirt
)
 
-----------------------
03-09-2025 16:37:47.73339[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
03-09-2025 16:37:47.73340[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
03-09-2025 16:37:47.73340[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><text>Maaf, tidak ada jawaban.</text></template> 
-----------------------
03-09-2025 16:37:47.73343[2][4] - Elapsed time: 0.027 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
03-09-2025 16:37:47.73344[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><text>Maaf, tidak ada jawaban.</text></template>
 
-----------------------
03-09-2025 16:37:47.73345[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
03-09-2025 16:37:47.73346[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
03-09-2025 16:37:47.73346[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>Maaf, tidak ada jawaban.</text> 
-----------------------
03-09-2025 16:37:47.73347[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
03-09-2025 16:37:47.73347[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
03-09-2025 16:37:47.73348[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
03-09-2025 16:37:47.73352[4][4] - Elapsed time: 0.038 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Maaf, tidak ada jawaban.' to the response array. tag name is text 
-----------------------
03-09-2025 16:37:47.73352[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:37:47.73353[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf, tidak ada jawaban.
)

 
-----------------------
03-09-2025 16:37:47.73353[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:37:47.73354[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf, tidak ada jawaban.' 
-----------------------
03-09-2025 16:37:47.73354[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Maaf, tidak ada jawaban.' to the response array. tag name is template. 
-----------------------
03-09-2025 16:37:47.73355[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:37:47.73355[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf, tidak ada jawaban.
)

 
-----------------------
03-09-2025 16:37:47.73356[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:37:47.73356[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf, tidak ada jawaban.' 
-----------------------
03-09-2025 16:37:47.73357[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Maaf, tidak ada jawaban. 
-----------------------
03-09-2025 16:37:47.73357[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
03-09-2025 16:37:47.73358[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
03-09-2025 16:37:47.73358[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, tidak ada jawaban.' to the front of the [that_raw] array 
-----------------------
03-09-2025 16:37:47.73359[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
03-09-2025 16:37:47.73360[2][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, tidak ada jawaban.' to the front of the [that] array 
-----------------------
03-09-2025 16:37:47.73361[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Maaf, tidak ada jawaban.' 
-----------------------
03-09-2025 16:37:47.73361[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Maaf, tidak ada jawaban.' 
-----------------------
03-09-2025 16:37:47.73362[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:37:47.73362[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:37:47.73363[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, tidak ada jawaban.' to the front of the [parsed_template] array 
-----------------------
03-09-2025 16:37:47.73364[4][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
03-09-2025 16:37:47.73364[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Maaf, tidak ada jawaban.' to the front of the [template] array 
-----------------------
03-09-2025 16:37:47.73365[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
03-09-2025 16:37:47.73366[2][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
03-09-2025 16:37:47.73366[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `Syifa`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'Warna favoirt',
      'Maaf, tidak ada jawaban.',
      1,
      'np0unpj1u6fvutj7meb3gc4vko',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
03-09-2025 16:37:47.73431[4][4] - Elapsed time: 0.641 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
03-09-2025 16:37:47.73451[3][4] - Elapsed time: 0.206 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `Syifa`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
03-09-2025 16:37:47.73472[2][4] - Elapsed time: 0.212 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
03-09-2025 16:37:47.73473[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
03-09-2025 16:37:47.73474[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
03-09-2025 16:37:47.73475[4][4] - Elapsed time: 0.013 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"np0unpj1u6fvutj7meb3gc4vko","usersay":"Warna favoirt","botsay":"Maaf, tidak ada jawaban.","botData":{"convo_id":"np0unpj1u6fvutj7meb3gc4vko","bot_name":"Syifa","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"1","totallines":1,"rawSay":"Warna favoirt","conversation_lines":"1","remember_up_to":"10","debugemail":"theodorusnatanael0204@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"aiml_id":"-1","bot_id":"1","pattern":"no results","thatpattern":"","template":"Maaf, tidak ada jawaban.","topic":"","score":261,"track_score":"current bot (250 points), no thatpattern to match (1 point), common word match: no (1 points), uncommon word match: results (8 points)"}}} 
-----------------------
03-09-2025 16:37:47.73486[2][4] - Elapsed time: 0.113 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
03-09-2025 16:37:47.73488[0][4] - Elapsed time: 0.014 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 35.942 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => Warna favoirt
    [conversation] => Array
        (
            [convo_id] => np0unpj1u6fvutj7meb3gc4vko
            [bot_name] => Syifa
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 1
            [totallines] => 1
            [rawSay] => Warna favoirt
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => theodorusnatanael0204@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [aiml_id] => -1
                    [bot_id] => 1
                    [pattern] => no results
                    [thatpattern] => 
                    [template] => Maaf, tidak ada jawaban.
                    [topic] => 
                    [score] => 261
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), common word match: no (1 points), uncommon word match: results (8 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => Warna favoirt
            [lookingfor] => WARNA FAVOIRT
            [pattern] => no results
            [thatpattern] => 
            [template] => Maaf, tidak ada jawaban.
            [html_template] => 
            [topic] => 
            [score] => 261
            [aiml_id] => -1
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Maaf, tidak ada jawaban.
        )

    [client_properties] => Array
        (
            [ip_address] => ::1
            [name] => Seeker
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => Hii!! Apa kabar kamu??
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => MAAF TIDAK ADA JAWABAN
                )

            [2] => Array
                (
                    [1] => HII APA KABAR KAMU
                )

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

    [input] => Array
        (
            [1] => Warna favoirt
            [2] => HELLO
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1756910267.6989
    [user_say] => Array
        (
            [1] => WARNA FAVOIRT
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Maaf, tidak ada jawaban.
                )

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

    [parsed_template] => Array
        (
            [1] => Maaf, tidak ada jawaban.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => Maaf, tidak ada jawaban.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"np0unpj1u6fvutj7meb3gc4vko","usersay":"Warna favoirt","botsay":"Maaf, tidak ada jawaban.","botData":{"convo_id":"np0unpj1u6fvutj7meb3gc4vko","bot_name":"Syifa","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"1","totallines":1,"rawSay":"Warna favoirt","conversation_lines":"1","remember_up_to":"10","debugemail":"theodorusnatanael0204@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"aiml_id":"-1","bot_id":"1","pattern":"no results","thatpattern":"","template":"Maaf, tidak ada jawaban.","topic":"","score":261,"track_score":"current bot (250 points), no thatpattern to match (1 point), common word match: no (1 points), uncommon word match: results (8 points)"}}}
)

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