Bug #2002
closedPHP 8.3: Error al guardar el PDF de notificación de una determinación cuando falla el reporte
0%
Description
Desde la actualización a PHP 8.3.36 (22-oct-2026), si la generación del PDF de notificación falla, someter la determinación termina con un error fatal en lugar de un error controlado.
Error (VAPPPRD40, 22-oct-2026 20:12):
TypeError: md5(): Argument #1 ($string) must be of type string, array given in SUMAC_Judges_App\service\backend\service\documentRepository.php:61 (desde determinationNotification.php:117, newAndSubmitDetermination.php:196)
Causa: cuando SQL Reporting falla, getReport() devuelve un arreglo [Success => false, Message => ...] en lugar del PDF. En PHP 7.2 uploadFile() lo trataba como archivo sin contenido y devolvía un error controlado; en PHP 8 md5() sobre un arreglo es un error fatal.
Corrección: en uploadFile() (service/backend/service/documentRepository.php), tratar contenido que no sea texto como archivo sin contenido e incluir el mensaje del reporte en el error.
Updated by Repo Bot about 1 month ago
- Status changed from Not Started to Pending Review
PR ready for review: FJM-Seedbury — PHP 8.3: Error al guardar el PDF de notificación cuando falla el reporte → status: Pending Review
Updated by Repo Bot about 1 month ago
- Status changed from Pending Review to Test Internally
Merged into Development via PR #535 → status: Test Internally
Updated by Francisco Medina 11 days ago
- Status changed from Test Internally to Closed
Merged into Development via SUMAC-Judges PR #535. Closing.