1. 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...

Discussion in 'Troubleshooting and Problems' started by Mr. Goodie2Shoes, Jun 27, 2012.

  1. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    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:   
     
    
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Maybe Kier only fixed it in 1.2. But Floren posted a code fix you can try.
     
  5. Mr. Goodie2Shoes

    Mr. Goodie2Shoes Well-Known Member

    hmm... okay thanks! :)
     
  6. BamaStangGuy

    BamaStangGuy Well-Known Member

  7. Adam Howard

    Adam Howard Well-Known Member

    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.
     
  8. ashkir

    ashkir Active Member

    Thanks for this! Now I understand why. This also happens on conversation pages.
     
  9. Dinh Thanh

    Dinh Thanh Well-Known Member

    So I will not upgrade my php to 5.4, wait for 1.2
    Thanks.
     
  10. pissshivers

    pissshivers Member

    Nevermind, my co-developer was messing with stuff :p
     

Share This Page