Prepare failed: Prepare failed: [2025-11-28 15:57:24] --- api_manage_stock_counts.php started --- [2025-11-28 15:57:31] --- api_manage_stock_counts.php started --- [2025-11-28 15:57:31] Action: create. Checking permission... [2025-11-28 15:59:34] --- api_manage_stock_counts.php started --- [2025-11-28 15:59:41] --- api_manage_stock_counts.php started --- [2025-11-28 15:59:41] Function has_permission EXISTS. Calling it now. [2025-11-28 16:05:50] --- api_manage_stock_counts.php started --- [2025-11-28 16:05:50] Function has_permission EXISTS. Calling it now. [2025-11-28 16:05:52] --- api_manage_stock_counts.php started --- [2025-11-28 16:10:22] --- api_manage_stock_counts.php started --- [2025-11-28 16:10:32] --- api_manage_stock_counts.php started --- [2025-11-28 16:10:32] Function has_permission EXISTS. Calling it now. [2025-11-28 16:12:03] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:04] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:04] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:04] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:05] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:05] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:05] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:07] --- api_manage_stock_counts.php started --- [2025-11-28 16:12:18] --- api_manage_stock_counts.php started --- [2025-11-28 16:14:52] --- api_manage_stock_counts.php started with error handlers --- [2025-11-28 16:15:04] --- api_manage_stock_counts.php started with error handlers --- [2025-11-28 16:15:04] [ERROR] Severity:2 | Message:Undefined array key "user_id" | File:C:\laragon\www\wms\api_manage_stock_counts.php | Line:56