Adam Howard
Well-known member
From what I gather, yes.I wonder if that's the "band-aid" Kier mentioned. Does it only happen in debug mode in 1.1.3?
From what I gather, yes.I wonder if that's the "band-aid" Kier mentioned. Does it only happen in debug mode in 1.1.3?
<xen:set var="$attachment"></xen:set>
... It was once used for something.... But I think no longer.... (XenForo's 1st signs of having old code left in?)hmmmmm, i've fixed it with:
removing in template attachment_editor
Code:<xen:set var="$attachment"></xen:set>
WHY do we need here a empty variable $attachment?
because xenforo isn't trying to access $attachment['thumbnailUrl'] and the other non existing array elements, i don't get the error anymore
also i hadn't noticed any other "bad" side effects
I think we've established that the error is still there, but only visible in debug mode... Or am I thinking of something else?Was this fixed in 1.1.3? or for the next release? I got the same error on 1.1.3, reporting just in case!
I think we've established that the error is still there, but only visible in debug mode... Or am I thinking of something else?
... It was once used for something.... But I think no longer.... (XenForo's 1st signs of having old code left in?)
I can confirm that removing that resolves things.![]()
Correct, I'm on 1.1.3 and recently moved to 5.4.X and that error message is still there.Moving back to bugs since there are reports this is not fixed in 1.1.3
Just installed copy of 1.1.2, and it's only present with debug enabled (but the error is larger):Mike said a band-aid was applied.
I assumed this was suppressing the error so it only appears in Debug.
I cannot verify right now, but I assume the error appeared publicly in 1.1.2... either way, this still needs attention![]()
Template Errors: thread_create
Illegal string offset 'thumbnailUrl' in /home/nginx/domains/dev.z22se.com/public/xf112/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 410:
409: <li id="' . (($__compilerVar12) ? ('AttachedFileTemplate') : ('attachment' . htmlspecialchars($__compilerVar13['attachment_id']))) . '"
410: class="AttachedFile ' . (($__compilerVar13['thumbnailUrl']) ? ('AttachedImage') : ('')) . ' secondaryContent">
411:
Illegal string offset 'thumbnailUrl' in /home/nginx/domains/dev.z22se.com/public/xf112/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 414:
413: ';
414: if ($__compilerVar13['thumbnailUrl'])
415: {
Illegal string offset 'filename' in /home/nginx/domains/dev.z22se.com/public/xf112/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 429:
428: $__compilerVar14 .= '
429: <!--<img src="' . XenForo_Template_Helper_Core::styleProperty('imagePath') . '/xenforo/widgets/page.png" alt="' . htmlspecialchars($__compilerVar13['filename']) . '" />-->
430: <span class="genericAttachment"></span>
Illegal string offset 'filename' in /home/nginx/domains/dev.z22se.com/public/xf112/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 437:
436: <div class="AttachmentText">
437: <div class="Filename"><a href="' . XenForo_Template_Helper_Core::link('attachments', $__compilerVar13, array()) . '" target="_blank">' . htmlspecialchars($__compilerVar13['filename']) . '</a></div>
438:
While it is the same issue, the underline cause maybe or may not be the same, based upon two different versions of php.Is this new to PHP 5.5? Or is it exactly the same as the other bug? Why does this have a separate report?
Threads merged.
We use essential cookies to make this site work, and optional cookies to enhance your experience.