MyBB Community Forums

Full Version: Can't view a thread using 2 themes after upgrading.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I made two themes for a customer and I get this error while I try to view a thread.
This is the first time that happens after many and many themes done using the same installation of the script on my localhost.
The unique change that I did on my forum recently is updating the version of mybb. Could I have done something wrong? And, is it possible to fix those themes for my customer?

Quote:Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /Applications/XAMPP/xamppfiles/htdocs/forum/showthread.php(1222) : eval()'d code on line 34
Something goes wrong in your header or footer template of those themes.
Can I post them?
First theme:

header
<br class="clear" />
       <div id="container">

<div id="header_bar">
<div id="header_bar_content">
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img
src="{$theme['logo']}" alt="{$mybb->settings['bbname']}"
title="{$mybb->settings['bbname']}" /></a></div>

<p id="banner">
<iframe marginwidth="0" marginheight="0" frameborder="0" style="border:2px
solid #fff;" scrolling="no" allowtransparency="true"
src="http://srv.juiceadv.com/banner_iframe.asp?user=1495&amp;tipo=0"
width="468" height="60"></iframe>
</p>
            <div class="menu">
                <ul>
                    <li><a href="{$mybb->settings['bburl']}/portal.php"><img
src="{$theme['imgdir']}/toplinks/house.png" alt="" title="" />Home</a></li>
                    <li><a href="{$mybb->settings['bburl']}/index.php"><img
src="{$theme['imgdir']}/toplinks/forum.png" alt="" title="" />Forum</a></li>
                    <li><a href="{$mybb->settings['bburl']}/search.php"><img
src="{$theme['imgdir']}/toplinks/search.gif" alt="" title=""
/>{$lang->toplinks_search}</a></li>
                    <li><a
href="{$mybb->settings['bburl']}/memberlist.php"><img
src="{$theme['imgdir']}/toplinks/memberlist.gif" alt="" title=""
/>{$lang->toplinks_memberlist}</a></li>
                    <li><a
href="{$mybb->settings['bburl']}/calendar.php"><img
src="{$theme['imgdir']}/toplinks/calendar.gif" alt="" title=""
/>{$lang->toplinks_calendar}</a></li>
                    <li><a
href="{$mybb->settings['bburl']}/misc.php?action=help"><img
src="{$theme['imgdir']}/toplinks/help.gif" alt="" title=""
/>{$lang->toplinks_help}</a></li>
                </ul>
            </div>

</div>
</div>

        <a name="top" id="top"></a>
        <div id="header">
         <hr class="hidden" />
         <div id="panel">
         {$welcomeblock}
        </div>
        </div>
        <hr class="hidden" />
        <br class="clear" />
        <div id="content">
            {$pm_notice}
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
            {$pending_joinrequests}
            <navigation>
            <br />

footer
			<br />
			<div class="bottommenu">
				<div class="float_right">{$lang_select}</div>
				<div>
					<span class="smalltext"><a href="{$mybb->settings['contactlink']}">{$lang->bottomlinks_contactus}</a> | <a href="{$mybb->settings['homeurl']}">{$mybb->settings['homename']}</a> | <a href="#top">{$lang->bottomlinks_returntop}</a> | <a href="#content">{$lang->bottomlinks_returncontent}</a> | <a href="<archive_url>">{$lang->bottomlinks_litemode}</a> | <a href="{$mybb->settings['bburl']}/misc.php?action=syndication">{$lang->bottomlinks_syndication}</a></span>
				</div>
			</div>
			</div>
		<hr class="hidden" />
			<div id="copyright">
				<div id="debug"><debugstuff></div>
				<!-- MyBB is free software developed and maintained by a volunteer community. 
					 It would be much appreciated by the MyBB Group if you left the full copyright and "powered by" notice intact, 
					 to show your support for MyBB.  If you choose to remove or modify the copyright below, 
					 you may be refused support on the MyBB Community Forums.
					 
					 This is free software, support us and we'll support you. -->
{$lang->powered_by} <a href="http://mybb.com/" target="_blank">MyBB{$mybbversion}</a>, &copy; 2002-{$copy_year} <a href="http://mybb.com/" target="_blank">MyBB Group</a>.<br />
				<!-- End powered by -->
				<br />
<br class="clear" />
<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE -->{$task_image}<!-- End task image code -->
{$auto_dst_detection}
		</div>
		</div>
These twos are fine, probably something with any other template.

unexpected T_STRING, expecting T_VARIABLE error occurs when header or footer or headerinclude templates have variables NOT enclosed with parenthesis.
I didn't change anything in the headerinclude
MyBB version?? PHP version?? This info might help find out what's wrong (though I doubt it. Check your templates again)
MyBB Version 1.6.2
PHP Version 5.3.1

headerinclude
<meta
http-equiv="X-UA-Compatible" content="IE=8" />
<link rel="alternate" type="application/rss+xml"
title="{$lang->latest_threads} (RSS 2.0)"
href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml"
title="{$lang->latest_threads} (Atom 1.0)"
href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript"
src="{$mybb->settings['bburl']}/jscripts/prototype.js?ver=1600"></script>
<script type="text/javascript"
src="{$mybb->settings['bburl']}/jscripts/general.js?ver=1600"></script>
<script type="text/javascript"
src="{$mybb->settings['bburl']}/jscripts/popup_menu.js?ver=1600"></script>
{$stylesheets}
<script type="text/javascript">
<!--
	var cookieDomain = "{$mybb->settings['cookiedomain']}";
	var cookiePath = "{$mybb->settings['cookiepath']}";
	var cookiePrefix = "{$mybb->settings['cookieprefix']}";
	var deleteevent_confirm = "{$lang->deleteevent_confirm}";
	var removeattach_confirm = "{$lang->removeattach_confirm}";
	var loading_text = '{$lang->ajax_loading}';
	var saving_changes = '{$lang->saving_changes}';
	var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
	var my_post_key = "{$mybb->post_code}";
	var imagepath = "{$theme['imgdir']}";
// -->
</script>
{$newpmmsg}

<!--[if IE 7]>
<style type="text/css">
.menu {
margin-top:-10px;
}
</style>
<![endif]-->

I remembered that I edited the headerinclude but just for a simple if
Hmmm, can you confirm the themes are compatible with 1.6??
(2011-04-04, 07:27 PM)Shukaku Wrote: [ -> ]Hmmm, can you confirm the themes are compatible with 1.6??

Its absolutely nothing to do with theme's compatibility.

Trinit, can you paste showthread template code here ?
It could be, how are you so sure? Toungue

These are the kind of questions I ask all people needing support Smile
Pages: 1 2