Script started at: 2025-12-11 12:01:49 ========================================== Error [2]: session_start(): Session cannot be started after headers have already been sent in /var/www/conn.php on line 5 Database query successful Last known orderstamp: 2025-12-11 11:56:02 ========================================== Time Window Configuration ========================================== Fetching orders from: ------------------------------------------ Created After: 2025-12-11T11:56:02 Created Before: 2025-12-11T11:59:49 ------------------------------------------ Last known orderstamp: 2025-12-11 11:56:02 UTC Current time: 2025-12-11 12:01:49 UTC Time window: 00:03:47 hours ------------------------------------------ Note: Using 2-minute buffer as required by Amazon API ========================================== Amazon API call successful Number of orders found: 1 Note: Processing all orders in the time window --- Processing Order: 206-8849501-5208301 --- Order Status: Pending Fulfillment Channel: MFN Processing Item: SKU=U1-S-GH-ug_IFFFVGYYLI, ASIN=0413776603, Qty=1 Fulfillment Type: FBM Order already in DB: NO *** NEW ORDER - Inserting into database *** *** Order inserted successfully *** *** Starting cross-platform stock synchronization *** *** [SYNC] Starting cross-platform stock sync for SKU: U1-S-GH-ug_IFFFVGYYLI *** *** [SYNC] Source: amazon, Quantity: 1 *** *** [SYNC] Updating Shopify inventory *** *** [SYNC] Shopify inventory update failed *** *** [SYNC] Deleting from eBay *** [eBay] Attempting to delete SKU U1-S-GH-ug_IFFFVGYYLI from eBay... [eBay] Calling URL: http://localhost/ebay/update_inventory.php?token=7fB9p2XsKv4DhN6TzRcE8qYgL3mW5JtA&sku=U1-S-GH-ug_IFFFVGYYLI&quantity=0 [eBay] Response: HTTP 200 [eBay] Response body:
2025-12-11 12:01:54: Attempting to get a valid eBay token from database
AZBOOKSUK05091a4427684dc5b4b8DELETE137818 [AbeBooks] HTTP Status: 200 [AbeBooks] Raw Response: 600 Book deleted DELETE 137818 600 Updates completed normally [AbeBooks] Parsed Response: - Code: 600 - Message: Book deleted - Transaction Type: DELETE - Vendor Book ID: 137818 [AbeBooks] ✓ SUCCESS: Item deleted from AbeBooks (Code: 600) *** [SYNC] (abe_id retained in database for tracking) *** *** [SYNC] ✓ AbeBooks removal completed successfully *** *** [SYNC] Stock sync completed: 3/5 platforms successful *** *** [SYNC] Errors: Shopify update failed *** *** Stock sync completed: 3/5 platforms successful *** ========================================== Orderstamp Updated Successfully ========================================== New orderstamp: 2025-12-11 12:01:59 ========================================== ========================================== Script Completed Successfully ========================================== End Time: 2025-12-11 12:01:59 Duration: 9.91 seconds ========================================== Error [2]: file_put_contents(/var/www/html/crons/cron_lock.log): Failed to open stream: Permission denied in /var/www/html/crons/cron_lock.php on line 213 [2025-12-11 12:01:59] [ordersbak] Lock released successfully. Script ended at: 2025-12-11 12:01:59