Adam Howard
Well-known member
I can confirm that this temp fix seems to be working.
So for now this will do.
Thanks
So for now this will do.
Thanks
if (empty($children))
{
$children = 'null';
}
$childOutput = $compiler->compileIntoVariable($children, $var, $options, false);
The "proper" fix at code level is to return a properly checked array... I have no idea where it has to be implemented.
Please stop posting that ternary operator empty string.![]()
What have you done for it?Band-aid applied.
Band-aid applied.
If by band-aid do you only suppress the errors....?Band-aid applied.
So the next logical question is when will it be releasedBand-aid applied.
I can confirm this.I'm still getting the same error with PHP 5.4 and XenForo 1.1.3.
Has anyone else experienced it?
I've just done a fresh install of XenForo 1.1.3 and the error is still there in numerous places.
Template Errors: thread_create
- Illegal string offset 'thumbnailUrl' in C:\wamp\www\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 416:
415: <li id="' . (($__compilerVar12) ? ('AttachedFileTemplate') : ('attachment' . htmlspecialchars($__compilerVar13['attachment_id']))) . '"
416: class="AttachedFile ' . (($__compilerVar13['thumbnailUrl']) ? ('AttachedImage') : ('')) . ' secondaryContent">
417:- Illegal string offset 'thumbnailUrl' in C:\wamp\www\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 420:
419: ';
420: if ($__compilerVar13['thumbnailUrl'])
421: {- Illegal string offset 'filename' in C:\wamp\www\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 435:
434: $__compilerVar14 .= '
435: <!--<img src="' . XenForo_Template_Helper_Core::styleProperty('imagePath') . '/xenforo/widgets/page.png" alt="' . htmlspecialchars($__compilerVar13['filename']) . '" />-->
436: <span class="genericAttachment"></span>- Illegal string offset 'filename' in C:\wamp\www\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 443:
442: <div class="AttachmentText">
443: <div class="Filename"><a href="' . XenForo_Template_Helper_Core::link('attachments', $__compilerVar13, array()) . '" target="_blank">' . htmlspecialchars($__compilerVar13['filename']) . '</a></div>
444:
This only happens when you have debug mode on.
We use essential cookies to make this site work, and optional cookies to enhance your experience.