Warning: require_once(/home/alfestco/bowgestion.alfest.com.ar/test/store/db.php): Failed to open stream: No such file or directory in /home/alfestco/bowgestion.alfest.com.ar/test/store/webhook_diagnostico.php on line 278

Warning: Undefined variable $pdo in /home/alfestco/bowgestion.alfest.com.ar/test/store/webhook_diagnostico.php on line 363
Diagnostico Webhooks ML

Diagnostico de Webhooks MercadoLibre

2026-08-29 02:39:55 — Servidor: www.bowgestion.alfest.com.ar

🔍 Diagnostico

El POST local falla (puede ser problema de SSL del servidor). Esto NO afecta a los webhooks de ML directamente.
1. Este error es del curl interno del servidor (no puede verificar su propio SSL) 2. No afecta a ML (ML usa su propio SSL) 3. Si hay missed_feeds con errores HTTP, ESE es el problema real 4. Verificar que meli_oauth_callback.php tiene permisos 644
Resultados de los checks
Debug log (meli_debug.log)
Ultimo request hace 10 minutos (1 lineas totales)
[2026-08-29 02:29:33] [WEBHOOK] FATAL include: Failed opening required '/home/alfestco/bowgestion.alfest.com.ar/test/store/db.php' (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear')
ℹ️
Log test externo (webhook_test_externo.log)
No existe — nunca se uso webhook_test_externo.php
POST local al callback
HTTP 404, body: " <!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Cache-control" content="no-cache"> <meta http-equiv="Pragma" cont" (2ms)
POST local a diagnostico (este archivo)
HTTP 404, body: " <!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <meta http-equiv="Cache-control" content="no-cache"> <meta http-equiv="Pragma" cont"
.htaccess en store/
Existe con reglas LiteSpeed (noabort) — BIEN
ModSecurity
No detectado en modulos de Apache
Token MercadoLibre
Error leyendo DB: Failed opening required '/home/alfestco/bowgestion.alfest.com.ar/test/store/db.php' (include_path='.:/opt/cpanel/ea-php82/root/usr/share/pear')
missed_feeds API
No se puede consultar sin token/app_id
Webhooks en base de datos (meli_webhook_log)
Error o tabla no existe: Call to a member function query() on null
⚠️
Servidor web
Server: LiteSpeed | PHP SAPI: litespeed — LITESPEED DETECTADO: HTTP 409 puede ser su anti-DDoS/anti-bot
Permisos de escritura en store/
Directorio escribible — los logs se pueden crear
Acciones
Recargar diagnostico Ver log test externo Ir a diagnostico avanzado

Pasos para arreglar (HTTP 409)

  1. Contactar al hosting y decirles EXACTAMENTE esto:
    "Los POST externos a mis archivos PHP en /prod/store/ reciben HTTP 409. Necesito que permitan POST desde estas IPs: 54.88.218.97, 18.215.140.160, 18.213.114.129, 18.206.34.84, 216.33.196.4, 216.33.196.25. Son webhooks de MercadoLibre."
  2. Preguntar al hosting: "Usan LiteSpeed Web Server? Si es asi, necesito desactivar la proteccion anti-DDoS para mi carpeta /prod/store/"
  3. Si el hosting resuelve el 409: Recargar esta pagina y verificar que missed_feeds ya no tiene errores 409
  4. En ML Developer Portal: BORRAR todos los topics, guardar, volver a agregar orders_v2 y shipments, guardar
  5. Verificar que la URL de callback sea: https://bowgestion.alfest.com.ar/prod/store/meli_oauth_callback.php
  6. Re-autorizar la app desde meli_oauth_start.php
  7. Generar actividad y esperar 5 minutos — los webhooks deberian llegar

MIENTRAS TANTO: El cron cada minuto procesa missed_feeds, asi que no se pierde data aunque los webhooks fallen.

Test rapido con URL temporal

  1. En ML Developer Portal, cambiar temporalmente la URL de callback a:
    https://bowgestion.alfest.com.ar/prod/store/webhook_diagnostico.php
  2. Guardar (ML envia un POST de prueba al guardar)
  3. Recargar esta pagina — si aparece algo en "Log de POST recibidos", el servidor es accesible
  4. Si NO aparece nada, el hosting esta bloqueando TODO POST externo → contactar soporte
  5. IMPORTANTE: Volver a poner la URL original cuando termines
IPs de MercadoLibre: 54.88.218.97 | 18.215.140.160 | 18.213.114.129 | 18.206.34.84 | 216.33.196.4 | 216.33.196.25
Callback URL: https://www.bowgestion.alfest.com.ar/prod/store/meli_oauth_callback.php
App ID: | Seller ID: