Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: PiGuy on September 06, 2013, 08:17:44 PM

Title: Categories not displaying in the proper order
Post by: PiGuy on September 06, 2013, 08:17:44 PM
Hi, I'm having an issue in the latest release of SMF where my categories aren't displaying in the correct order.


It seems that no matter how I configure the boards/categories, they don't display in the correct order.

(http://puu.sh/4kRaC.png)

(http://puu.sh/4kRbS.png)
Title: Re: Categories not displaying in the proper order
Post by: mashby on September 06, 2013, 11:11:54 PM
Hmm...mind providing a link to where the screen shots came from?
Title: Re: Categories not displaying in the proper order
Post by: Illori on September 07, 2013, 05:42:20 AM
can you check if your yourprefixhere_boards and yourprefixhere_categories tables are innoDB or MyISAM ?
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 03:48:33 PM
Quote from: mashby on September 06, 2013, 11:11:54 PM
Hmm...mind providing a link to where the screen shots came from?

Here's the website. (http://greatlakesservers.com/smf/index.php)

Quote from: Illori on September 07, 2013, 05:42:20 AM
can you check if your yourprefixhere_boards and yourprefixhere_categories tables are innoDB or MyISAM ?

They're MyISAM.
Title: Re: Categories not displaying in the proper order
Post by: Illori on September 07, 2013, 03:56:03 PM
have you tried moving a board up and down in the admin panel and see if that helps?
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 04:01:14 PM
Quote from: Illori on September 07, 2013, 03:56:03 PM
have you tried moving a board up and down in the admin panel and see if that helps?

I've re-arranged them via the admin panel, and even manually changed their order through the db. They don't seem to move.

DB values: (http://puu.sh/4lvOv.png)

and the admin panel: (http://puu.sh/4lvMt.png)

Title: Re: Categories not displaying in the proper order
Post by: Illori on September 07, 2013, 04:03:05 PM
then double check that the tables are not INNODB
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 04:05:40 PM
Quote from: Illori on September 07, 2013, 04:03:05 PM
then double check that the tables are not INNODB


Nada.

(http://puu.sh/4lvRI.png)

(http://puu.sh/4lvT9.png)
Title: Re: Categories not displaying in the proper order
Post by: Arantor on September 07, 2013, 04:16:12 PM
So, the admin panel has them correct and it's just the board listing that's wrong?

What, exactly, are the indexes on smf_boards? (smf_categories is irrelevant in this situation)
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 04:28:58 PM
Quote from: Arantor on September 07, 2013, 04:16:12 PM
So, the admin panel has them correct and it's just the board listing that's wrong?

What, exactly, are the indexes on smf_boards? (smf_categories is irrelevant in this situation)

Here

(http://puu.sh/4lx1B.png)
Title: Re: Categories not displaying in the proper order
Post by: Arantor on September 07, 2013, 04:30:49 PM
Firstly you could have just answered my first question without having to make me look at two screenshots and compare them.

Secondly, please answer ALL the questions I ask.
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 08:37:15 PM
Quote from: Arantor on September 07, 2013, 04:30:49 PM
Firstly you could have just answered my first question without having to make me look at two screenshots and compare them.

Secondly, please answer ALL the questions I ask.

I'm sorry.



Quote from: Arantor on September 07, 2013, 04:16:12 PM
So, the admin panel has them correct and it's just the board listing that's wrong?
That's correct.


Quote from: Arantor on September 07, 2013, 04:16:12 PM
What, exactly, are the indexes on smf_boards? (smf_categories is irrelevant in this situation)

I'm not sure if this still needs to be answered, or if the screenshot was sufficient.
Title: Re: Categories not displaying in the proper order
Post by: Arantor on September 07, 2013, 08:38:44 PM
Oh, it completely needs to be answered because you gave me the table CONTENT. Not the indexes.
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 08:46:32 PM
Quote from: Arantor on September 07, 2013, 08:38:44 PM
Oh, it completely needs to be answered because you gave me the table CONTENT. Not the indexes.

Oh. I'm an idiot.  :-[



(http://puu.sh/4lJRQ.png)
Title: Re: Categories not displaying in the proper order
Post by: Arantor on September 07, 2013, 08:55:30 PM
OK, so do you have any modifications that touch the board index?
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 07, 2013, 09:17:31 PM
Quote from: Arantor on September 07, 2013, 08:55:30 PM
OK, so do you have any modifications that touch the board index?

I'm assuming you mean the BoardIndex.template.php...

I downloaded the Ad Management Mod (http://custom.simplemachines.org/mods/index.php?mod=255), though that installed/uninstalled without incident.

Other than that, I haven't installed any other packages, because I noticed this issue once I started adding boards.
Title: Re: Categories not displaying in the proper order
Post by: Arantor on September 07, 2013, 09:21:00 PM
No, I'm not talking about BoardIndex.template.php as it happens, I'm talking about any file that could have modified Subs-BoardIndex.php instead.

See, what you're describing should only occur in one of two circumstances: using InnoDB or it's temporarily misadjusted (and moving a board and moving it back should force a reset anyway) but neither is the case here. So I assumed that you had a mod that changed the way it was ordering.

The really weird thing is that the behaviour it has is actually different to either of those two situations. There is no reason for it to be in the order it is... hmm.

You seem very adept with database tools. What privileges did you give the database user exactly? Does the user who is running SMF stuff have ALTER TABLE privileges?
Title: Re: Categories not displaying in the proper order
Post by: PiGuy on September 10, 2013, 08:53:45 AM
Quote from: Arantor on September 07, 2013, 09:21:00 PM
No, I'm not talking about BoardIndex.template.php as it happens, I'm talking about any file that could have modified Subs-BoardIndex.php instead.

See, what you're describing should only occur in one of two circumstances: using InnoDB or it's temporarily misadjusted (and moving a board and moving it back should force a reset anyway) but neither is the case here. So I assumed that you had a mod that changed the way it was ordering.

The really weird thing is that the behaviour it has is actually different to either of those two situations. There is no reason for it to be in the order it is... hmm.

You seem very adept with database tools. What privileges did you give the database user exactly? Does the user who is running SMF stuff have ALTER TABLE privileges?

Sorry for the delay, I was out of the house for a few days.

I ended up just doing a fresh install and copying over the members/boards/categories tables to the new db.

Still no idea what went wrong, but everything seems to be in order now.


Thank you for your help.
Title: Re: Categories not displaying in the proper order
Post by: johndays on February 15, 2014, 11:29:58 AM
I have the same problem since my SP updated MySQL
Title: Re: Categories not displaying in the proper order
Post by: Kindred on February 15, 2014, 03:33:59 PM
do not post questions in old threads... especially ones which have already been marked as solved.
Title: Re: Categories not displaying in the proper order
Post by: johndays on February 16, 2014, 11:18:37 AM
So should I create a new one?

Thanks
Title: Re: Categories not displaying in the proper order
Post by: Kindred on February 16, 2014, 06:37:21 PM
yes
Title: Re: Categories not displaying in the proper order
Post by: johndays on February 17, 2014, 02:12:40 AM
Thank you ;)