MessageIndex.template.php and MessageIndex.php issue

Started by tjcheckley, May 22, 2012, 01:42:23 PM

Previous topic - Next topic

tjcheckley

I looked through a few searches for previous known issues with the MessageIndex.php file, but couldn't find anything matching what I'm seeing. 

I'm seeing the following error in my logs:

http://checkconnect.net/index.php?
8: Undefined index: name
File: /home/checkc6/public_html/Sources/MessageIndex.php
Line: 574


I'm seeing a bunch of these undefined indexes for not only name but other structures associated with boards like, redirect, child_level, description, id, parent, etc.  I'm seeing this error only in MessageIndex.php and messageindex.template.php.

The error message that brought this to my attention was when I run "Find and Repair any error" in the control panel it gives:

Board #0 is marked as read for one or more people, but does not exist.

Selecting to fix the issue does not fix it permanently, once the user visits again they error is thrown again.

There are a slew of errors given when this happens with multiple blocks of code affected, but here is one block from the error above:

$context['jump_to'] = array(
'label' => addslashes(un_htmlspecialchars($txt['jump_to'])),
'board_name' => htmlspecialchars(strtr(strip_tags($board_info['name']), array('&' => '&'))),
'child_level' => $board_info['child_level'],
);


I am new to SMF and am trying to find the issue, but thought I'd ask if anyone had any advice.

Thanks.

kat

Hi, TJ!



Just a hunch, this...

Have you tried going toyour site's CPanel (Not SMF's) and checking/repairing the database?

tjcheckley

I thought of that.  But I'm not sure where which table to look in.  I looked in smf_boards and did a "repair table smf_boards" but that didn't do anything.  Any ideas on where to look?  Thanks.

Storman™

Quotehttp://checkconnect.net/index.php?

Am I looking at the wrong link cus that goes to a phpBB forum (not SMF)  :o

kat

Quote from: tjcheckley on May 23, 2012, 01:48:03 PMAny ideas on where to look?  Thanks.

CPanel>Databases>MySQL Databases.

Select your db and click "Check" and/or "Repair".

Might as well check everything, ay? ;)

Advertisement: