XF 1.1 Template errors after migration to new web host.

jmyres

Member
We recently migrated our forum to a new web host using a Cpanel backup. Everything is going pretty well, but we are getting this error at the top of our page when navigating through different threads/ posts:

Template Errors: thread_view
  1. Illegal string offset 'thumbnailUrl' in /home/liftgamm/public_html/forum/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:

  2. Illegal string offset 'thumbnailUrl' in /home/liftgamm/public_html/forum/library/XenForo/Template/Abstract.php(265) : eval()'d code, line 2025:
    2024: ';
    2025: if ($__compilerVar74['thumbnailUrl'])
    2026: {

  3. Illegal string offset 'filename' in /home/liftgamm/public_html/forum/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>

  4. Illegal string offset 'filename' in /home/liftgamm/public_html/forum/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:

I have been going through the Troubleshooting FAQ, and see several good options, but was wondering if the error above points to anything specific I could try first?

A screenshot of the error is attached.

Thanks, Jason
 

Attachments

Mike

XenForo developer
Staff member
Realistically speaking, XF 1.1 is the problem here. This was fixed in later versions I believe -- though it was so long ago, I don't recall when -- and it's specific to newer PHP versions. (It should also only happen when debug mode is enabled.)

I'd have to recommend upgrading your XF install.
 

jmyres

Member
Upgrading to Xf 1.5 was part of our plan, but I wasn't sure if doing the update before any issues were resolved was a good idea or not. If updating fixes this, then that would great. Thanks for the suggestion. I'll give it a try.
 

jmyres

Member
Quick update: Upgrading to Xf 1.5 fixed our template errors. So far everything is working great. Thanks again for the easy fix.
 
Top