MyBB Community Forums

Full Version: PHP error when viewing threads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Yeah I'm just trying to clarify the line number so we know what template it is.
Hmm it's got to be the postbit. If it is, it's line 64 of that template (I think).
Hmm, it's 635 now. I must've uninstalled a few plugins.

Quote:Fatal error: Cannot use [] for reading in /home/rockalex/public_html/nlarcade.com/forum/inc/functions_post.php(635) : eval()'d code on line 64
OK, it is the postbit template then, post the postbit template for the affected theme(s) here.
Matt, I think I found the problem.

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td class="tcat">
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>

		<tr>
			<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}{$post['myxbl']}{$post['myxbl-games']} <br />{$post['iconfacebook']}  
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

				<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['fid20']}{$post['fid22']}{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
				</div>
				<div class="post_management_buttons float_right">{$post['button_spam']}{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
	</tbody>
</table>{$post[]}{$post[]}{$post[]}

Here's my postbit from AFresh Black. I think the culprit is the {$post[]}, considering it's not in Dark Fusion but it's elsewhere. However, I just realized viewing threads in Classic Mode works, so it must be that.

EDIT: I removed all three, so it's got to be more than that.
EDIT: Never mind, it's that. I just commented it out. So now the question is what caused that? =/
Pages: 1 2