lms
Administrador
- Mensajes
- 7.741
- Puntuación de reacciones
- 2.163
- Puntos
- 2.613
- Sitio web
- xenfacil.com
- Versión de XenForo
- 2.1.x
- Página web
- Web
Recien estrenada la nueva versión de PHP 5.4.11 me han dado unos errores como estos en XenForo 1.1.3:
Este problema SOLO se muestra en modo debug.
Lo he resuelto gracias al foro de XenForo. Está en http://xenforo.com/community/threads/php-5-4-bug.29835/page-3#post-387893
Salud2
Insertar CODE, HTML o PHP:
Template Errors: thread_view
[B]Illegal string offset 'thumbnailUrl' in[/B] D:\xampp\htdocs\xenforo\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 2021:
2020: <li id="' . (($__compilerVar73) ? ('AttachedFileTemplate') : ('attachment' . htmlspecialchars($__compilerVar74['attachment_id']))) . '"
2021: class="AttachedFile ' . (($__compilerVar74['thumbnailUrl']) ? ('AttachedImage') : ('')) . ' secondaryContent">
2022:
[B]Illegal string offset 'thumbnailUrl' in[/B] D:\xampp\htdocs\xenforo\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 2025:
2024: ';
2025: if ($__compilerVar74['thumbnailUrl'])
2026: {
[B]Illegal string offset 'filename' in[/B] D:\xampp\htdocs\xenforo\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 2040:
2039: $__compilerVar75 .= '
2040: <!--<img src="' . XenForo_Template_Helper_Core::styleProperty('imagePath') . '/xenforo/widgets/page.png" alt="' . htmlspecialchars($__compilerVar74['filename']) . '" />-->
2041: <span class="genericAttachment"></span>
[B]Illegal string offset 'filename' in[/B] D:\xampp\htdocs\xenforo\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 2048:
2047: <div class="AttachmentText">
2048: <div class="Filename"><a href="' . XenForo_Template_Helper_Core::link('attachments', $__compilerVar74, array()) . '" target="_blank">' . htmlspecialchars($__compilerVar74['filename']) . '</a></div>
2049:
Este problema SOLO se muestra en modo debug.
ragtek dijo:hmmmmm, lo he solucionado con:
Eliminando de la plantilla attachment_editor
Insertar CODE, HTML o PHP:<xen:set var="$attachment"></xen:set>
¿Por qué se necesita una variable $attachment vacía?
Porque xenforo no está tratando de acceder a $attachment['thumbnailUrl'] y otras matrices de elementos que no existen. Ya no he vuelto a tener más el error.
Además no he notado ningún otro "mal" efecto secundario.
Lo he resuelto gracias al foro de XenForo. Está en http://xenforo.com/community/threads/php-5-4-bug.29835/page-3#post-387893
Salud2