=========================================== 🔍 VERIFICAR mul_url_remoto ACTUAL =========================================== 📊 Estado actual en BD: ------------------------------------------- Ocurrencias
Internal Server Error

TypeError

check_bd_1138.php:20

count(): Argument #1 ($value) must be of type Countable|array, null given

LARAVEL 12.38.1
PHP 8.4.18
UNHANDLED
CODE 0
500
GET
https://ocurrencias.valcoza.net.pe

Exception trace

check_bd_1138.php
check_bd_1138.php:20
1516$mulUrlRemoto = json_decode($ocurrencia->mul_url_remoto, true);1718echo "📊 Estado actual en BD:\n";19echo "-------------------------------------------\n";20echo "mul_url_remoto tiene " . count($mulUrlRemoto) . " archivo(s):\n\n";2122foreach ($mulUrlRemoto as $url) {23    $tipo = strpos($url, '/fotos/') !== false ? '📸' : (strpos($url, '/videos/') !== false ? '🎥' : '🎵');24    echo "{$tipo} {$url}\n";25    26    // Verificar físicamente27    if (str_starts_with($url, '/storage/')) {28        $relativePath = str_replace('/storage/', '', $url);29        $fullPath = storage_path('app/public/' . $relativePath);30        31        if (file_exists($fullPath)) {32

Queries

mysql
select * from `ocurrencias` where `id` = 1138 limit 1
5.33ms

Headers

host
ocurrencias.valcoza.net.pe
user-agent
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
accept
*/*
accept-language
en-us,en;q=0.5
accept-charset
ISO-8859-1,utf-8;q=0.7,*;q=0.7
x-https
1
accept-encoding
gzip, br, zstd, deflate

Body

// No request body

Routing

// No routing context

Routing parameters

// No routing parameters