• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Upgraded to PHP 5.4, and now started to get errors...

Mr. Goodie2Shoes

Well-known member
#1
I just upgraded my localhost's PHP version to 5.4 and getting this error:
Code:
Template Errors: thread_view
 
    Illegal string offset 'thumbnailUrl' in 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:
 
    Illegal string offset 'thumbnailUrl' in D:\xampp\htdocs\xenforo\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 2025:
 
    2024:        ';
    2025: if ($__compilerVar74['thumbnailUrl'])
    2026: {
 
    Illegal string offset 'filename' in 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>
 
    Illegal string offset 'filename' in 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:
and
Code:
Template Errors: thread_create
 
    Illegal string offset 'thumbnailUrl' in D:\xampp\htdocs\xenforo\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 D:\xampp\htdocs\xenforo\library\XenForo\Template\Abstract.php(265) : eval()'d code, line 420:
 
    419:        ';
    420: if ($__compilerVar13['thumbnailUrl'])
    421: {
 
    Illegal string offset 'filename' in D:\xampp\htdocs\xenforo\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 D:\xampp\htdocs\xenforo\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:
 

Adam Howard

Well-known member
#7
Found out the issue only shows up if you have debug mode on.

Which of course will affect anyone trying to run their test site or develop an add-on.