✅ PHP 8.4.28 ✅ ext curl ✅ ext pdo ✅ ext pdo_mysql ✅ ext openssl ✅ sessions ✅ file_put_contents
✅ GOOGLE_CLIENT_ID = 438455853861... ✅ GOOGLE_CLIENT_SECRET = ***NDOH ✅ GOOGLE_REDIRECT_URI = https://walteraltare.com/auth/google/callback ✅ APP_URL = https://walteraltare.com APP_ENV = production ✅ APP_SECRET = ***
✅ app/bootstrap.php (1,010 bytes) ✅ app/Models/ComentarioModel.php (13,747 bytes) ✅ auth/google.php (1,482 bytes) ✅ auth/google/callback.php (6,845 bytes) ✅ .htaccess (1,773 bytes) ✅ storage/logs (dir, escribible)
✅ Conexión PDO OK ✅ tabla lectores ✅ tabla comentarios ✅ tabla comentario_likes lectores: 3 registros
✅ ComentarioModel cargado ✅ método upsertLector existe
✅ storage/logs/ es escribible ✅ oauth-test.txt (routing test) ✅ oauth-early.txt (callback ejecutó en flujo REAL) Contenido oauth-early.txt (últimas líneas): 2026-11-19 13:57:54 EARLY state=NONE __FILE__=/home/walteral/public_html/auth/google/callback.php 2026-11-26 06:01:25 EARLY state=NONE __FILE__=/home/walteral/public_html/auth/google/callback.php 2026-11-29 04:01:47 EARLY state=NONE __FILE__=/home/walteral/public_html/auth/google/callback.php 2026-12-01 19:53:00 EARLY state=NONE __FILE__=/home/walteral/public_html/auth/google/callback.php 2026-12-05 03:19:50 EARLY state=NONE __FILE__=/home/walteral/public_html/auth/google/callback.php
session_id: 70380e380599d6459eedf8a551ae576e oauth_debug: ACTIVO oauth_state: (vacío) lector: (no logueado)
[2026-12-01 16:53:00] OAuth cb: INICIO — session_id=3a3ffb7b0015314709e5f27d9a551ba7 oauth_debug=NO oauth_state= state_GET= [2026-12-01 16:53:00] OAuth cb: state= code=VACIO err= [2026-12-01 16:53:00] OAuth cb FALLO: parámetros iniciales — oauthErr= code=vacío [2026-12-05 00:19:50] OAuth cb: INICIO — session_id=b6c65d4f73e21a42fa789252f0ad0f10 oauth_debug=NO oauth_state= state_GET= [2026-12-05 00:19:50] OAuth cb: state= code=VACIO err= [2026-12-05 00:19:50] OAuth cb FALLO: parámetros iniciales — oauthErr= code=vacío
❌ NO hay ninguna línea con 'auth', 'google' o 'callback' en el .htaccess → El servidor tiene el .htaccess VIEJO sin las reglas de routing OAuth.
✅ versión DEBUG-3 (la última) ✅ $debugMode = true hardcodeado ✅ tiene función oauth_fail ✅ usa str_starts_with para popup
✅ no existe: auth/.htaccess ✅ no existe: auth/google/.htaccess
Este botón abre directamente /auth/google/callback?state=popup.ROUTING_TEST&code=fake en una nueva pestaña, sin pasar por Google. Si oauth-test.txt aparece después → el routing funciona. Si no → Apache no manda el request a callback.php.
Modo debug ACTIVO — el callback mostrará errores en pantalla.