Testing WhatsApp Bot Webhook ============================ 1. Testing directory permissions... ✅ Directory exists: /var/www/html/ms_bot/logs ✅ Directory is writable: /var/www/html/ms_bot/logs ✅ Directory exists: /var/www/html/ms_bot/sessionFiles ✅ Directory is writable: /var/www/html/ms_bot/sessionFiles 2. Testing logging function... ❌ Logging function failed 3. Testing message processing... Processing message from: 254728736229 Message text: 'test' Generated response: { "type": "text", "text": "\ud83c\udf1f Welcome to Tilil Sandbox!\n\nTest response - Menu would normally appear here.\n\nAvailable commands:\n\u2022 services\n\u2022 support\n\u2022 about\n\u2022 contact" } 4. Testing webhook endpoint... Your webhook URL: http://178.18.254.142/ms_bot/whatsapp.php Make sure this URL is accessible from the internet. 5. Quick fixes to try: If the menu is not showing, try: • Send 'menu' or 'hi' to trigger the main menu • Check if your WhatsApp access token is still valid • Verify the phone number ID is correct • Check the webhook.log file for detailed logs Test completed!