[01-Apr-2025 09:05:12 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: Permission denied in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:12 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:17 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: Permission denied in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:17 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:22 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: No such file or directory in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:22 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:27 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: No such file or directory in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:27 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:32 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: No such file or directory in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:32 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:37 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: No such file or directory in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:37 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:58 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: No such file or directory in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:58 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:59 UTC] PHP Warning:  require_once(/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php): failed to open stream: No such file or directory in /home/ynappqlp/honeydale.com/index.php on line 289
[01-Apr-2025 09:05:59 UTC] PHP Fatal error:  require_once(): Failed opening required '/home/ynappqlp/honeydale.com/system/core/CodeIgniter.php' (include_path='.:/opt/alt/php72/usr/share/pear') in /home/ynappqlp/honeydale.com/index.php on line 289
[02-Jan-2026 16:11:41 Asia/Kolkata] Created table yn_ai_template_positions successfully
[02-Jan-2026 16:11:41 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Epty Template.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpJsArLi
            [error] => 0
            [size] => 873384
        )

)

[02-Jan-2026 16:11:41 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 10
    [temp_name] => ✨ Diwali Golden Spark Design
    [temp_description] => 
    [temp_width] => 400
    [temp_height] => 400
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":801,"y":1001,"width":570,"height":534},{"x":58,"y":58,"width":342,"height":201}]
    [temp_image_x] => 801
    [temp_image_y] => 1001
    [temp_image_width] => 570
    [temp_image_height] => 534
)

[02-Jan-2026 16:11:41 Asia/Kolkata] Template image file detected: Epty Template.jpg
[02-Jan-2026 16:11:41 Asia/Kolkata] File size: 873384
[02-Jan-2026 16:11:41 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 16:11:41 Asia/Kolkata] File error code: 0
[02-Jan-2026 16:11:41 Asia/Kolkata] Upload result from upload_doc: SUCCXX292047079eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:11:41 Asia/Kolkata] Template image uploaded successfully: 292047079eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:15:31 Asia/Kolkata] Created table yn_ai_template_positions successfully
[02-Jan-2026 16:16:04 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Epty Template.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpbjnLre
            [error] => 0
            [size] => 873384
        )

)

[02-Jan-2026 16:16:04 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 10
    [temp_name] => ✨ Diwali Golden Spark Design1
    [temp_description] => 
    [temp_width] => 400
    [temp_height] => 400
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":801,"y":1001,"width":570,"height":534},{"x":58,"y":58,"width":342,"height":201}]
    [temp_image_x] => 801
    [temp_image_y] => 1001
    [temp_image_width] => 570
    [temp_image_height] => 534
)

[02-Jan-2026 16:16:04 Asia/Kolkata] Template image file detected: Epty Template.jpg
[02-Jan-2026 16:16:04 Asia/Kolkata] File size: 873384
[02-Jan-2026 16:16:04 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 16:16:04 Asia/Kolkata] File error code: 0
[02-Jan-2026 16:16:04 Asia/Kolkata] Upload result from upload_doc: SUCCXX134341898eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:16:04 Asia/Kolkata] Template image uploaded successfully: 134341898eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:17:29 Asia/Kolkata] Created table yn_ai_template_positions successfully
[02-Jan-2026 16:17:29 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Epty Template.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpCZQhVa
            [error] => 0
            [size] => 873384
        )

)

[02-Jan-2026 16:17:29 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 10
    [temp_name] => Promo Strip — Simple discount banner
    [temp_description] => 
    [temp_width] => 400
    [temp_height] => 400
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":798,"y":988,"width":618,"height":559},{"x":47,"y":61,"width":472,"height":179}]
    [temp_image_x] => 798
    [temp_image_y] => 988
    [temp_image_width] => 618
    [temp_image_height] => 559
)

[02-Jan-2026 16:17:29 Asia/Kolkata] Template image file detected: Epty Template.jpg
[02-Jan-2026 16:17:29 Asia/Kolkata] File size: 873384
[02-Jan-2026 16:17:29 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 16:17:29 Asia/Kolkata] File error code: 0
[02-Jan-2026 16:17:29 Asia/Kolkata] Upload result from upload_doc: SUCCXX945815613eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:17:29 Asia/Kolkata] Template image uploaded successfully: 945815613eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:22:29 Asia/Kolkata] Created table yn_ai_template_positions successfully
[02-Jan-2026 16:22:44 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Epty Template.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpZwV9wm
            [error] => 0
            [size] => 873384
        )

)

[02-Jan-2026 16:22:44 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 10
    [temp_name] => Promo Strip — Simple discount banner12
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":798,"y":1044,"width":678,"height":426},{"x":53,"y":42,"width":345,"height":217}]
    [temp_image_x] => 798
    [temp_image_y] => 1044
    [temp_image_width] => 678
    [temp_image_height] => 426
)

[02-Jan-2026 16:22:44 Asia/Kolkata] Template image file detected: Epty Template.jpg
[02-Jan-2026 16:22:44 Asia/Kolkata] File size: 873384
[02-Jan-2026 16:22:44 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 16:22:44 Asia/Kolkata] File error code: 0
[02-Jan-2026 16:22:45 Asia/Kolkata] Upload result from upload_doc: SUCCXX790221234eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:22:45 Asia/Kolkata] Template image uploaded successfully: 790221234eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:29:56 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Empty Template.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpXtNKuj
            [error] => 0
            [size] => 572437
        )

)

[02-Jan-2026 16:29:56 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 10
    [temp_name] => ero Spotlight — Large main image with CTA
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":83,"y":396,"width":328,"height":255},{"x":896,"y":334,"width":132,"height":275}]
    [temp_image_x] => 83
    [temp_image_y] => 396
    [temp_image_width] => 328
    [temp_image_height] => 255
)

[02-Jan-2026 16:29:56 Asia/Kolkata] Template image file detected: Empty Template.jpg
[02-Jan-2026 16:29:56 Asia/Kolkata] File size: 572437
[02-Jan-2026 16:29:56 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 16:29:56 Asia/Kolkata] File error code: 0
[02-Jan-2026 16:29:56 Asia/Kolkata] Upload result from upload_doc: SUCCXX904332915emptytemplatejpg.jpg.jpg
[02-Jan-2026 16:29:56 Asia/Kolkata] Template image uploaded successfully: 904332915emptytemplatejpg.jpg.jpg
[02-Jan-2026 16:30:54 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 16:30:54 Asia/Kolkata] Template ID: 26
[02-Jan-2026 16:30:54 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 16:30:54 Asia/Kolkata] Query executed
[02-Jan-2026 16:30:54 Asia/Kolkata] Query returned 2 rows
[02-Jan-2026 16:30:54 Asia/Kolkata] Found 2 positions in result_array()
[02-Jan-2026 16:30:54 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[02-Jan-2026 16:30:54 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[02-Jan-2026 16:30:54 Asia/Kolkata] Verified positions count: 2
[02-Jan-2026 16:30:54 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:30:54 Asia/Kolkata] Final template_positions count: 2
[02-Jan-2026 16:30:54 Asia/Kolkata] ===========================
[02-Jan-2026 16:30:54 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[02-Jan-2026 16:30:54 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:30:54 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 16:30:54 Asia/Kolkata] Template ID: 26
[02-Jan-2026 16:30:54 Asia/Kolkata] Positions count in view: 2
[02-Jan-2026 16:30:54 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:30:54 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[02-Jan-2026 16:30:54 Asia/Kolkata] ==================
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Session YID: 16
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767351500,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","auth-admin":"1","auth-date":"0000-00-00 00:00:00","auth-ip":"","auth-rights":"5","aid":"7","lic_key":null,"admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":false,"mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905"}
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"0.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - User ID: 16
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 16:31:15 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Session YID: 16
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767351500,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","auth-admin":"1","auth-date":"0000-00-00 00:00:00","auth-ip":"","auth-rights":"5","aid":"7","lic_key":null,"admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":false,"mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905"}
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"0.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - User ID: 16
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 16:32:19 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 16:32:36 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 16:32:36 Asia/Kolkata] Template ID: 26
[02-Jan-2026 16:32:36 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 16:32:36 Asia/Kolkata] Query executed
[02-Jan-2026 16:32:36 Asia/Kolkata] Query returned 2 rows
[02-Jan-2026 16:32:36 Asia/Kolkata] Found 2 positions in result_array()
[02-Jan-2026 16:32:36 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[02-Jan-2026 16:32:36 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[02-Jan-2026 16:32:36 Asia/Kolkata] Verified positions count: 2
[02-Jan-2026 16:32:36 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:32:36 Asia/Kolkata] Final template_positions count: 2
[02-Jan-2026 16:32:36 Asia/Kolkata] ===========================
[02-Jan-2026 16:32:36 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[02-Jan-2026 16:32:36 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:32:36 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 16:32:36 Asia/Kolkata] Template ID: 26
[02-Jan-2026 16:32:36 Asia/Kolkata] Positions count in view: 2
[02-Jan-2026 16:32:36 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:32:36 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[02-Jan-2026 16:32:36 Asia/Kolkata] ==================
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Session YID: 16
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767351952,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"0.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - User ID: 16
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 16:39:01 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Session YID: 16
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767351952,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"0.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - User ID: 16
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 16:39:29 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 16:41:23 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 16:41:23 Asia/Kolkata] Template ID: 26
[02-Jan-2026 16:41:23 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 16:41:23 Asia/Kolkata] Query executed
[02-Jan-2026 16:41:23 Asia/Kolkata] Query returned 2 rows
[02-Jan-2026 16:41:23 Asia/Kolkata] Found 2 positions in result_array()
[02-Jan-2026 16:41:23 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[02-Jan-2026 16:41:23 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[02-Jan-2026 16:41:23 Asia/Kolkata] Verified positions count: 2
[02-Jan-2026 16:41:23 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:41:23 Asia/Kolkata] Final template_positions count: 2
[02-Jan-2026 16:41:23 Asia/Kolkata] ===========================
[02-Jan-2026 16:41:23 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[02-Jan-2026 16:41:23 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:41:23 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 16:41:23 Asia/Kolkata] Template ID: 26
[02-Jan-2026 16:41:23 Asia/Kolkata] Positions count in view: 2
[02-Jan-2026 16:41:23 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 16:41:23 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[02-Jan-2026 16:41:23 Asia/Kolkata] ==================
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Session YID: 16
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767352483,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"0.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - User ID: 16
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 16:47:17 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 16:51:15 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Epty Template.jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpBxmdWd
            [error] => 0
            [size] => 873384
        )

)

[02-Jan-2026 16:51:15 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 6
    [temp_name] => Professional Identity Frame
    [temp_description] => hhh
    [temp_width] => 100
    [temp_height] => 100
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":785,"y":982,"width":650,"height":573},{"x":71,"y":53,"width":440,"height":198}]
    [temp_image_x] => 785
    [temp_image_y] => 982
    [temp_image_width] => 650
    [temp_image_height] => 573
)

[02-Jan-2026 16:51:15 Asia/Kolkata] Template image file detected: Epty Template.jpg
[02-Jan-2026 16:51:15 Asia/Kolkata] File size: 873384
[02-Jan-2026 16:51:15 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 16:51:15 Asia/Kolkata] File error code: 0
[02-Jan-2026 16:51:15 Asia/Kolkata] Upload result from upload_doc: SUCCXX679369475eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:51:15 Asia/Kolkata] Template image uploaded successfully: 679369475eptytemplatejpg.jpg.jpg
[02-Jan-2026 16:51:43 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 16:51:43 Asia/Kolkata] Template ID: 12
[02-Jan-2026 16:51:43 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 16:51:43 Asia/Kolkata] Query executed
[02-Jan-2026 16:51:43 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 16:51:43 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 16:51:43 Asia/Kolkata] Final template_positions count: 0
[02-Jan-2026 16:51:43 Asia/Kolkata] ===========================
[02-Jan-2026 16:51:43 Asia/Kolkata] Template ID: 12 - PHP Positions Count: 0
[02-Jan-2026 16:51:43 Asia/Kolkata] Template Positions: Array
(
)

[02-Jan-2026 16:51:43 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 16:51:43 Asia/Kolkata] Template ID: 12
[02-Jan-2026 16:51:43 Asia/Kolkata] Positions count in view: 0
[02-Jan-2026 16:51:43 Asia/Kolkata] Positions data in view: Array
(
)

[02-Jan-2026 16:51:43 Asia/Kolkata] JSON encoded: []
[02-Jan-2026 16:51:43 Asia/Kolkata] ==================
[02-Jan-2026 16:52:53 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 16:52:53 Asia/Kolkata] Template ID: 27
[02-Jan-2026 16:52:53 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 16:52:53 Asia/Kolkata] Query executed
[02-Jan-2026 16:52:53 Asia/Kolkata] Query returned 2 rows
[02-Jan-2026 16:52:53 Asia/Kolkata] Found 2 positions in result_array()
[02-Jan-2026 16:52:53 Asia/Kolkata] Position 0: x=785, y=982, width=650, height=573, order=0
[02-Jan-2026 16:52:53 Asia/Kolkata] Position 1: x=71, y=53, width=440, height=198, order=1
[02-Jan-2026 16:52:53 Asia/Kolkata] Verified positions count: 2
[02-Jan-2026 16:52:53 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 785
            [y] => 982
            [width] => 650
            [height] => 573
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 71
            [y] => 53
            [width] => 440
            [height] => 198
            [pos_order] => 1
        )

)

[02-Jan-2026 16:52:53 Asia/Kolkata] Final template_positions count: 2
[02-Jan-2026 16:52:53 Asia/Kolkata] ===========================
[02-Jan-2026 16:52:53 Asia/Kolkata] Template ID: 27 - PHP Positions Count: 2
[02-Jan-2026 16:52:53 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 785
            [y] => 982
            [width] => 650
            [height] => 573
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 71
            [y] => 53
            [width] => 440
            [height] => 198
            [pos_order] => 1
        )

)

[02-Jan-2026 16:52:53 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 16:52:53 Asia/Kolkata] Template ID: 27
[02-Jan-2026 16:52:53 Asia/Kolkata] Positions count in view: 2
[02-Jan-2026 16:52:53 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 785
            [y] => 982
            [width] => 650
            [height] => 573
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 71
            [y] => 53
            [width] => 440
            [height] => 198
            [pos_order] => 1
        )

)

[02-Jan-2026 16:52:53 Asia/Kolkata] JSON encoded: [{"x":785,"y":982,"width":650,"height":573,"pos_order":0},{"x":71,"y":53,"width":440,"height":198,"pos_order":1}]
[02-Jan-2026 16:52:53 Asia/Kolkata] ==================
[02-Jan-2026 16:54:06 Asia/Kolkata] Received all_photo_adjustments JSON with 2 images
[02-Jan-2026 16:54:06 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=39.25%, y=49.10%, w=32.50%, h=28.65%
[02-Jan-2026 16:54:06 Asia/Kolkata] USER photo #1 - Using percentage adjustments: x=3.55%, y=2.65%, w=22.00%, h=9.90%
[02-Jan-2026 16:54:06 Asia/Kolkata] Found 2 template positions for template ID: 27
[02-Jan-2026 16:54:06 Asia/Kolkata] === BEFORE GENERATION ===
[02-Jan-2026 16:54:06 Asia/Kolkata] Total photos to generate: 2
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #0 (USER): photo_16_1767353045_0.png - Exists: YES
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #1 (USER): photo_16_1767353045_1.png - Exists: YES
[02-Jan-2026 16:54:06 Asia/Kolkata] GD extension is loaded via extension_loaded()
[02-Jan-2026 16:54:06 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/679369475eptytemplatejpg.jpg.jpg (extension: jpg)
[02-Jan-2026 16:54:06 Asia/Kolkata] Template image loaded successfully. Dimensions: 2000x2000
[02-Jan-2026 16:54:06 Asia/Kolkata] Template copied to output image. Output dimensions: 2000x2000
[02-Jan-2026 16:54:06 Asia/Kolkata] Template source dimensions: 2000x2000
[02-Jan-2026 16:54:06 Asia/Kolkata] Total photos to process: 2
[02-Jan-2026 16:54:06 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767353045_0.png
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 16:54:06 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 457x497
[02-Jan-2026 16:54:06 Asia/Kolkata] Using index-specific adjustments for photo #0
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=785, y=982, w=650, h=573
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #0 - Percentages: x=39.25%, y=49.1%, w=32.5%, h=28.65%
[02-Jan-2026 16:54:06 Asia/Kolkata] Resized photo dimensions: 650x573
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #0 - Final position (user-set): x=785, y=982, width=650, height=573
[02-Jan-2026 16:54:06 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=785, y=982, size: 650x573
[02-Jan-2026 16:54:06 Asia/Kolkata] Processing USER photo #1: ./assets/ai/uploads/user_photos/16/photo_16_1767353045_1.png
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 16:54:06 Asia/Kolkata] User photo #1 loaded successfully. Dimensions: 2800x1400
[02-Jan-2026 16:54:06 Asia/Kolkata] Using index-specific adjustments for photo #1
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #1 - Using percentage-based adjustments: x=71, y=53, w=440, h=198
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #1 - Percentages: x=3.55%, y=2.65%, w=22%, h=9.9%
[02-Jan-2026 16:54:06 Asia/Kolkata] Resized photo dimensions: 440x198
[02-Jan-2026 16:54:06 Asia/Kolkata] Photo #1 - Final position (user-set): x=71, y=53, width=440, height=198
[02-Jan-2026 16:54:06 Asia/Kolkata] USER photo #1 overlaid successfully at position: x=71, y=53, size: 440x198
[02-Jan-2026 17:49:17 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 17:49:17 Asia/Kolkata] Template ID: 18
[02-Jan-2026 17:49:17 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 17:49:17 Asia/Kolkata] Query executed
[02-Jan-2026 17:49:17 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 17:49:17 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 17:49:17 Asia/Kolkata] Final template_positions count: 0
[02-Jan-2026 17:49:17 Asia/Kolkata] ===========================
[02-Jan-2026 17:49:17 Asia/Kolkata] Template ID: 18 - PHP Positions Count: 0
[02-Jan-2026 17:49:17 Asia/Kolkata] Template Positions: Array
(
)

[02-Jan-2026 17:49:17 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 17:49:17 Asia/Kolkata] Template ID: 18
[02-Jan-2026 17:49:17 Asia/Kolkata] Positions count in view: 0
[02-Jan-2026 17:49:17 Asia/Kolkata] Positions data in view: Array
(
)

[02-Jan-2026 17:49:17 Asia/Kolkata] JSON encoded: []
[02-Jan-2026 17:49:17 Asia/Kolkata] ==================
[02-Jan-2026 17:49:33 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 17:49:33 Asia/Kolkata] Template ID: 17
[02-Jan-2026 17:49:33 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 17:49:33 Asia/Kolkata] Query executed
[02-Jan-2026 17:49:33 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 17:49:33 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 17:49:33 Asia/Kolkata] Final template_positions count: 0
[02-Jan-2026 17:49:33 Asia/Kolkata] ===========================
[02-Jan-2026 17:49:33 Asia/Kolkata] Template ID: 17 - PHP Positions Count: 0
[02-Jan-2026 17:49:33 Asia/Kolkata] Template Positions: Array
(
)

[02-Jan-2026 17:49:33 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 17:49:33 Asia/Kolkata] Template ID: 17
[02-Jan-2026 17:49:33 Asia/Kolkata] Positions count in view: 0
[02-Jan-2026 17:49:33 Asia/Kolkata] Positions data in view: Array
(
)

[02-Jan-2026 17:49:33 Asia/Kolkata] JSON encoded: []
[02-Jan-2026 17:49:33 Asia/Kolkata] ==================
[02-Jan-2026 17:57:01 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 17:57:01 Asia/Kolkata] Template ID: 7
[02-Jan-2026 17:57:01 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 17:57:01 Asia/Kolkata] Query executed
[02-Jan-2026 17:57:01 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 17:57:01 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 17:57:01 Asia/Kolkata] Final template_positions count: 0
[02-Jan-2026 17:57:01 Asia/Kolkata] ===========================
[02-Jan-2026 17:57:01 Asia/Kolkata] Template ID: 7 - PHP Positions Count: 0
[02-Jan-2026 17:57:01 Asia/Kolkata] Template Positions: Array
(
)

[02-Jan-2026 17:57:01 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 17:57:01 Asia/Kolkata] Template ID: 7
[02-Jan-2026 17:57:01 Asia/Kolkata] Positions count in view: 0
[02-Jan-2026 17:57:01 Asia/Kolkata] Positions data in view: Array
(
)

[02-Jan-2026 17:57:01 Asia/Kolkata] JSON encoded: []
[02-Jan-2026 17:57:01 Asia/Kolkata] ==================
[02-Jan-2026 18:01:03 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:01:03 Asia/Kolkata] Template ID: 6
[02-Jan-2026 18:01:03 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:01:03 Asia/Kolkata] Query executed
[02-Jan-2026 18:01:03 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 18:01:03 Asia/Kolkata] Query returned 0 rows
[02-Jan-2026 18:01:03 Asia/Kolkata] Final template_positions count: 0
[02-Jan-2026 18:01:03 Asia/Kolkata] ===========================
[02-Jan-2026 18:01:03 Asia/Kolkata] Template ID: 6 - PHP Positions Count: 0
[02-Jan-2026 18:01:03 Asia/Kolkata] Template Positions: Array
(
)

[02-Jan-2026 18:01:03 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:01:03 Asia/Kolkata] Template ID: 6
[02-Jan-2026 18:01:03 Asia/Kolkata] Positions count in view: 0
[02-Jan-2026 18:01:03 Asia/Kolkata] Positions data in view: Array
(
)

[02-Jan-2026 18:01:03 Asia/Kolkata] JSON encoded: []
[02-Jan-2026 18:01:03 Asia/Kolkata] ==================
[02-Jan-2026 18:02:42 Asia/Kolkata] Toggle Save Template - User ID: 96, Template ID: 6
[02-Jan-2026 18:02:42 Asia/Kolkata] Toggle Save Template - Template saved successfully
[02-Jan-2026 18:02:45 Asia/Kolkata] Toggle Save Template - User ID: 96, Template ID: 6
[02-Jan-2026 18:02:45 Asia/Kolkata] Toggle Save Template - Template unsaved successfully
[02-Jan-2026 18:03:56 Asia/Kolkata] Toggle Save Template - User ID: 96, Template ID: 6
[02-Jan-2026 18:03:56 Asia/Kolkata] Toggle Save Template - Template saved successfully
[02-Jan-2026 18:03:57 Asia/Kolkata] Toggle Save Template - User ID: 96, Template ID: 6
[02-Jan-2026 18:03:57 Asia/Kolkata] Toggle Save Template - Template unsaved successfully
[02-Jan-2026 18:03:57 Asia/Kolkata] Toggle Save Template - User ID: 96, Template ID: 6
[02-Jan-2026 18:03:57 Asia/Kolkata] Toggle Save Template - Template saved successfully
[02-Jan-2026 18:03:58 Asia/Kolkata] Toggle Save Template - User ID: 96, Template ID: 6
[02-Jan-2026 18:03:58 Asia/Kolkata] Toggle Save Template - Template unsaved successfully
[02-Jan-2026 18:07:51 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:07:51 Asia/Kolkata] Template ID: 26
[02-Jan-2026 18:07:51 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:07:51 Asia/Kolkata] Query executed
[02-Jan-2026 18:07:51 Asia/Kolkata] Query returned 2 rows
[02-Jan-2026 18:07:51 Asia/Kolkata] Found 2 positions in result_array()
[02-Jan-2026 18:07:51 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[02-Jan-2026 18:07:51 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[02-Jan-2026 18:07:51 Asia/Kolkata] Verified positions count: 2
[02-Jan-2026 18:07:51 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 18:07:51 Asia/Kolkata] Final template_positions count: 2
[02-Jan-2026 18:07:51 Asia/Kolkata] ===========================
[02-Jan-2026 18:07:51 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[02-Jan-2026 18:07:51 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 18:07:51 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:07:51 Asia/Kolkata] Template ID: 26
[02-Jan-2026 18:07:51 Asia/Kolkata] Positions count in view: 2
[02-Jan-2026 18:07:51 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[02-Jan-2026 18:07:51 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[02-Jan-2026 18:07:51 Asia/Kolkata] ==================
[02-Jan-2026 18:10:10 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Slots Reference (1).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpApXnMy
            [error] => 0
            [size] => 896569
        )

)

[02-Jan-2026 18:10:10 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 8
    [temp_name] => congratulation
    [temp_description] => 
    [temp_width] => 6
    [temp_height] => 6
    [temp_status] => 1
    [temp_price] => 5.00
    [temp_image_positions] => [{"x":10,"y":284,"width":535,"height":651}]
    [temp_image_x] => 10
    [temp_image_y] => 284
    [temp_image_width] => 535
    [temp_image_height] => 651
)

[02-Jan-2026 18:10:10 Asia/Kolkata] Template image file detected: Slots Reference (1).jpg
[02-Jan-2026 18:10:10 Asia/Kolkata] File size: 896569
[02-Jan-2026 18:10:10 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 18:10:10 Asia/Kolkata] File error code: 0
[02-Jan-2026 18:10:10 Asia/Kolkata] Upload result from upload_doc: SUCCXX974921489slotsreference1jpg.jpg.jpg
[02-Jan-2026 18:10:10 Asia/Kolkata] Template image uploaded successfully: 974921489slotsreference1jpg.jpg.jpg
[02-Jan-2026 18:11:37 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Slots Reference (1).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpxagSzH
            [error] => 0
            [size] => 896569
        )

)

[02-Jan-2026 18:11:37 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 8
    [temp_name] => achiever club
    [temp_description] => 
    [temp_width] => 6
    [temp_height] => 6
    [temp_status] => 1
    [temp_price] => 5.00
    [temp_image_positions] => [{"x":10,"y":284,"width":535,"height":651}]
    [temp_image_x] => 10
    [temp_image_y] => 284
    [temp_image_width] => 535
    [temp_image_height] => 651
)

[02-Jan-2026 18:11:37 Asia/Kolkata] Template image file detected: Slots Reference (1).jpg
[02-Jan-2026 18:11:37 Asia/Kolkata] File size: 896569
[02-Jan-2026 18:11:37 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 18:11:37 Asia/Kolkata] File error code: 0
[02-Jan-2026 18:11:38 Asia/Kolkata] Upload result from upload_doc: SUCCXX111134845slotsreference1jpg.jpg.jpg
[02-Jan-2026 18:11:38 Asia/Kolkata] Template image uploaded successfully: 111134845slotsreference1jpg.jpg.jpg
[02-Jan-2026 18:12:28 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Slots Reference (1).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpBXsEPI
            [error] => 0
            [size] => 896569
        )

)

[02-Jan-2026 18:12:28 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 8
    [temp_name] => This week
    [temp_description] => 
    [temp_width] => 6
    [temp_height] => 6
    [temp_status] => 1
    [temp_price] => 5.00
    [temp_image_positions] => [{"x":10,"y":284,"width":535,"height":651}]
    [temp_image_x] => 10
    [temp_image_y] => 284
    [temp_image_width] => 535
    [temp_image_height] => 651
)

[02-Jan-2026 18:12:28 Asia/Kolkata] Template image file detected: Slots Reference (1).jpg
[02-Jan-2026 18:12:28 Asia/Kolkata] File size: 896569
[02-Jan-2026 18:12:28 Asia/Kolkata] File type: image/jpeg
[02-Jan-2026 18:12:28 Asia/Kolkata] File error code: 0
[02-Jan-2026 18:12:29 Asia/Kolkata] Upload result from upload_doc: SUCCXX165055018slotsreference1jpg.jpg.jpg
[02-Jan-2026 18:12:29 Asia/Kolkata] Template image uploaded successfully: 165055018slotsreference1jpg.jpg.jpg
[02-Jan-2026 18:13:53 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:13:53 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:13:53 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:13:53 Asia/Kolkata] Query executed
[02-Jan-2026 18:13:53 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:13:53 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:13:53 Asia/Kolkata] Position 0: x=10, y=284, width=535, height=651, order=0
[02-Jan-2026 18:13:53 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:13:53 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:13:53 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:13:53 Asia/Kolkata] ===========================
[02-Jan-2026 18:13:53 Asia/Kolkata] Template ID: 30 - PHP Positions Count: 1
[02-Jan-2026 18:13:53 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:13:53 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:13:53 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:13:53 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:13:53 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:13:53 Asia/Kolkata] JSON encoded: [{"x":10,"y":284,"width":535,"height":651,"pos_order":0}]
[02-Jan-2026 18:13:53 Asia/Kolkata] ==================
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Session YID: 96
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767357770,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"96","name":"Alem penzu","email":"Alempenzu@gmail.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"964205251210","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"96","wallet_bal":"0.00","name":"Alem penzu","email":"Alempenzu@gmail.com","pass":"dc724af18fbdd4e59189f5fe768a5f8311527050","contact":"","skype":"","ip":"","date":"2025-12-10 13:47:07","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"964205251210","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Alem","lastname":"penzu","username":null,"phone":"9615733393","skill":null,"displayname":null}
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - User ID: 96
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 96
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Total orders for user 96: 0
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Orders with status 1 for user 96: 0
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '96' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 18:15:14 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 18:18:56 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:18:56 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:18:56 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:18:56 Asia/Kolkata] Query executed
[02-Jan-2026 18:18:56 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:18:56 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:18:56 Asia/Kolkata] Position 0: x=10, y=284, width=535, height=651, order=0
[02-Jan-2026 18:18:56 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:18:56 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:18:56 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:18:56 Asia/Kolkata] ===========================
[02-Jan-2026 18:18:56 Asia/Kolkata] Template ID: 30 - PHP Positions Count: 1
[02-Jan-2026 18:18:56 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:18:56 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:18:56 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:18:56 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:18:56 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:18:56 Asia/Kolkata] JSON encoded: [{"x":10,"y":284,"width":535,"height":651,"pos_order":0}]
[02-Jan-2026 18:18:56 Asia/Kolkata] ==================
[02-Jan-2026 18:19:24 Asia/Kolkata] Received all_photo_adjustments JSON with 1 images
[02-Jan-2026 18:19:24 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=0.69%, y=19.78%, w=37.15%, h=45.33%
[02-Jan-2026 18:19:24 Asia/Kolkata] Found 1 template positions for template ID: 30
[02-Jan-2026 18:19:24 Asia/Kolkata] === BEFORE GENERATION ===
[02-Jan-2026 18:19:24 Asia/Kolkata] Total photos to generate: 1
[02-Jan-2026 18:19:24 Asia/Kolkata] Photo #0 (USER): photo_96_1767358164_0.jpeg - Exists: YES
[02-Jan-2026 18:19:24 Asia/Kolkata] GD extension is loaded via extension_loaded()
[02-Jan-2026 18:19:24 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/165055018slotsreference1jpg.jpg.jpg (extension: jpg)
[02-Jan-2026 18:19:24 Asia/Kolkata] Template image loaded successfully. Dimensions: 1440x1436
[02-Jan-2026 18:19:24 Asia/Kolkata] Template copied to output image. Output dimensions: 1440x1436
[02-Jan-2026 18:19:24 Asia/Kolkata] Template source dimensions: 1440x1436
[02-Jan-2026 18:19:24 Asia/Kolkata] Total photos to process: 1
[02-Jan-2026 18:19:24 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/96/photo_96_1767358164_0.jpeg
[02-Jan-2026 18:19:24 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 18:19:24 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 720x1280
[02-Jan-2026 18:19:24 Asia/Kolkata] Using index-specific adjustments for photo #0
[02-Jan-2026 18:19:24 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=9.936, y=284.0408, w=534.96, h=650.9388
[02-Jan-2026 18:19:24 Asia/Kolkata] Photo #0 - Percentages: x=0.69%, y=19.78%, w=37.15%, h=45.33%
[02-Jan-2026 18:19:24 Asia/Kolkata] Resized photo dimensions: 534.96x650.9388
[02-Jan-2026 18:19:24 Asia/Kolkata] Photo #0 - Final position (user-set): x=9.936, y=284.0408, width=534.96, height=650.9388
[02-Jan-2026 18:19:24 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=9, y=284, size: 534x650
[02-Jan-2026 18:22:05 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Slots Reference.png
            [type] => image/png
            [tmp_name] => /tmp/phpTHUmUL
            [error] => 0
            [size] => 1420147
        )

)

[02-Jan-2026 18:22:05 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 8
    [temp_name] => test
    [temp_description] => 
    [temp_width] => 775
    [temp_height] => 416
    [temp_status] => 1
    [temp_price] => 0.00
    [temp_image_positions] => [{"x":234,"y":410,"width":775,"height":416}]
    [temp_image_x] => 234
    [temp_image_y] => 410
    [temp_image_width] => 775
    [temp_image_height] => 416
)

[02-Jan-2026 18:22:05 Asia/Kolkata] Template image file detected: Slots Reference.png
[02-Jan-2026 18:22:05 Asia/Kolkata] File size: 1420147
[02-Jan-2026 18:22:05 Asia/Kolkata] File type: image/png
[02-Jan-2026 18:22:05 Asia/Kolkata] File error code: 0
[02-Jan-2026 18:22:07 Asia/Kolkata] Upload result from upload_doc: SUCCXX801481799slotsreferencepng.png.png
[02-Jan-2026 18:22:07 Asia/Kolkata] Template image uploaded successfully: 801481799slotsreferencepng.png.png
[02-Jan-2026 18:22:07 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:22:07 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:07 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:22:07 Asia/Kolkata] Query executed
[02-Jan-2026 18:22:07 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:22:07 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:22:07 Asia/Kolkata] Position 0: x=10, y=284, width=535, height=651, order=0
[02-Jan-2026 18:22:07 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:22:07 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:07 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:22:07 Asia/Kolkata] ===========================
[02-Jan-2026 18:22:07 Asia/Kolkata] Template ID: 30 - PHP Positions Count: 1
[02-Jan-2026 18:22:07 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:07 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:22:07 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:07 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:22:07 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:07 Asia/Kolkata] JSON encoded: [{"x":10,"y":284,"width":535,"height":651,"pos_order":0}]
[02-Jan-2026 18:22:07 Asia/Kolkata] ==================
[02-Jan-2026 18:22:09 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:22:09 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:09 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:22:09 Asia/Kolkata] Query executed
[02-Jan-2026 18:22:09 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:22:09 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:22:09 Asia/Kolkata] Position 0: x=10, y=284, width=535, height=651, order=0
[02-Jan-2026 18:22:09 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:22:09 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:09 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:22:09 Asia/Kolkata] ===========================
[02-Jan-2026 18:22:09 Asia/Kolkata] Template ID: 30 - PHP Positions Count: 1
[02-Jan-2026 18:22:09 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:09 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:22:09 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:09 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:22:09 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:09 Asia/Kolkata] JSON encoded: [{"x":10,"y":284,"width":535,"height":651,"pos_order":0}]
[02-Jan-2026 18:22:09 Asia/Kolkata] ==================
[02-Jan-2026 18:22:16 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:22:16 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:16 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:22:16 Asia/Kolkata] Query executed
[02-Jan-2026 18:22:16 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:22:16 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:22:16 Asia/Kolkata] Position 0: x=10, y=284, width=535, height=651, order=0
[02-Jan-2026 18:22:16 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:22:16 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:16 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:22:16 Asia/Kolkata] ===========================
[02-Jan-2026 18:22:16 Asia/Kolkata] Template ID: 30 - PHP Positions Count: 1
[02-Jan-2026 18:22:16 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:16 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:22:16 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:16 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:22:16 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:16 Asia/Kolkata] JSON encoded: [{"x":10,"y":284,"width":535,"height":651,"pos_order":0}]
[02-Jan-2026 18:22:16 Asia/Kolkata] ==================
[02-Jan-2026 18:22:22 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:22:22 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:22 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:22:22 Asia/Kolkata] Query executed
[02-Jan-2026 18:22:22 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:22:22 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:22:22 Asia/Kolkata] Position 0: x=10, y=284, width=535, height=651, order=0
[02-Jan-2026 18:22:22 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:22:22 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:22 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:22:22 Asia/Kolkata] ===========================
[02-Jan-2026 18:22:22 Asia/Kolkata] Template ID: 30 - PHP Positions Count: 1
[02-Jan-2026 18:22:22 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:22 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:22:22 Asia/Kolkata] Template ID: 30
[02-Jan-2026 18:22:22 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:22:22 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 10
            [y] => 284
            [width] => 535
            [height] => 651
            [pos_order] => 0
        )

)

[02-Jan-2026 18:22:22 Asia/Kolkata] JSON encoded: [{"x":10,"y":284,"width":535,"height":651,"pos_order":0}]
[02-Jan-2026 18:22:22 Asia/Kolkata] ==================
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Session YID: 96
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767358416,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"96","name":"Alem penzu","email":"Alempenzu@gmail.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"964205251210","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"96","wallet_bal":"95.00","name":"Alem penzu","email":"Alempenzu@gmail.com","pass":"dc724af18fbdd4e59189f5fe768a5f8311527050","contact":"","skype":"","ip":"","date":"2025-12-10 13:47:07","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"964205251210","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Alem","lastname":"penzu","username":null,"phone":"9615733393","skill":null,"displayname":null}
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - User ID: 96
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 96
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Total orders for user 96: 0
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Orders with status 1 for user 96: 0
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '96' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 18:23:36 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Session YID: 96
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767358416,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"96","name":"Alem penzu","email":"Alempenzu@gmail.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"964205251210","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"96","wallet_bal":"95.00","name":"Alem penzu","email":"Alempenzu@gmail.com","pass":"dc724af18fbdd4e59189f5fe768a5f8311527050","contact":"","skype":"","ip":"","date":"2025-12-10 13:47:07","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"964205251210","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Alem","lastname":"penzu","username":null,"phone":"9615733393","skill":null,"displayname":null}
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - User Type: student
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - User ID: 96
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Database user_type: student
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Using database user_type: student
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 96
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Total orders for user 96: 0
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Orders with status 1 for user 96: 0
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '96' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Order data: []
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Final topics count: 0
[02-Jan-2026 18:23:38 Asia/Kolkata] Profile Debug - Topics data: []
[02-Jan-2026 18:25:35 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Slots Reference.png
            [type] => image/png
            [tmp_name] => /tmp/phppkSNLN
            [error] => 0
            [size] => 1420147
        )

)

[02-Jan-2026 18:25:35 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 8
    [temp_name] => my name
    [temp_description] => 
    [temp_width] => 775
    [temp_height] => 416
    [temp_status] => 1
    [temp_price] => 0.00
    [temp_image_positions] => [{"x":234,"y":410,"width":775,"height":416}]
    [temp_image_x] => 234
    [temp_image_y] => 410
    [temp_image_width] => 775
    [temp_image_height] => 416
)

[02-Jan-2026 18:25:35 Asia/Kolkata] Template image file detected: Slots Reference.png
[02-Jan-2026 18:25:35 Asia/Kolkata] File size: 1420147
[02-Jan-2026 18:25:35 Asia/Kolkata] File type: image/png
[02-Jan-2026 18:25:35 Asia/Kolkata] File error code: 0
[02-Jan-2026 18:25:36 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:25:36 Asia/Kolkata] Template ID: 31
[02-Jan-2026 18:25:36 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:25:36 Asia/Kolkata] Query executed
[02-Jan-2026 18:25:36 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:25:36 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:25:36 Asia/Kolkata] Position 0: x=234, y=410, width=775, height=416, order=0
[02-Jan-2026 18:25:36 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:25:36 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 234
            [y] => 410
            [width] => 775
            [height] => 416
            [pos_order] => 0
        )

)

[02-Jan-2026 18:25:36 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:25:36 Asia/Kolkata] ===========================
[02-Jan-2026 18:25:36 Asia/Kolkata] Template ID: 31 - PHP Positions Count: 1
[02-Jan-2026 18:25:36 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 234
            [y] => 410
            [width] => 775
            [height] => 416
            [pos_order] => 0
        )

)

[02-Jan-2026 18:25:36 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:25:36 Asia/Kolkata] Template ID: 31
[02-Jan-2026 18:25:36 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:25:36 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 234
            [y] => 410
            [width] => 775
            [height] => 416
            [pos_order] => 0
        )

)

[02-Jan-2026 18:25:36 Asia/Kolkata] JSON encoded: [{"x":234,"y":410,"width":775,"height":416,"pos_order":0}]
[02-Jan-2026 18:25:36 Asia/Kolkata] ==================
[02-Jan-2026 18:25:37 Asia/Kolkata] Upload result from upload_doc: SUCCXX422657080slotsreferencepng.png.png
[02-Jan-2026 18:25:37 Asia/Kolkata] Template image uploaded successfully: 422657080slotsreferencepng.png.png
[02-Jan-2026 18:25:59 Asia/Kolkata] Received all_photo_adjustments JSON with 1 images
[02-Jan-2026 18:25:59 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=18.28%, y=32.03%, w=60.55%, h=32.50%
[02-Jan-2026 18:25:59 Asia/Kolkata] Found 1 template positions for template ID: 31
[02-Jan-2026 18:25:59 Asia/Kolkata] === BEFORE GENERATION ===
[02-Jan-2026 18:25:59 Asia/Kolkata] Total photos to generate: 1
[02-Jan-2026 18:25:59 Asia/Kolkata] Photo #0 (USER): photo_96_1767358559_0.jpeg - Exists: YES
[02-Jan-2026 18:25:59 Asia/Kolkata] GD extension is loaded via extension_loaded()
[02-Jan-2026 18:25:59 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/801481799slotsreferencepng.png.png (extension: png)
[02-Jan-2026 18:25:59 Asia/Kolkata] Template image loaded successfully. Dimensions: 1280x1280
[02-Jan-2026 18:25:59 Asia/Kolkata] Template copied to output image. Output dimensions: 1280x1280
[02-Jan-2026 18:25:59 Asia/Kolkata] Template source dimensions: 1280x1280
[02-Jan-2026 18:25:59 Asia/Kolkata] Total photos to process: 1
[02-Jan-2026 18:25:59 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/96/photo_96_1767358559_0.jpeg
[02-Jan-2026 18:25:59 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 18:25:59 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 720x1280
[02-Jan-2026 18:25:59 Asia/Kolkata] Using index-specific adjustments for photo #0
[02-Jan-2026 18:25:59 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=233.984, y=409.984, w=775.04, h=416
[02-Jan-2026 18:25:59 Asia/Kolkata] Photo #0 - Percentages: x=18.28%, y=32.03%, w=60.55%, h=32.5%
[02-Jan-2026 18:25:59 Asia/Kolkata] Resized photo dimensions: 775.04x416
[02-Jan-2026 18:25:59 Asia/Kolkata] Photo #0 - Final position (user-set): x=233.984, y=409.984, width=775.04, height=416
[02-Jan-2026 18:25:59 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=233, y=409, size: 775x416
[02-Jan-2026 18:27:59 Asia/Kolkata] Received all_photo_adjustments JSON with 2 images
[02-Jan-2026 18:27:59 Asia/Kolkata] Found 1 template positions for template ID: 31
[02-Jan-2026 18:27:59 Asia/Kolkata] === BEFORE GENERATION ===
[02-Jan-2026 18:27:59 Asia/Kolkata] Total photos to generate: 2
[02-Jan-2026 18:27:59 Asia/Kolkata] Photo #0 (USER): photo_96_1767358679_0.jpeg - Exists: YES
[02-Jan-2026 18:27:59 Asia/Kolkata] Photo #1 (USER): photo_96_1767358679_1.png - Exists: YES
[02-Jan-2026 18:27:59 Asia/Kolkata] GD extension is loaded via extension_loaded()
[02-Jan-2026 18:27:59 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/801481799slotsreferencepng.png.png (extension: png)
[02-Jan-2026 18:27:59 Asia/Kolkata] Template image loaded successfully. Dimensions: 1280x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Template copied to output image. Output dimensions: 1280x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Template source dimensions: 1280x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Total photos to process: 2
[02-Jan-2026 18:28:00 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/96/photo_96_1767358679_0.jpeg
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 18:28:00 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 720x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] === USING TEMPLATE POSITION ===
[02-Jan-2026 18:28:00 Asia/Kolkata] User photo #0 - Using template position []
[02-Jan-2026 18:28:00 Asia/Kolkata] Admin position: x=234, y=410, w=775, h=416
[02-Jan-2026 18:28:00 Asia/Kolkata] Template dimensions: 775x416
[02-Jan-2026 18:28:00 Asia/Kolkata] Output dimensions: 1280x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Scale: x=1.6516129032258, y=3.0769230769231
[02-Jan-2026 18:28:00 Asia/Kolkata] Final position: x=666.47741935484, y=1261.5384615385, w=720, h=1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Resized photo dimensions: 720x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo X position clamped to maximum: 560
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo Y position clamped to maximum: 0
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo #0 - Final position (user-set): x=560, y=0, width=720, height=1280
[02-Jan-2026 18:28:00 Asia/Kolkata] User photo #0 overlaid successfully at position: x=560, y=0, size: 720x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Processing USER photo #1: ./assets/ai/uploads/user_photos/96/photo_96_1767358679_1.png
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 18:28:00 Asia/Kolkata] User photo #1 loaded successfully. Dimensions: 1442x3202
[02-Jan-2026 18:28:00 Asia/Kolkata] WARNING: Template position not found for photo index 1. Available positions: 1
[02-Jan-2026 18:28:00 Asia/Kolkata] User photo #1 - Using legacy admin position: x=738.25755676895, y=1261.5384615385, w=576.43972517177, h=1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Resized photo dimensions: 576.43972517177x1280
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo X position clamped to maximum: 703.56027482823
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo Y position clamped to maximum: 0
[02-Jan-2026 18:28:00 Asia/Kolkata] Photo #1 - Final position (user-set): x=703.56027482823, y=0, width=576.43972517177, height=1280
[02-Jan-2026 18:28:00 Asia/Kolkata] User photo #1 overlaid successfully at position: x=703, y=0, size: 576x1280
[02-Jan-2026 18:28:47 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[02-Jan-2026 18:28:47 Asia/Kolkata] Template ID: 32
[02-Jan-2026 18:28:47 Asia/Kolkata] Status condition:  AND pos_status = '1'
[02-Jan-2026 18:28:47 Asia/Kolkata] Query executed
[02-Jan-2026 18:28:47 Asia/Kolkata] Query returned 1 rows
[02-Jan-2026 18:28:47 Asia/Kolkata] Found 1 positions in result_array()
[02-Jan-2026 18:28:47 Asia/Kolkata] Position 0: x=234, y=410, width=775, height=416, order=0
[02-Jan-2026 18:28:47 Asia/Kolkata] Verified positions count: 1
[02-Jan-2026 18:28:47 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 234
            [y] => 410
            [width] => 775
            [height] => 416
            [pos_order] => 0
        )

)

[02-Jan-2026 18:28:47 Asia/Kolkata] Final template_positions count: 1
[02-Jan-2026 18:28:47 Asia/Kolkata] ===========================
[02-Jan-2026 18:28:47 Asia/Kolkata] Template ID: 32 - PHP Positions Count: 1
[02-Jan-2026 18:28:47 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 234
            [y] => 410
            [width] => 775
            [height] => 416
            [pos_order] => 0
        )

)

[02-Jan-2026 18:28:47 Asia/Kolkata] === VIEW DEBUG ===
[02-Jan-2026 18:28:47 Asia/Kolkata] Template ID: 32
[02-Jan-2026 18:28:47 Asia/Kolkata] Positions count in view: 1
[02-Jan-2026 18:28:47 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 234
            [y] => 410
            [width] => 775
            [height] => 416
            [pos_order] => 0
        )

)

[02-Jan-2026 18:28:47 Asia/Kolkata] JSON encoded: [{"x":234,"y":410,"width":775,"height":416,"pos_order":0}]
[02-Jan-2026 18:28:47 Asia/Kolkata] ==================
[02-Jan-2026 18:29:12 Asia/Kolkata] Received all_photo_adjustments JSON with 1 images
[02-Jan-2026 18:29:12 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=18.28%, y=32.03%, w=60.55%, h=32.50%
[02-Jan-2026 18:29:12 Asia/Kolkata] Found 1 template positions for template ID: 32
[02-Jan-2026 18:29:12 Asia/Kolkata] === BEFORE GENERATION ===
[02-Jan-2026 18:29:12 Asia/Kolkata] Total photos to generate: 1
[02-Jan-2026 18:29:12 Asia/Kolkata] Photo #0 (USER): photo_96_1767358752_0.jpeg - Exists: YES
[02-Jan-2026 18:29:12 Asia/Kolkata] GD extension is loaded via extension_loaded()
[02-Jan-2026 18:29:12 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/422657080slotsreferencepng.png.png (extension: png)
[02-Jan-2026 18:29:12 Asia/Kolkata] Template image loaded successfully. Dimensions: 1280x1280
[02-Jan-2026 18:29:12 Asia/Kolkata] Template copied to output image. Output dimensions: 1280x1280
[02-Jan-2026 18:29:12 Asia/Kolkata] Template source dimensions: 1280x1280
[02-Jan-2026 18:29:12 Asia/Kolkata] Total photos to process: 1
[02-Jan-2026 18:29:12 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/96/photo_96_1767358752_0.jpeg
[02-Jan-2026 18:29:12 Asia/Kolkata] Photo file exists: YES
[02-Jan-2026 18:29:12 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 1284x888
[02-Jan-2026 18:29:12 Asia/Kolkata] Using index-specific adjustments for photo #0
[02-Jan-2026 18:29:12 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=233.984, y=409.984, w=775.04, h=416
[02-Jan-2026 18:29:12 Asia/Kolkata] Photo #0 - Percentages: x=18.28%, y=32.03%, w=60.55%, h=32.5%
[02-Jan-2026 18:29:12 Asia/Kolkata] Resized photo dimensions: 775.04x416
[02-Jan-2026 18:29:12 Asia/Kolkata] Photo #0 - Final position (user-set): x=233.984, y=409.984, width=775.04, height=416
[02-Jan-2026 18:29:12 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=233, y=409, size: 775x416
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Session YID: 16
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767399302,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"3990.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - User Type: student
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - User ID: 16
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Database user_type: student
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Using database user_type: student
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Order data: []
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Final topics count: 0
[03-Jan-2026 05:46:14 Asia/Kolkata] Profile Debug - Topics data: []
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Session YID: 16
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767418813,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"3990.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - User Type: student
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - User ID: 16
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Database user_type: student
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Using database user_type: student
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Order data: []
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Final topics count: 0
[03-Jan-2026 11:10:34 Asia/Kolkata] Profile Debug - Topics data: []
[03-Jan-2026 12:09:31 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[03-Jan-2026 12:09:31 Asia/Kolkata] Template ID: 26
[03-Jan-2026 12:09:31 Asia/Kolkata] Status condition:  AND pos_status = '1'
[03-Jan-2026 12:09:31 Asia/Kolkata] Query executed
[03-Jan-2026 12:09:31 Asia/Kolkata] Query returned 2 rows
[03-Jan-2026 12:09:31 Asia/Kolkata] Found 2 positions in result_array()
[03-Jan-2026 12:09:31 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[03-Jan-2026 12:09:31 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[03-Jan-2026 12:09:31 Asia/Kolkata] Verified positions count: 2
[03-Jan-2026 12:09:31 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[03-Jan-2026 12:09:31 Asia/Kolkata] Final template_positions count: 2
[03-Jan-2026 12:09:31 Asia/Kolkata] ===========================
[03-Jan-2026 12:09:31 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[03-Jan-2026 12:09:31 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[03-Jan-2026 12:09:31 Asia/Kolkata] === VIEW DEBUG ===
[03-Jan-2026 12:09:31 Asia/Kolkata] Template ID: 26
[03-Jan-2026 12:09:31 Asia/Kolkata] Positions count in view: 2
[03-Jan-2026 12:09:31 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[03-Jan-2026 12:09:31 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[03-Jan-2026 12:09:31 Asia/Kolkata] ==================
[03-Jan-2026 12:09:52 Asia/Kolkata] Received all_photo_adjustments JSON with 2 images
[03-Jan-2026 12:09:52 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=7.69%, y=36.67%, w=30.37%, h=23.61%
[03-Jan-2026 12:09:52 Asia/Kolkata] USER photo #1 - Using percentage adjustments: x=82.96%, y=30.93%, w=12.22%, h=25.46%
[03-Jan-2026 12:09:52 Asia/Kolkata] Found 2 template positions for template ID: 26
[03-Jan-2026 12:09:52 Asia/Kolkata] === BEFORE GENERATION ===
[03-Jan-2026 12:09:52 Asia/Kolkata] Total photos to generate: 2
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #0 (USER): photo_16_1767422392_0.png - Exists: YES
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #1 (USER): photo_16_1767422392_1.jpg - Exists: YES
[03-Jan-2026 12:09:52 Asia/Kolkata] GD extension is loaded via extension_loaded()
[03-Jan-2026 12:09:52 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/904332915emptytemplatejpg.jpg.jpg (extension: jpg)
[03-Jan-2026 12:09:52 Asia/Kolkata] Template image loaded successfully. Dimensions: 1080x1080
[03-Jan-2026 12:09:52 Asia/Kolkata] Template copied to output image. Output dimensions: 1080x1080
[03-Jan-2026 12:09:52 Asia/Kolkata] Template source dimensions: 1080x1080
[03-Jan-2026 12:09:52 Asia/Kolkata] Total photos to process: 2
[03-Jan-2026 12:09:52 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767422392_0.png
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo file exists: YES
[03-Jan-2026 12:09:52 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 457x497
[03-Jan-2026 12:09:52 Asia/Kolkata] Using index-specific adjustments for photo #0
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=83.052, y=396.036, w=327.996, h=254.988
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #0 - Percentages: x=7.69%, y=36.67%, w=30.37%, h=23.61%
[03-Jan-2026 12:09:52 Asia/Kolkata] Resized photo dimensions: 327.996x254.988
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #0 - Final position (user-set): x=83.052, y=396.036, width=327.996, height=254.988
[03-Jan-2026 12:09:52 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=83, y=396, size: 327x254
[03-Jan-2026 12:09:52 Asia/Kolkata] Processing USER photo #1: ./assets/ai/uploads/user_photos/16/photo_16_1767422392_1.jpg
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo file exists: YES
[03-Jan-2026 12:09:52 Asia/Kolkata] User photo #1 loaded successfully. Dimensions: 640x960
[03-Jan-2026 12:09:52 Asia/Kolkata] Using index-specific adjustments for photo #1
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #1 - Using percentage-based adjustments: x=895.968, y=334.044, w=131.976, h=274.968
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #1 - Percentages: x=82.96%, y=30.93%, w=12.22%, h=25.46%
[03-Jan-2026 12:09:52 Asia/Kolkata] Resized photo dimensions: 131.976x274.968
[03-Jan-2026 12:09:52 Asia/Kolkata] Photo #1 - Final position (user-set): x=895.968, y=334.044, width=131.976, height=274.968
[03-Jan-2026 12:09:52 Asia/Kolkata] USER photo #1 overlaid successfully at position: x=895, y=334, size: 131x274
[03-Jan-2026 12:15:38 Asia/Kolkata] Template upload - FILES data: Array
(
)

[03-Jan-2026 12:15:38 Asia/Kolkata] POST data: Array
(
    [todo] => 30
    [temp_coll_id] => 8
    [temp_name] => This week
    [temp_description] => 
    [temp_width] => 6
    [temp_height] => 6
    [temp_status] => 1
    [temp_price] => 5.00
    [temp_image] => 
    [temp_image_positions] => [{"x":138,"y":275,"width":301,"height":656},{"x":1155,"y":1069,"width":233,"height":362}]
    [temp_image_x] => 138
    [temp_image_y] => 275
    [temp_image_width] => 301
    [temp_image_height] => 656
)

[03-Jan-2026 12:15:38 Asia/Kolkata] No template image file provided or upload error
[03-Jan-2026 12:16:00 Asia/Kolkata] Template upload - FILES data: Array
(
)

[03-Jan-2026 12:16:00 Asia/Kolkata] POST data: Array
(
    [todo] => 30
    [temp_coll_id] => 8
    [temp_name] => Promo Strip — Simple discount banner
    [temp_description] => 
    [temp_width] => 6
    [temp_height] => 6
    [temp_status] => 1
    [temp_price] => 5.00
    [temp_image] => 
    [temp_image_positions] => [{"x":138,"y":275,"width":301,"height":656},{"x":1155,"y":1069,"width":233,"height":362}]
    [temp_image_x] => 138
    [temp_image_y] => 275
    [temp_image_width] => 301
    [temp_image_height] => 656
)

[03-Jan-2026 12:16:00 Asia/Kolkata] No template image file provided or upload error
[03-Jan-2026 12:27:19 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Empty Template (2).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpN9E1OM
            [error] => 0
            [size] => 547178
        )

)

[03-Jan-2026 12:27:19 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 8
    [temp_name] => ✨ Birthday Golden Spark Design
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 20
    [temp_image_positions] => [{"x":96,"y":369,"width":406,"height":618},{"x":1182,"y":881,"width":345,"height":525}]
    [temp_image_x] => 96
    [temp_image_y] => 369
    [temp_image_width] => 406
    [temp_image_height] => 618
)

[03-Jan-2026 12:27:19 Asia/Kolkata] Template image file detected: Empty Template (2).jpg
[03-Jan-2026 12:27:19 Asia/Kolkata] File size: 547178
[03-Jan-2026 12:27:19 Asia/Kolkata] File type: image/jpeg
[03-Jan-2026 12:27:19 Asia/Kolkata] File error code: 0
[03-Jan-2026 12:27:19 Asia/Kolkata] Upload result from upload_doc: SUCCXX331326744emptytemplate2jpg.jpg.jpg
[03-Jan-2026 12:27:19 Asia/Kolkata] Template image uploaded successfully: 331326744emptytemplate2jpg.jpg.jpg
[03-Jan-2026 12:30:06 Asia/Kolkata] Template upload - FILES data: Array
(
)

[03-Jan-2026 12:30:06 Asia/Kolkata] POST data: Array
(
    [todo] => 9
    [temp_coll_id] => 5
    [temp_name] => ✨ Diwali Golden Spark Design
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 0.00
    [temp_image] => 
    [temp_image_positions] => [{"x":1174,"y":1052,"width":267,"height":413}]
    [temp_image_x] => 1174
    [temp_image_y] => 1052
    [temp_image_width] => 267
    [temp_image_height] => 413
)

[03-Jan-2026 12:30:06 Asia/Kolkata] No template image file provided or upload error
[03-Jan-2026 12:30:18 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[03-Jan-2026 12:30:18 Asia/Kolkata] Template ID: 9
[03-Jan-2026 12:30:18 Asia/Kolkata] Status condition:  AND pos_status = '1'
[03-Jan-2026 12:30:18 Asia/Kolkata] Query executed
[03-Jan-2026 12:30:18 Asia/Kolkata] Query returned 1 rows
[03-Jan-2026 12:30:18 Asia/Kolkata] Found 1 positions in result_array()
[03-Jan-2026 12:30:18 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[03-Jan-2026 12:30:18 Asia/Kolkata] Verified positions count: 1
[03-Jan-2026 12:30:18 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:30:18 Asia/Kolkata] Final template_positions count: 1
[03-Jan-2026 12:30:18 Asia/Kolkata] ===========================
[03-Jan-2026 12:30:18 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[03-Jan-2026 12:30:18 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:30:18 Asia/Kolkata] === VIEW DEBUG ===
[03-Jan-2026 12:30:18 Asia/Kolkata] Template ID: 9
[03-Jan-2026 12:30:18 Asia/Kolkata] Positions count in view: 1
[03-Jan-2026 12:30:18 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:30:18 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[03-Jan-2026 12:30:18 Asia/Kolkata] ==================
[03-Jan-2026 12:30:46 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[03-Jan-2026 12:30:46 Asia/Kolkata] Template ID: 9
[03-Jan-2026 12:30:46 Asia/Kolkata] Status condition:  AND pos_status = '1'
[03-Jan-2026 12:30:46 Asia/Kolkata] Query executed
[03-Jan-2026 12:30:46 Asia/Kolkata] Query returned 1 rows
[03-Jan-2026 12:30:46 Asia/Kolkata] Found 1 positions in result_array()
[03-Jan-2026 12:30:46 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[03-Jan-2026 12:30:46 Asia/Kolkata] Verified positions count: 1
[03-Jan-2026 12:30:46 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:30:46 Asia/Kolkata] Final template_positions count: 1
[03-Jan-2026 12:30:46 Asia/Kolkata] ===========================
[03-Jan-2026 12:30:46 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[03-Jan-2026 12:30:46 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:30:46 Asia/Kolkata] === VIEW DEBUG ===
[03-Jan-2026 12:30:46 Asia/Kolkata] Template ID: 9
[03-Jan-2026 12:30:46 Asia/Kolkata] Positions count in view: 1
[03-Jan-2026 12:30:46 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:30:46 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[03-Jan-2026 12:30:46 Asia/Kolkata] ==================
[03-Jan-2026 12:34:21 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[03-Jan-2026 12:34:21 Asia/Kolkata] Template ID: 9
[03-Jan-2026 12:34:21 Asia/Kolkata] Status condition:  AND pos_status = '1'
[03-Jan-2026 12:34:21 Asia/Kolkata] Query executed
[03-Jan-2026 12:34:21 Asia/Kolkata] Query returned 1 rows
[03-Jan-2026 12:34:21 Asia/Kolkata] Found 1 positions in result_array()
[03-Jan-2026 12:34:21 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[03-Jan-2026 12:34:21 Asia/Kolkata] Verified positions count: 1
[03-Jan-2026 12:34:21 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:34:21 Asia/Kolkata] Final template_positions count: 1
[03-Jan-2026 12:34:21 Asia/Kolkata] ===========================
[03-Jan-2026 12:34:21 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[03-Jan-2026 12:34:21 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:34:21 Asia/Kolkata] === VIEW DEBUG ===
[03-Jan-2026 12:34:21 Asia/Kolkata] Template ID: 9
[03-Jan-2026 12:34:21 Asia/Kolkata] Positions count in view: 1
[03-Jan-2026 12:34:21 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[03-Jan-2026 12:34:21 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[03-Jan-2026 12:34:21 Asia/Kolkata] ==================
[03-Jan-2026 12:34:51 Asia/Kolkata] Received all_photo_adjustments JSON with 1 images
[03-Jan-2026 12:34:51 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=78.27%, y=70.13%, w=17.80%, h=27.53%
[03-Jan-2026 12:34:51 Asia/Kolkata] Found 1 template positions for template ID: 9
[03-Jan-2026 12:34:51 Asia/Kolkata] === BEFORE GENERATION ===
[03-Jan-2026 12:34:51 Asia/Kolkata] Total photos to generate: 1
[03-Jan-2026 12:34:51 Asia/Kolkata] Photo #0 (USER): photo_16_1767423891_0.png - Exists: YES
[03-Jan-2026 12:34:51 Asia/Kolkata] GD extension is loaded via extension_loaded()
[03-Jan-2026 12:34:51 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/171861150emptytemplate1jpg.jpg.jpg (extension: jpg)
[03-Jan-2026 12:34:51 Asia/Kolkata] Template image loaded successfully. Dimensions: 1500x1500
[03-Jan-2026 12:34:51 Asia/Kolkata] Template copied to output image. Output dimensions: 1500x1500
[03-Jan-2026 12:34:51 Asia/Kolkata] Template source dimensions: 1500x1500
[03-Jan-2026 12:34:51 Asia/Kolkata] Total photos to process: 1
[03-Jan-2026 12:34:51 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767423891_0.png
[03-Jan-2026 12:34:51 Asia/Kolkata] Photo file exists: YES
[03-Jan-2026 12:34:51 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 457x497
[03-Jan-2026 12:34:51 Asia/Kolkata] Using index-specific adjustments for photo #0
[03-Jan-2026 12:34:51 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=1174.05, y=1051.95, w=267, h=412.95
[03-Jan-2026 12:34:51 Asia/Kolkata] Photo #0 - Percentages: x=78.27%, y=70.13%, w=17.8%, h=27.53%
[03-Jan-2026 12:34:51 Asia/Kolkata] Resized photo dimensions: 267x412.95
[03-Jan-2026 12:34:51 Asia/Kolkata] Photo #0 - Final position (user-set): x=1174.05, y=1051.95, width=267, height=412.95
[03-Jan-2026 12:34:51 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=1174, y=1051, size: 267x412
[03-Jan-2026 12:47:01 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Empty Template (3).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpMLGCQs
            [error] => 0
            [size] => 2764765
        )

)

[03-Jan-2026 12:47:01 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 7
    [temp_name] => New Strip — Simple discount banner
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 20
    [temp_image_positions] => [{"x":617,"y":343,"width":417,"height":737},{"x":555,"y":1736,"width":657,"height":337}]
    [temp_image_x] => 617
    [temp_image_y] => 343
    [temp_image_width] => 417
    [temp_image_height] => 737
)

[03-Jan-2026 12:47:01 Asia/Kolkata] Template image file detected: Empty Template (3).jpg
[03-Jan-2026 12:47:01 Asia/Kolkata] File size: 2764765
[03-Jan-2026 12:47:01 Asia/Kolkata] File type: image/jpeg
[03-Jan-2026 12:47:01 Asia/Kolkata] File error code: 0
[03-Jan-2026 12:47:03 Asia/Kolkata] Upload result from upload_doc: SUCCXX919000919emptytemplate3jpg.jpg.jpg
[03-Jan-2026 12:47:03 Asia/Kolkata] Template image uploaded successfully: 919000919emptytemplate3jpg.jpg.jpg
[03-Jan-2026 12:47:22 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[03-Jan-2026 12:47:22 Asia/Kolkata] Template ID: 34
[03-Jan-2026 12:47:22 Asia/Kolkata] Status condition:  AND pos_status = '1'
[03-Jan-2026 12:47:22 Asia/Kolkata] Query executed
[03-Jan-2026 12:47:22 Asia/Kolkata] Query returned 2 rows
[03-Jan-2026 12:47:22 Asia/Kolkata] Found 2 positions in result_array()
[03-Jan-2026 12:47:22 Asia/Kolkata] Position 0: x=617, y=343, width=417, height=737, order=0
[03-Jan-2026 12:47:22 Asia/Kolkata] Position 1: x=555, y=1736, width=657, height=337, order=1
[03-Jan-2026 12:47:22 Asia/Kolkata] Verified positions count: 2
[03-Jan-2026 12:47:22 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 617
            [y] => 343
            [width] => 417
            [height] => 737
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 555
            [y] => 1736
            [width] => 657
            [height] => 337
            [pos_order] => 1
        )

)

[03-Jan-2026 12:47:22 Asia/Kolkata] Final template_positions count: 2
[03-Jan-2026 12:47:22 Asia/Kolkata] ===========================
[03-Jan-2026 12:47:22 Asia/Kolkata] Template ID: 34 - PHP Positions Count: 2
[03-Jan-2026 12:47:22 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 617
            [y] => 343
            [width] => 417
            [height] => 737
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 555
            [y] => 1736
            [width] => 657
            [height] => 337
            [pos_order] => 1
        )

)

[03-Jan-2026 12:47:22 Asia/Kolkata] === VIEW DEBUG ===
[03-Jan-2026 12:47:22 Asia/Kolkata] Template ID: 34
[03-Jan-2026 12:47:22 Asia/Kolkata] Positions count in view: 2
[03-Jan-2026 12:47:22 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 617
            [y] => 343
            [width] => 417
            [height] => 737
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 555
            [y] => 1736
            [width] => 657
            [height] => 337
            [pos_order] => 1
        )

)

[03-Jan-2026 12:47:22 Asia/Kolkata] JSON encoded: [{"x":617,"y":343,"width":417,"height":737,"pos_order":0},{"x":555,"y":1736,"width":657,"height":337,"pos_order":1}]
[03-Jan-2026 12:47:22 Asia/Kolkata] ==================
[03-Jan-2026 12:48:13 Asia/Kolkata] Received all_photo_adjustments JSON with 2 images
[03-Jan-2026 12:48:13 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=35.30%, y=13.83%, w=23.86%, h=29.72%
[03-Jan-2026 12:48:13 Asia/Kolkata] USER photo #1 - Using percentage adjustments: x=31.75%, y=70.00%, w=37.59%, h=13.59%
[03-Jan-2026 12:48:13 Asia/Kolkata] Found 2 template positions for template ID: 34
[03-Jan-2026 12:48:13 Asia/Kolkata] === BEFORE GENERATION ===
[03-Jan-2026 12:48:13 Asia/Kolkata] Total photos to generate: 2
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #0 (USER): photo_16_1767424692_0.png - Exists: YES
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #1 (USER): photo_16_1767424692_1.png - Exists: YES
[03-Jan-2026 12:48:13 Asia/Kolkata] GD extension is loaded via extension_loaded()
[03-Jan-2026 12:48:13 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/919000919emptytemplate3jpg.jpg.jpg (extension: jpg)
[03-Jan-2026 12:48:13 Asia/Kolkata] Template image loaded successfully. Dimensions: 1748x2480
[03-Jan-2026 12:48:13 Asia/Kolkata] Template copied to output image. Output dimensions: 1748x2480
[03-Jan-2026 12:48:13 Asia/Kolkata] Template source dimensions: 1748x2480
[03-Jan-2026 12:48:13 Asia/Kolkata] Total photos to process: 2
[03-Jan-2026 12:48:13 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767424692_0.png
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo file exists: YES
[03-Jan-2026 12:48:13 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 457x497
[03-Jan-2026 12:48:13 Asia/Kolkata] Using index-specific adjustments for photo #0
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=617.044, y=342.984, w=417.0728, h=737.056
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #0 - Percentages: x=35.3%, y=13.83%, w=23.86%, h=29.72%
[03-Jan-2026 12:48:13 Asia/Kolkata] Resized photo dimensions: 417.0728x737.056
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #0 - Final position (user-set): x=617.044, y=342.984, width=417.0728, height=737.056
[03-Jan-2026 12:48:13 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=617, y=342, size: 417x737
[03-Jan-2026 12:48:13 Asia/Kolkata] Processing USER photo #1: ./assets/ai/uploads/user_photos/16/photo_16_1767424692_1.png
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo file exists: YES
[03-Jan-2026 12:48:13 Asia/Kolkata] User photo #1 loaded successfully. Dimensions: 2800x1400
[03-Jan-2026 12:48:13 Asia/Kolkata] Using index-specific adjustments for photo #1
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #1 - Using percentage-based adjustments: x=554.99, y=1736, w=657.0732, h=337.032
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #1 - Percentages: x=31.75%, y=70%, w=37.59%, h=13.59%
[03-Jan-2026 12:48:13 Asia/Kolkata] Resized photo dimensions: 657.0732x337.032
[03-Jan-2026 12:48:13 Asia/Kolkata] Photo #1 - Final position (user-set): x=554.99, y=1736, width=657.0732, height=337.032
[03-Jan-2026 12:48:13 Asia/Kolkata] USER photo #1 overlaid successfully at position: x=554, y=1736, size: 657x337
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Session YID: 16
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767424558,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":false,"mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","auth-admin":"1","auth-date":"0000-00-00 00:00:00","auth-ip":"","auth-rights":"5","aid":"7","lic_key":null}
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"4060.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - User Type: student
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - User ID: 16
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Database user_type: student
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Using database user_type: student
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Order data: []
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Final topics count: 0
[03-Jan-2026 12:48:51 Asia/Kolkata] Profile Debug - Topics data: []
[05-Jan-2026 11:32:16 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[05-Jan-2026 11:32:16 Asia/Kolkata] Template ID: 26
[05-Jan-2026 11:32:16 Asia/Kolkata] Status condition:  AND pos_status = '1'
[05-Jan-2026 11:32:16 Asia/Kolkata] Query executed
[05-Jan-2026 11:32:16 Asia/Kolkata] Query returned 2 rows
[05-Jan-2026 11:32:16 Asia/Kolkata] Found 2 positions in result_array()
[05-Jan-2026 11:32:16 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[05-Jan-2026 11:32:16 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[05-Jan-2026 11:32:16 Asia/Kolkata] Verified positions count: 2
[05-Jan-2026 11:32:16 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[05-Jan-2026 11:32:16 Asia/Kolkata] Final template_positions count: 2
[05-Jan-2026 11:32:16 Asia/Kolkata] ===========================
[05-Jan-2026 11:32:16 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[05-Jan-2026 11:32:16 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[05-Jan-2026 11:32:16 Asia/Kolkata] === VIEW DEBUG ===
[05-Jan-2026 11:32:16 Asia/Kolkata] Template ID: 26
[05-Jan-2026 11:32:16 Asia/Kolkata] Positions count in view: 2
[05-Jan-2026 11:32:16 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[05-Jan-2026 11:32:16 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[05-Jan-2026 11:32:16 Asia/Kolkata] ==================
[05-Jan-2026 11:38:43 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Empty Template (4).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpejTZ9J
            [error] => 0
            [size] => 822310
        )

)

[05-Jan-2026 11:38:43 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 6
    [temp_name] => New Template Celebration
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":140,"y":474,"width":301,"height":455},{"x":1147,"y":1043,"width":266,"height":370}]
    [temp_image_x] => 140
    [temp_image_y] => 474
    [temp_image_width] => 301
    [temp_image_height] => 455
)

[05-Jan-2026 11:38:43 Asia/Kolkata] Template image file detected: Empty Template (4).jpg
[05-Jan-2026 11:38:43 Asia/Kolkata] File size: 822310
[05-Jan-2026 11:38:43 Asia/Kolkata] File type: image/jpeg
[05-Jan-2026 11:38:43 Asia/Kolkata] File error code: 0
[05-Jan-2026 11:38:43 Asia/Kolkata] Upload result from upload_doc: SUCCXX532687857emptytemplate4jpg.jpg.jpg
[05-Jan-2026 11:38:43 Asia/Kolkata] Template image uploaded successfully: 532687857emptytemplate4jpg.jpg.jpg
[05-Jan-2026 11:39:03 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[05-Jan-2026 11:39:03 Asia/Kolkata] Template ID: 35
[05-Jan-2026 11:39:03 Asia/Kolkata] Status condition:  AND pos_status = '1'
[05-Jan-2026 11:39:03 Asia/Kolkata] Query executed
[05-Jan-2026 11:39:03 Asia/Kolkata] Query returned 2 rows
[05-Jan-2026 11:39:03 Asia/Kolkata] Found 2 positions in result_array()
[05-Jan-2026 11:39:03 Asia/Kolkata] Position 0: x=140, y=474, width=301, height=455, order=0
[05-Jan-2026 11:39:03 Asia/Kolkata] Position 1: x=1147, y=1043, width=266, height=370, order=1
[05-Jan-2026 11:39:03 Asia/Kolkata] Verified positions count: 2
[05-Jan-2026 11:39:03 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 140
            [y] => 474
            [width] => 301
            [height] => 455
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 1147
            [y] => 1043
            [width] => 266
            [height] => 370
            [pos_order] => 1
        )

)

[05-Jan-2026 11:39:03 Asia/Kolkata] Final template_positions count: 2
[05-Jan-2026 11:39:03 Asia/Kolkata] ===========================
[05-Jan-2026 11:39:07 Asia/Kolkata] Template ID: 35 - PHP Positions Count: 2
[05-Jan-2026 11:39:07 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 140
            [y] => 474
            [width] => 301
            [height] => 455
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 1147
            [y] => 1043
            [width] => 266
            [height] => 370
            [pos_order] => 1
        )

)

[05-Jan-2026 11:39:07 Asia/Kolkata] === VIEW DEBUG ===
[05-Jan-2026 11:39:07 Asia/Kolkata] Template ID: 35
[05-Jan-2026 11:39:07 Asia/Kolkata] Positions count in view: 2
[05-Jan-2026 11:39:07 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 140
            [y] => 474
            [width] => 301
            [height] => 455
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 1147
            [y] => 1043
            [width] => 266
            [height] => 370
            [pos_order] => 1
        )

)

[05-Jan-2026 11:39:07 Asia/Kolkata] JSON encoded: [{"x":140,"y":474,"width":301,"height":455,"pos_order":0},{"x":1147,"y":1043,"width":266,"height":370,"pos_order":1}]
[05-Jan-2026 11:39:07 Asia/Kolkata] ==================
[05-Jan-2026 11:40:15 Asia/Kolkata] Received all_photo_adjustments JSON with 2 images
[05-Jan-2026 11:40:15 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=9.72%, y=33.01%, w=20.90%, h=31.69%
[05-Jan-2026 11:40:15 Asia/Kolkata] USER photo #1 - Using percentage adjustments: x=79.65%, y=72.63%, w=18.47%, h=25.77%
[05-Jan-2026 11:40:15 Asia/Kolkata] Found 2 template positions for template ID: 35
[05-Jan-2026 11:40:15 Asia/Kolkata] === BEFORE GENERATION ===
[05-Jan-2026 11:40:15 Asia/Kolkata] Total photos to generate: 2
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #0 (USER): photo_16_1767593415_0.png - Exists: YES
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #1 (USER): photo_16_1767593415_1.png - Exists: YES
[05-Jan-2026 11:40:15 Asia/Kolkata] GD extension is loaded via extension_loaded()
[05-Jan-2026 11:40:15 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/532687857emptytemplate4jpg.jpg.jpg (extension: jpg)
[05-Jan-2026 11:40:15 Asia/Kolkata] Template image loaded successfully. Dimensions: 1440x1436
[05-Jan-2026 11:40:15 Asia/Kolkata] Template copied to output image. Output dimensions: 1440x1436
[05-Jan-2026 11:40:15 Asia/Kolkata] Template source dimensions: 1440x1436
[05-Jan-2026 11:40:15 Asia/Kolkata] Total photos to process: 2
[05-Jan-2026 11:40:15 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767593415_0.png
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo file exists: YES
[05-Jan-2026 11:40:15 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 562x862
[05-Jan-2026 11:40:15 Asia/Kolkata] Using index-specific adjustments for photo #0
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=139.968, y=474.0236, w=300.96, h=455.0684
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #0 - Percentages: x=9.72%, y=33.01%, w=20.9%, h=31.69%
[05-Jan-2026 11:40:15 Asia/Kolkata] Resized photo dimensions: 300.96x455.0684
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #0 - Final position (user-set): x=139.968, y=474.0236, width=300.96, height=455.0684
[05-Jan-2026 11:40:15 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=139, y=474, size: 300x455
[05-Jan-2026 11:40:15 Asia/Kolkata] Processing USER photo #1: ./assets/ai/uploads/user_photos/16/photo_16_1767593415_1.png
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo file exists: YES
[05-Jan-2026 11:40:15 Asia/Kolkata] User photo #1 loaded successfully. Dimensions: 562x862
[05-Jan-2026 11:40:15 Asia/Kolkata] Using index-specific adjustments for photo #1
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #1 - Using percentage-based adjustments: x=1146.96, y=1042.9668, w=265.968, h=370.0572
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #1 - Percentages: x=79.65%, y=72.63%, w=18.47%, h=25.77%
[05-Jan-2026 11:40:15 Asia/Kolkata] Resized photo dimensions: 265.968x370.0572
[05-Jan-2026 11:40:15 Asia/Kolkata] Photo #1 - Final position (user-set): x=1146.96, y=1042.9668, width=265.968, height=370.0572
[05-Jan-2026 11:40:15 Asia/Kolkata] USER photo #1 overlaid successfully at position: x=1146, y=1042, size: 265x370
[06-Jan-2026 17:50:19 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[06-Jan-2026 17:50:19 Asia/Kolkata] Template ID: 9
[06-Jan-2026 17:50:19 Asia/Kolkata] Status condition:  AND pos_status = '1'
[06-Jan-2026 17:50:19 Asia/Kolkata] Query executed
[06-Jan-2026 17:50:19 Asia/Kolkata] Query returned 1 rows
[06-Jan-2026 17:50:19 Asia/Kolkata] Found 1 positions in result_array()
[06-Jan-2026 17:50:19 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[06-Jan-2026 17:50:19 Asia/Kolkata] Verified positions count: 1
[06-Jan-2026 17:50:19 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[06-Jan-2026 17:50:19 Asia/Kolkata] Final template_positions count: 1
[06-Jan-2026 17:50:19 Asia/Kolkata] ===========================
[06-Jan-2026 17:50:19 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[06-Jan-2026 17:50:19 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[06-Jan-2026 17:50:19 Asia/Kolkata] === VIEW DEBUG ===
[06-Jan-2026 17:50:19 Asia/Kolkata] Template ID: 9
[06-Jan-2026 17:50:19 Asia/Kolkata] Positions count in view: 1
[06-Jan-2026 17:50:19 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[06-Jan-2026 17:50:19 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[06-Jan-2026 17:50:19 Asia/Kolkata] ==================
[06-Jan-2026 17:50:51 Asia/Kolkata] Toggle Save Template - User ID: 16, Template ID: 9
[06-Jan-2026 17:50:51 Asia/Kolkata] Toggle Save Template - Template saved successfully
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Session YID: 16
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767701924,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"5050.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - User Type: student
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - User ID: 16
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Database user_type: student
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Using database user_type: student
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Order data: []
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Final topics count: 0
[06-Jan-2026 17:51:10 Asia/Kolkata] Profile Debug - Topics data: []
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Session YID: 16
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767702227,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"5350.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - User Type: student
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - User ID: 16
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Database user_type: student
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Using database user_type: student
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Order data: []
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Final topics count: 0
[06-Jan-2026 17:54:07 Asia/Kolkata] Profile Debug - Topics data: []
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Session YID: 16
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767702227,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"5350.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - User Type: student
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - User ID: 16
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Database user_type: student
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Using database user_type: student
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Order data: []
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Final topics count: 0
[06-Jan-2026 17:54:34 Asia/Kolkata] Profile Debug - Topics data: []
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Session YID: 16
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767702227,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"}
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"5350.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - User Type: student
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - User ID: 16
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Database user_type: student
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Using database user_type: student
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Order data: []
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Final topics count: 0
[06-Jan-2026 17:54:48 Asia/Kolkata] Profile Debug - Topics data: []
[06-Jan-2026 17:55:05 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[06-Jan-2026 17:55:05 Asia/Kolkata] Template ID: 9
[06-Jan-2026 17:55:05 Asia/Kolkata] Status condition:  AND pos_status = '1'
[06-Jan-2026 17:55:05 Asia/Kolkata] Query executed
[06-Jan-2026 17:55:05 Asia/Kolkata] Query returned 1 rows
[06-Jan-2026 17:55:05 Asia/Kolkata] Found 1 positions in result_array()
[06-Jan-2026 17:55:05 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[06-Jan-2026 17:55:05 Asia/Kolkata] Verified positions count: 1
[06-Jan-2026 17:55:05 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[06-Jan-2026 17:55:05 Asia/Kolkata] Final template_positions count: 1
[06-Jan-2026 17:55:05 Asia/Kolkata] ===========================
[06-Jan-2026 17:55:05 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[06-Jan-2026 17:55:05 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[06-Jan-2026 17:55:05 Asia/Kolkata] === VIEW DEBUG ===
[06-Jan-2026 17:55:05 Asia/Kolkata] Template ID: 9
[06-Jan-2026 17:55:05 Asia/Kolkata] Positions count in view: 1
[06-Jan-2026 17:55:05 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[06-Jan-2026 17:55:05 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[06-Jan-2026 17:55:05 Asia/Kolkata] ==================
[06-Jan-2026 17:55:23 Asia/Kolkata] Received all_photo_adjustments JSON with 1 images
[06-Jan-2026 17:55:23 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=78.27%, y=70.13%, w=17.80%, h=27.53%
[06-Jan-2026 17:55:23 Asia/Kolkata] Found 1 template positions for template ID: 9
[06-Jan-2026 17:55:23 Asia/Kolkata] === BEFORE GENERATION ===
[06-Jan-2026 17:55:23 Asia/Kolkata] Total photos to generate: 1
[06-Jan-2026 17:55:23 Asia/Kolkata] Photo #0 (USER): photo_16_1767702323_0.png - Exists: YES
[06-Jan-2026 17:55:23 Asia/Kolkata] GD extension is loaded via extension_loaded()
[06-Jan-2026 17:55:23 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/171861150emptytemplate1jpg.jpg.jpg (extension: jpg)
[06-Jan-2026 17:55:23 Asia/Kolkata] Template image loaded successfully. Dimensions: 1500x1500
[06-Jan-2026 17:55:23 Asia/Kolkata] Template copied to output image. Output dimensions: 1500x1500
[06-Jan-2026 17:55:23 Asia/Kolkata] Template source dimensions: 1500x1500
[06-Jan-2026 17:55:23 Asia/Kolkata] Total photos to process: 1
[06-Jan-2026 17:55:23 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767702323_0.png
[06-Jan-2026 17:55:23 Asia/Kolkata] Photo file exists: YES
[06-Jan-2026 17:55:23 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 562x862
[06-Jan-2026 17:55:23 Asia/Kolkata] Using index-specific adjustments for photo #0
[06-Jan-2026 17:55:23 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=1174.05, y=1051.95, w=267, h=412.95
[06-Jan-2026 17:55:23 Asia/Kolkata] Photo #0 - Percentages: x=78.27%, y=70.13%, w=17.8%, h=27.53%
[06-Jan-2026 17:55:23 Asia/Kolkata] Resized photo dimensions: 267x412.95
[06-Jan-2026 17:55:23 Asia/Kolkata] Photo #0 - Final position (user-set): x=1174.05, y=1051.95, width=267, height=412.95
[06-Jan-2026 17:55:23 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=1174, y=1051, size: 267x412
[07-Jan-2026 12:56:28 Asia/Kolkata] Created table yn_ai_template_text_fields successfully
[07-Jan-2026 12:56:28 Asia/Kolkata] Template upload - FILES data: Array
(
    [temp_image] => Array
        (
            [name] => Empty Template (4).jpg
            [type] => image/jpeg
            [tmp_name] => /tmp/phpCe5g9X
            [error] => 0
            [size] => 822310
        )

)

[07-Jan-2026 12:56:28 Asia/Kolkata] POST data: Array
(
    [todo] => -1
    [temp_coll_id] => 7
    [temp_name] => Gold Collection
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 10
    [temp_image_positions] => [{"x":149,"y":505,"width":294,"height":422}]
    [temp_image_x] => 149
    [temp_image_y] => 505
    [temp_image_width] => 294
    [temp_image_height] => 422
    [temp_text_fields] => [{"field_name":"name","label":"name","x":809,"y":557,"width":550,"height":84,"font_size":24,"color":"#ffffff","font_family":"Arial","align":"left"},{"field_name":"email","label":"email","x":658,"y":1352,"width":777,"height":84,"font_size":16,"color":"#ffffff","font_family":"Arial","align":"left"}]
)

[07-Jan-2026 12:56:28 Asia/Kolkata] Template image file detected: Empty Template (4).jpg
[07-Jan-2026 12:56:28 Asia/Kolkata] File size: 822310
[07-Jan-2026 12:56:28 Asia/Kolkata] File type: image/jpeg
[07-Jan-2026 12:56:28 Asia/Kolkata] File error code: 0
[07-Jan-2026 12:56:29 Asia/Kolkata] Upload result from upload_doc: SUCCXX505292238emptytemplate4jpg.jpg.jpg
[07-Jan-2026 12:56:29 Asia/Kolkata] Template image uploaded successfully: 505292238emptytemplate4jpg.jpg.jpg
[07-Jan-2026 12:56:51 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 12:56:51 Asia/Kolkata] Template ID: 36
[07-Jan-2026 12:56:51 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 12:56:51 Asia/Kolkata] Query executed
[07-Jan-2026 12:56:51 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 12:56:51 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 12:56:51 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 12:56:51 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 12:56:51 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 12:56:51 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 12:56:51 Asia/Kolkata] ===========================
[07-Jan-2026 12:56:51 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 12:56:51 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 12:56:51 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 12:56:51 Asia/Kolkata] Template ID: 36
[07-Jan-2026 12:56:51 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 12:56:51 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 12:56:51 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 12:56:51 Asia/Kolkata] ==================
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Session YID: 16
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767770796,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"malik","email":"sheziiali38@gmail.com","phone":"3076082398","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":"110","mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","auth-admin":"1","auth-date":"0000-00-00 00:00:00","auth-ip":"","auth-rights":"5","aid":"7","lic_key":null}
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"5350.00","name":"malik","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"","phone":"+1 (735) 277-3365","skill":"hash","displayname":""}
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - User Type: student
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - User ID: 16
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Database user_type: student
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Using database user_type: student
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Order data: []
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Final topics count: 0
[07-Jan-2026 12:58:16 Asia/Kolkata] Profile Debug - Topics data: []
[07-Jan-2026 12:58:38 Asia/Kolkata] update_profile called
[07-Jan-2026 12:58:38 Asia/Kolkata] POST data: Array
(
    [firstname] => Adnan2
    [lastname] => khan
    [email] => sheziiali38@gmail.com
    [phone] => +1 (735) 277-3365
    [username] => shraizeali
    [bio] => qwiiid
)

[07-Jan-2026 12:58:38 Asia/Kolkata] FILES data: Array
(
    [profile_photo] => Array
        (
            [name] => 
            [type] => 
            [tmp_name] => 
            [error] => 4
            [size] => 0
        )

)

[07-Jan-2026 12:58:38 Asia/Kolkata] User ID: 16
[07-Jan-2026 12:58:38 Asia/Kolkata] Form data - firstname: Adnan2, lastname: khan, username: shraizeali, phone: +1 (735) 277-3365, email: sheziiali38@gmail.com, skill: , displayname: , bio: qwiiid
[07-Jan-2026 12:58:38 Asia/Kolkata] Checking for profile photo upload...
[07-Jan-2026 12:58:38 Asia/Kolkata] FILES data: Array
(
    [profile_photo] => Array
        (
            [name] => 
            [type] => 
            [tmp_name] => 
            [error] => 4
            [size] => 0
        )

)

[07-Jan-2026 12:58:38 Asia/Kolkata] File upload error code: 4
[07-Jan-2026 12:58:38 Asia/Kolkata] File name: 
[07-Jan-2026 12:58:38 Asia/Kolkata] Upload error: No file was uploaded
[07-Jan-2026 12:58:38 Asia/Kolkata] Update data: Array
(
    [firstname] => Adnan2
    [lastname] => khan
    [name] => Adnan2 khan
    [username] => shraizeali
    [phone] => +1 (735) 277-3365
    [email] => sheziiali38@gmail.com
    [skill] => 
    [displayname] => 
    [about] => qwiiid
)

[07-Jan-2026 12:58:38 Asia/Kolkata] No photo in update_data array
[07-Jan-2026 12:58:38 Asia/Kolkata] Database update result: success
[07-Jan-2026 12:58:38 Asia/Kolkata] Last query: UPDATE `yn_site_mem` SET `firstname` = 'Adnan2', `lastname` = 'khan', `name` = 'Adnan2 khan', `username` = 'shraizeali', `phone` = '+1 (735) 277-3365', `email` = 'sheziiali38@gmail.com', `skill` = NULL, `displayname` = NULL, `about` = 'qwiiid'
WHERE `mid` = '16'
[07-Jan-2026 12:58:38 Asia/Kolkata] Profile update successful
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Session YID: 16
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767770796,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"16","name":"Adnan2 khan","email":"sheziiali38@gmail.com","phone":"+1 (735) 277-3365","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"162349250905","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":"110","mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","auth-admin":"1","auth-date":"0000-00-00 00:00:00","auth-ip":"","auth-rights":"5","aid":"7","lic_key":null,"firstname":"Adnan2","lastname":"khan","username":"shraizeali","skill":null,"displayname":null,"about":"qwiiid"}
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"16","wallet_bal":"5350.00","name":"Adnan2 khan","email":"sheziiali38@gmail.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"3076082398","skype":"","ip":"","date":"2025-09-05 17:56:05","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"qwiiid","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":null,"user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"0","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"162349250905","father_name":null,"current_status":null,"college":null,"coll_id":null,"gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Adnan2","lastname":"khan","username":"shraizeali","phone":"+1 (735) 277-3365","skill":null,"displayname":null}
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - User Type: student
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - User ID: 16
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Database user_type: student
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Using database user_type: student
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 16
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Total orders for user 16: 0
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Orders with status 1 for user 16: 0
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '16' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Order data: []
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Final topics count: 0
[07-Jan-2026 12:58:45 Asia/Kolkata] Profile Debug - Topics data: []
[07-Jan-2026 12:58:59 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 12:58:59 Asia/Kolkata] Template ID: 36
[07-Jan-2026 12:58:59 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 12:58:59 Asia/Kolkata] Query executed
[07-Jan-2026 12:58:59 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 12:58:59 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 12:58:59 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 12:58:59 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 12:58:59 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 12:58:59 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 12:58:59 Asia/Kolkata] ===========================
[07-Jan-2026 12:58:59 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 12:58:59 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 12:58:59 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 12:58:59 Asia/Kolkata] Template ID: 36
[07-Jan-2026 12:58:59 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 12:58:59 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 12:58:59 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 12:58:59 Asia/Kolkata] ==================
[07-Jan-2026 13:00:37 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 13:00:37 Asia/Kolkata] Template ID: 36
[07-Jan-2026 13:00:37 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 13:00:37 Asia/Kolkata] Query executed
[07-Jan-2026 13:00:37 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 13:00:37 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 13:00:37 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 13:00:37 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 13:00:37 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 13:00:37 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 13:00:37 Asia/Kolkata] ===========================
[07-Jan-2026 13:00:37 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 13:00:37 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 13:00:37 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 13:00:37 Asia/Kolkata] Template ID: 36
[07-Jan-2026 13:00:37 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 13:00:37 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 13:00:37 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 13:00:37 Asia/Kolkata] ==================
[07-Jan-2026 13:01:29 Asia/Kolkata] Received all_photo_adjustments JSON with 1 images
[07-Jan-2026 13:01:29 Asia/Kolkata] USER photo #0 - Using percentage adjustments: x=10.35%, y=35.17%, w=20.42%, h=29.39%
[07-Jan-2026 13:01:29 Asia/Kolkata] Found 1 template positions for template ID: 36
[07-Jan-2026 13:01:29 Asia/Kolkata] === BEFORE GENERATION ===
[07-Jan-2026 13:01:29 Asia/Kolkata] Total photos to generate: 1
[07-Jan-2026 13:01:29 Asia/Kolkata] Photo #0 (USER): photo_16_1767771089_0.jpeg - Exists: YES
[07-Jan-2026 13:01:29 Asia/Kolkata] GD extension is loaded via extension_loaded()
[07-Jan-2026 13:01:29 Asia/Kolkata] Loading template image: ./assets/ai/uploads/templates/505292238emptytemplate4jpg.jpg.jpg (extension: jpg)
[07-Jan-2026 13:01:29 Asia/Kolkata] Template image loaded successfully. Dimensions: 1440x1436
[07-Jan-2026 13:01:29 Asia/Kolkata] Template copied to output image. Output dimensions: 1440x1436
[07-Jan-2026 13:01:29 Asia/Kolkata] Template source dimensions: 1440x1436
[07-Jan-2026 13:01:29 Asia/Kolkata] Total photos to process: 1
[07-Jan-2026 13:01:29 Asia/Kolkata] Processing USER photo #0: ./assets/ai/uploads/user_photos/16/photo_16_1767771089_0.jpeg
[07-Jan-2026 13:01:29 Asia/Kolkata] Photo file exists: YES
[07-Jan-2026 13:01:29 Asia/Kolkata] User photo #0 loaded successfully. Dimensions: 618x728
[07-Jan-2026 13:01:29 Asia/Kolkata] Using index-specific adjustments for photo #0
[07-Jan-2026 13:01:29 Asia/Kolkata] Photo #0 - Using percentage-based adjustments: x=149.04, y=505.0412, w=294.048, h=422.0404
[07-Jan-2026 13:01:29 Asia/Kolkata] Photo #0 - Percentages: x=10.35%, y=35.17%, w=20.42%, h=29.39%
[07-Jan-2026 13:01:29 Asia/Kolkata] Resized photo dimensions: 294.048x422.0404
[07-Jan-2026 13:01:29 Asia/Kolkata] Photo #0 - Final position (user-set): x=149.04, y=505.0412, width=294.048, height=422.0404
[07-Jan-2026 13:01:29 Asia/Kolkata] USER photo #0 overlaid successfully at position: x=149, y=505, size: 294x422
[07-Jan-2026 16:54:50 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 16:54:50 Asia/Kolkata] Template ID: 9
[07-Jan-2026 16:54:50 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 16:54:50 Asia/Kolkata] Query executed
[07-Jan-2026 16:54:50 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 16:54:50 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 16:54:50 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[07-Jan-2026 16:54:50 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 16:54:50 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[07-Jan-2026 16:54:50 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 16:54:50 Asia/Kolkata] ===========================
[07-Jan-2026 16:54:50 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[07-Jan-2026 16:54:50 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[07-Jan-2026 16:54:50 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 16:54:50 Asia/Kolkata] Template ID: 9
[07-Jan-2026 16:54:50 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 16:54:50 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[07-Jan-2026 16:54:50 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[07-Jan-2026 16:54:50 Asia/Kolkata] ==================
[07-Jan-2026 16:55:00 Asia/Kolkata] Toggle Save Template - User ID: 115, Template ID: 9
[07-Jan-2026 16:55:00 Asia/Kolkata] Toggle Save Template - Template saved successfully
[07-Jan-2026 16:55:03 Asia/Kolkata] Toggle Save Template - User ID: 115, Template ID: 9
[07-Jan-2026 16:55:03 Asia/Kolkata] Toggle Save Template - Template unsaved successfully
[07-Jan-2026 16:55:39 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 16:55:39 Asia/Kolkata] Template ID: 14
[07-Jan-2026 16:55:39 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 16:55:39 Asia/Kolkata] Query executed
[07-Jan-2026 16:55:39 Asia/Kolkata] Query returned 0 rows
[07-Jan-2026 16:55:39 Asia/Kolkata] Query returned 0 rows
[07-Jan-2026 16:55:39 Asia/Kolkata] Final template_positions count: 0
[07-Jan-2026 16:55:39 Asia/Kolkata] ===========================
[07-Jan-2026 16:55:39 Asia/Kolkata] Template ID: 14 - PHP Positions Count: 0
[07-Jan-2026 16:55:39 Asia/Kolkata] Template Positions: Array
(
)

[07-Jan-2026 16:55:39 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 16:55:39 Asia/Kolkata] Template ID: 14
[07-Jan-2026 16:55:39 Asia/Kolkata] Positions count in view: 0
[07-Jan-2026 16:55:39 Asia/Kolkata] Positions data in view: Array
(
)

[07-Jan-2026 16:55:39 Asia/Kolkata] JSON encoded: []
[07-Jan-2026 16:55:39 Asia/Kolkata] ==================
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Session YID: 116
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767785031,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"116","name":"Valentine Mendoza","email":"behaqel@mailinator.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"1162191260107"}
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"116","wallet_bal":"0.00","name":"Valentine Mendoza","email":"behaqel@mailinator.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"","skype":"","ip":"","date":"2026-01-07 12:24:34","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":"9","user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"1162191260107","father_name":null,"current_status":null,"college":null,"coll_id":"8","gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Valentine","lastname":"Mendoza","username":null,"phone":"6451424422","skill":null,"displayname":null}
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - User Type: student
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - User ID: 116
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Database user_type: student
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Using database user_type: student
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 116
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Total orders for user 116: 0
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Orders with status 1 for user 116: 0
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '116' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Order data: []
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Final topics count: 0
[07-Jan-2026 16:56:02 Asia/Kolkata] Profile Debug - Topics data: []
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Session YID: 116
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767785031,"web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb"},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"116","name":"Valentine Mendoza","email":"behaqel@mailinator.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"1162191260107"}
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"116","wallet_bal":"0.00","name":"Valentine Mendoza","email":"behaqel@mailinator.com","pass":"5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8","contact":"","skype":"","ip":"","date":"2026-01-07 12:24:34","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":"9","user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"1162191260107","father_name":null,"current_status":null,"college":null,"coll_id":"9","gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"Valentine","lastname":"Mendoza","username":null,"phone":"6451424422","skill":null,"displayname":null}
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - User Type: student
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - User ID: 116
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Database user_type: student
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Using database user_type: student
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 116
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Total orders for user 116: 0
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Orders with status 1 for user 116: 0
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '116' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Order data: []
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Final topics count: 0
[07-Jan-2026 16:56:23 Asia/Kolkata] Profile Debug - Topics data: []
[07-Jan-2026 16:57:07 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 16:57:07 Asia/Kolkata] Template ID: 9
[07-Jan-2026 16:57:07 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 16:57:07 Asia/Kolkata] Query executed
[07-Jan-2026 16:57:07 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 16:57:07 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 16:57:07 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[07-Jan-2026 16:57:07 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 16:57:07 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[07-Jan-2026 16:57:07 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 16:57:07 Asia/Kolkata] ===========================
[07-Jan-2026 16:57:07 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[07-Jan-2026 16:57:07 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[07-Jan-2026 16:57:07 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 16:57:07 Asia/Kolkata] Template ID: 9
[07-Jan-2026 16:57:07 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 16:57:07 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[07-Jan-2026 16:57:07 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[07-Jan-2026 16:57:07 Asia/Kolkata] ==================
[07-Jan-2026 16:59:15 Asia/Kolkata] Template upload - FILES data: Array
(
)

[07-Jan-2026 16:59:15 Asia/Kolkata] POST data: Array
(
    [todo] => 36
    [temp_coll_id] => 9
    [temp_name] => Gold Collection
    [temp_description] => 
    [temp_width] => 300
    [temp_height] => 300
    [temp_status] => 1
    [temp_price] => 10.00
    [temp_image] => 
    [temp_image_positions] => 
    [temp_image_x] => 149
    [temp_image_y] => 505
    [temp_image_width] => 294
    [temp_image_height] => 422
    [temp_text_fields] => [{"field_name":"name","label":"name","x":809,"y":557,"width":550,"height":84,"font_size":24,"color":"#ffffff","font_family":"Arial","align":"left"},{"field_name":"email","label":"email","x":658,"y":1352,"width":777,"height":84,"font_size":16,"color":"#ffffff","font_family":"Arial","align":"left"}]
)

[07-Jan-2026 16:59:15 Asia/Kolkata] No template image file provided or upload error
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Session YID: 115
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767785631,"auth-admin":"1","auth-date":"2021-06-29 10:27:04","auth-ip":"","auth-rights":"5","aid":"3","lic_key":null,"admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":"110","mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"115","name":"karan rathod","email":"karan20pmgr.a@gmail.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"1156770260107"}
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"115","wallet_bal":"0.00","name":"karan rathod","email":"karan20pmgr.a@gmail.com","pass":"de00d9271a5b81a183f2055c97cdd787909c105f","contact":"","skype":"","ip":"","date":"2026-01-07 12:24:13","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":"9","user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"1156770260107","father_name":null,"current_status":null,"college":null,"coll_id":"8","gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"karan","lastname":"rathod","username":null,"phone":"9307862001","skill":null,"displayname":null}
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - User Type: student
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - User ID: 115
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Database user_type: student
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Using database user_type: student
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 115
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Total orders for user 115: 0
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Orders with status 1 for user 115: 0
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '115' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Order data: []
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Final topics count: 0
[07-Jan-2026 17:04:33 Asia/Kolkata] Profile Debug - Topics data: []
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Session YID: 115
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Session data: {"__ci_last_regenerate":1767786058,"auth-admin":"1","auth-date":"2021-06-29 10:27:04","auth-ip":"","auth-rights":"5","aid":"3","lic_key":null,"admin_data":{"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","num_sub":"0","num_blog":"0","num_mem":null,"num_keywords":"0","leads_graph":false,"leads_graph_last":false,"mem_graph":"110","mem_graph_last":false,"leads_count":0,"mem_count":0},"the_d_values":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","web_services":"bl,faq,testi,subs,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,phobl,faq,testi,subs,ssb,ct,sb,loc,tag,eco,coup,usr,uty,rati,navi,the,app,pg,liv,wabt,mobf,pho,ssb","yid":"115","name":"karan rathod","email":"karan20pmgr.a@gmail.com","phone":"","verify":"0","photo":"photo.jpg","plan":"","user_type":"student","roll_num":"1156770260107"}
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Profile data from model: {"mid":"115","wallet_bal":"0.00","name":"karan rathod","email":"karan20pmgr.a@gmail.com","pass":"de00d9271a5b81a183f2055c97cdd787909c105f","contact":"","skype":"","ip":"","date":"2026-01-07 12:24:13","address":"","last_seen":"0000-00-00 00:00:00","photo":"photo.jpg","persu":"","gender":"","cover":"cover.jpg","about":"","tot_rec":"0","dnd":"0","verify":"0","expiry":"0000-00-00","fb":"","tw":"","insta":"","edln":"","blog":"","ID":"","user_height":"","user_weight":"","user_country":"","user_state":"","user_city":"","user_city_name":"","user_state_name":"","user_locality":"","user_zip":"","user_caste":"","user_diet":"","user_dob":"0000-00-00","user_matritial_status":"","user_education":"","user_efield":"","user_digree":"","user_company":"","comp_id":"9","user_income":"","user_profile":"","user_father":"","user_smoke":"","user_drink":"","user_reffer":"","user_reffer_by":"","user_status":"1","user_email_status":"1","user_phone_status":"0","user_type":"student","category_id":null,"subcategory_id":null,"sub_subcategory_id":null,"teacher_intro_video":null,"teacher_experience":null,"teacher_education":null,"video_uploaded":"0","user_plan":"","amount_paid":"0","pass_nc":"","user_tags":"","user_fees":"","pass_reset":"","user_relationship":"","user_owner":"","oser_guide":"","cover2":"","social_login":"","status":"","roll_num":"1156770260107","father_name":null,"current_status":null,"college":null,"coll_id":"8","gate_score":null,"teacher_documents":null,"gate_year":null,"gate_paper":null,"app_android_tok":"","app_ios_tok":"","firstname":"karan","lastname":"rathod","username":null,"phone":"9307862001","skill":null,"displayname":null}
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - User Type: student
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - User ID: 115
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Database user_type: student
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Using database user_type: student
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Processing student topics for user ID: 115
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Total orders for user 115: 0
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Orders with status 1 for user 115: 0
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Student query: SELECT DISTINCT od.xod_pid as topic_id, od.checkout_order_id as order_id, o.so_date as purchase_date, od.teacher_id, 'purchased' as topic_type
				FROM yn_ecom_orders_detail od
				LEFT JOIN yn_ecom_order o ON od.checkout_order_id = o.so_order_id
				WHERE o.so_mid = '115' 
				AND o.so_status = 1
				ORDER BY o.so_date DESC
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Found 0 student topic orders
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Order data: []
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Final topics count: 0
[07-Jan-2026 17:10:58 Asia/Kolkata] Profile Debug - Topics data: []
[07-Jan-2026 18:35:38 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 18:35:38 Asia/Kolkata] Template ID: 36
[07-Jan-2026 18:35:38 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 18:35:38 Asia/Kolkata] Query executed
[07-Jan-2026 18:35:38 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 18:35:38 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 18:35:38 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 18:35:38 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 18:35:38 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 18:35:38 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 18:35:38 Asia/Kolkata] ===========================
[07-Jan-2026 18:35:38 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 18:35:38 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 18:35:38 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 18:35:38 Asia/Kolkata] Template ID: 36
[07-Jan-2026 18:35:38 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 18:35:38 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 18:35:38 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 18:35:38 Asia/Kolkata] ==================
[07-Jan-2026 18:35:51 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 18:35:51 Asia/Kolkata] Template ID: 36
[07-Jan-2026 18:35:51 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 18:35:51 Asia/Kolkata] Query executed
[07-Jan-2026 18:35:51 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 18:35:51 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 18:35:51 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 18:35:51 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 18:35:51 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 18:35:51 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 18:35:51 Asia/Kolkata] ===========================
[07-Jan-2026 18:35:51 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 18:35:51 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 18:35:51 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 18:35:51 Asia/Kolkata] Template ID: 36
[07-Jan-2026 18:35:51 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 18:35:51 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 18:35:51 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 18:35:51 Asia/Kolkata] ==================
[07-Jan-2026 20:32:45 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 20:32:45 Asia/Kolkata] Template ID: 36
[07-Jan-2026 20:32:45 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 20:32:45 Asia/Kolkata] Query executed
[07-Jan-2026 20:32:45 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 20:32:45 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 20:32:45 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 20:32:45 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 20:32:45 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] ===========================
[07-Jan-2026 20:32:45 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 20:32:45 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 20:32:45 Asia/Kolkata] Template ID: 36
[07-Jan-2026 20:32:45 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 20:32:45 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 20:32:45 Asia/Kolkata] ==================
[07-Jan-2026 20:32:45 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[07-Jan-2026 20:32:45 Asia/Kolkata] Template ID: 36
[07-Jan-2026 20:32:45 Asia/Kolkata] Status condition:  AND pos_status = '1'
[07-Jan-2026 20:32:45 Asia/Kolkata] Query executed
[07-Jan-2026 20:32:45 Asia/Kolkata] Query returned 1 rows
[07-Jan-2026 20:32:45 Asia/Kolkata] Found 1 positions in result_array()
[07-Jan-2026 20:32:45 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[07-Jan-2026 20:32:45 Asia/Kolkata] Verified positions count: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 20:32:45 Asia/Kolkata] Final template_positions count: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] ===========================
[07-Jan-2026 20:32:45 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 20:32:45 Asia/Kolkata] === VIEW DEBUG ===
[07-Jan-2026 20:32:45 Asia/Kolkata] Template ID: 36
[07-Jan-2026 20:32:45 Asia/Kolkata] Positions count in view: 1
[07-Jan-2026 20:32:45 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[07-Jan-2026 20:32:45 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[07-Jan-2026 20:32:45 Asia/Kolkata] ==================
[07-Jan-2026 20:32:59 Asia/Kolkata] Toggle Save Template - User ID: 107, Template ID: 36
[07-Jan-2026 20:32:59 Asia/Kolkata] Toggle Save Template - Template saved successfully
[07-Jan-2026 20:32:59 Asia/Kolkata] Toggle Save Template - User ID: 104, Template ID: 36
[07-Jan-2026 20:32:59 Asia/Kolkata] Toggle Save Template - Template saved successfully
[07-Jan-2026 20:34:10 Asia/Kolkata] Toggle Save Template - User ID: 107, Template ID: 36
[07-Jan-2026 20:34:10 Asia/Kolkata] Toggle Save Template - Template unsaved successfully
[08-Jan-2026 12:46:33 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[08-Jan-2026 12:46:33 Asia/Kolkata] Template ID: 36
[08-Jan-2026 12:46:33 Asia/Kolkata] Status condition:  AND pos_status = '1'
[08-Jan-2026 12:46:33 Asia/Kolkata] Query executed
[08-Jan-2026 12:46:33 Asia/Kolkata] Query returned 1 rows
[08-Jan-2026 12:46:33 Asia/Kolkata] Found 1 positions in result_array()
[08-Jan-2026 12:46:33 Asia/Kolkata] Position 0: x=149, y=505, width=294, height=422, order=0
[08-Jan-2026 12:46:33 Asia/Kolkata] Verified positions count: 1
[08-Jan-2026 12:46:33 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[08-Jan-2026 12:46:33 Asia/Kolkata] Final template_positions count: 1
[08-Jan-2026 12:46:33 Asia/Kolkata] ===========================
[08-Jan-2026 12:46:33 Asia/Kolkata] Template ID: 36 - PHP Positions Count: 1
[08-Jan-2026 12:46:33 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[08-Jan-2026 12:46:33 Asia/Kolkata] === VIEW DEBUG ===
[08-Jan-2026 12:46:33 Asia/Kolkata] Template ID: 36
[08-Jan-2026 12:46:33 Asia/Kolkata] Positions count in view: 1
[08-Jan-2026 12:46:33 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 149
            [y] => 505
            [width] => 294
            [height] => 422
            [pos_order] => 0
        )

)

[08-Jan-2026 12:46:33 Asia/Kolkata] JSON encoded: [{"x":149,"y":505,"width":294,"height":422,"pos_order":0}]
[08-Jan-2026 12:46:33 Asia/Kolkata] ==================
[08-Jan-2026 12:47:45 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[08-Jan-2026 12:47:45 Asia/Kolkata] Template ID: 26
[08-Jan-2026 12:47:45 Asia/Kolkata] Status condition:  AND pos_status = '1'
[08-Jan-2026 12:47:45 Asia/Kolkata] Query executed
[08-Jan-2026 12:47:45 Asia/Kolkata] Query returned 2 rows
[08-Jan-2026 12:47:45 Asia/Kolkata] Found 2 positions in result_array()
[08-Jan-2026 12:47:45 Asia/Kolkata] Position 0: x=83, y=396, width=328, height=255, order=0
[08-Jan-2026 12:47:45 Asia/Kolkata] Position 1: x=896, y=334, width=132, height=275, order=1
[08-Jan-2026 12:47:45 Asia/Kolkata] Verified positions count: 2
[08-Jan-2026 12:47:45 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[08-Jan-2026 12:47:45 Asia/Kolkata] Final template_positions count: 2
[08-Jan-2026 12:47:45 Asia/Kolkata] ===========================
[08-Jan-2026 12:47:45 Asia/Kolkata] Template ID: 26 - PHP Positions Count: 2
[08-Jan-2026 12:47:45 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[08-Jan-2026 12:47:45 Asia/Kolkata] === VIEW DEBUG ===
[08-Jan-2026 12:47:45 Asia/Kolkata] Template ID: 26
[08-Jan-2026 12:47:45 Asia/Kolkata] Positions count in view: 2
[08-Jan-2026 12:47:45 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 83
            [y] => 396
            [width] => 328
            [height] => 255
            [pos_order] => 0
        )

    [1] => Array
        (
            [x] => 896
            [y] => 334
            [width] => 132
            [height] => 275
            [pos_order] => 1
        )

)

[08-Jan-2026 12:47:45 Asia/Kolkata] JSON encoded: [{"x":83,"y":396,"width":328,"height":255,"pos_order":0},{"x":896,"y":334,"width":132,"height":275,"pos_order":1}]
[08-Jan-2026 12:47:45 Asia/Kolkata] ==================
[09-Jan-2026 02:38:50 Asia/Kolkata] === POSITIONS QUERY DEBUG ===
[09-Jan-2026 02:38:50 Asia/Kolkata] Template ID: 9
[09-Jan-2026 02:38:50 Asia/Kolkata] Status condition:  AND pos_status = '1'
[09-Jan-2026 02:38:50 Asia/Kolkata] Query executed
[09-Jan-2026 02:38:50 Asia/Kolkata] Query returned 1 rows
[09-Jan-2026 02:38:50 Asia/Kolkata] Found 1 positions in result_array()
[09-Jan-2026 02:38:50 Asia/Kolkata] Position 0: x=1174, y=1052, width=267, height=413, order=0
[09-Jan-2026 02:38:50 Asia/Kolkata] Verified positions count: 1
[09-Jan-2026 02:38:50 Asia/Kolkata] Positions data: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[09-Jan-2026 02:38:50 Asia/Kolkata] Final template_positions count: 1
[09-Jan-2026 02:38:50 Asia/Kolkata] ===========================
[09-Jan-2026 02:38:50 Asia/Kolkata] Template ID: 9 - PHP Positions Count: 1
[09-Jan-2026 02:38:50 Asia/Kolkata] Template Positions: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[09-Jan-2026 02:38:50 Asia/Kolkata] === VIEW DEBUG ===
[09-Jan-2026 02:38:50 Asia/Kolkata] Template ID: 9
[09-Jan-2026 02:38:50 Asia/Kolkata] Positions count in view: 1
[09-Jan-2026 02:38:50 Asia/Kolkata] Positions data in view: Array
(
    [0] => Array
        (
            [x] => 1174
            [y] => 1052
            [width] => 267
            [height] => 413
            [pos_order] => 0
        )

)

[09-Jan-2026 02:38:50 Asia/Kolkata] JSON encoded: [{"x":1174,"y":1052,"width":267,"height":413,"pos_order":0}]
[09-Jan-2026 02:38:50 Asia/Kolkata] ==================
