Error: Uncaught TypeError: Argument 1 passed to handleShutdown() must be an instance of Exception
Publicado por Mario (3 intervenciones) el 08/04/2021 09:26:48
Detalles del error
Error: Uncaught TypeError: Argument 1 passed to handleShutdown() must be an instance of Exception or null, instance of Error given in /var/www/vhosts/dominio.es/httpdocs/cuestionariodesalud/_fastweb/src/functions.inc.php:198 Stack trace: #0 [internal function]: handleShutdown() #1 {main} thrown
Fichero: functions.inc.php
Linea: 198
URL: https://imastres.es/cuestionariodesalud/
Navegador: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0
Este es el inicio de la función:
Error: Uncaught TypeError: Argument 1 passed to handleShutdown() must be an instance of Exception or null, instance of Error given in /var/www/vhosts/dominio.es/httpdocs/cuestionariodesalud/_fastweb/src/functions.inc.php:198 Stack trace: #0 [internal function]: handleShutdown() #1 {main} thrown
Fichero: functions.inc.php
Linea: 198
URL: https://imastres.es/cuestionariodesalud/
Navegador: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:87.0) Gecko/20100101 Firefox/87.0
Este es el inicio de la función:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function handleShutdown(Exception $exception = null) {
//Intentamos asegurar que estamos en modo desarrollador
$dev = false;
try {
$dev = @website::in_developer_mode();
} catch(Exception $e) {
$dev = false;
}
// if ($dev && $exception != null) {
// //Relanzamos excepción con su manejador
// $restored = restore_exception_handler();
// if ($restored) { //prevent infinite loops
// throw $exception;
// }
// }
Valora esta pregunta


0