News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Error de subie imagen

Started by Carlos1903, February 02, 2024, 06:50:22 PM

Previous topic - Next topic

Carlos1903

Wrong value type sent to the database. Array of integers expected. (preview_attachments)


Alguien que me ayude por favor

Diego Andrés

Podrías dejar más detalles?

- versión de SMF
- Mods instalados
- Errores relacionados al problema en el log de errores
- Cuando empezó el problema
- Cómo sucede dicho problema
etc.

SMF Tricks - Free & Premium Responsive Themes for SMF.

ojee66

Try this in subs-attachment.php

//           'preview_attachments' => !empty($_SESSION['attachments_can_preview']) ? array_keys(array_filter($_SESSION['attachments_can_preview'])) : array(0),
//  'preview_attachments' => !empty($_SESSION['attachments_can_preview']) ? array_keys(array_filter($_SESSION['attachments_can_preview'], 'is_int')) : array(0),



'preview_attachments' => !empty($_SESSION['attachments_can_preview'])
    ? array_map('intval', array_keys(array_filter($_SESSION['attachments_can_preview'])))
    : array(0),

Advertisement: