query("SHOW COLUMNS FROM account"); $columns = $stmt->fetchAll(PDO::FETCH_COLUMN); $response['account_columns'] = $columns; } catch (Exception $e) { $response['account_columns_error'] = $e->getMessage(); } // 2. Check push_subscriptions table try { $stmt = $pdo->query("SELECT * FROM push_subscriptions"); $subs = $stmt->fetchAll(PDO::FETCH_ASSOC); $response['push_subscriptions_count'] = count($subs); $response['push_subscriptions'] = $subs; } catch (Exception $e) { $response['push_subscriptions_error'] = $e->getMessage(); } // 3. Check push_error.log if (file_exists('push_error.log')) { $response['push_error_log'] = file_get_contents('push_error.log'); } else { $response['push_error_log'] = "File not found."; } echo json_encode($response, JSON_PRETTY_PRINT);