Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Bunstonious on February 1st, 2014, 01:57 PM

Title: Post Count / Youtube Embed
Post by: Bunstonious on February 1st, 2014, 01:57 PM
Not sure if this is intentional, but the post count doesn't seem to increment. I also can't embed youtube video's, is it off by default?

Is there a scheduled task that recounts to show the post count? Is there another function that I am missing?

PS: Sorry if it sounds rude, no rush and just a small question, also sorry if it has been answered and I fail at searching (I did try).

PPS: Love Wedge so far, been waiting for YEARS to test it out, #soexcited

 :ph34r:
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 2nd, 2014, 01:58 PM
I can see where to disable Post count, but nothing on it's incrementation. any ideas?
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 2nd, 2014, 02:54 PM
I have done a "Recount members posts" in the maintenance menu and I get:

"Database error, given array of integer values is empty. (boards)"
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 2nd, 2014, 03:09 PM
I think I have solved the problem for those that are interested.

I noticed that the field count_post in the table wedge_boards had a value of 1 for the affected forum, whereas the default forum I have, has those values as 0. I changed my "Testing" board to 0 and BAM! Post count started incrementing.

I then ran an update statement on the database to change all of the values to 0, and then was able to successfully do a recount and posts are now incrementing.

I think this was the default value of the importer.

=== For reference ===

Error when doing a recount:

"Apply Filter: Only show the error messages of this member 1337_user
Apply Filter: Only show the error messages of this IP address <REMOVED>      Yesterday at 11:52 PM
Apply Filter: Only show the errors of this type Type of error: Critical
Apply Filter: Only show the error messages of this URL https://forum.bunston.net/index.php?action=admin;area=maintain;sa=members;activi…
Apply Filter: Only show the errors with the same message Database error, given array of integer values is empty. (boards)
Function: MaintainRecountPosts
Apply Filter: Only show the errors from this file File: /var/www/forum/gz/app/ManageMaintenance.php
Line: 1671
"
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 2nd, 2014, 03:19 PM
PS I marked the topic as solved and moved the youtube issue to another thread.

Can't rename it, or modify the initial post for some reason.
Title: Re: Post Count / Youtube Embed
Post by: Farjo on February 2nd, 2014, 05:21 PM
#soexcited <-- it's obvious from your avatar :angel:

In Admin, Forum, Boards and Categories, Modify Boards click Modify on a board and scroll down to 'Count Posts' - this tick-box toggles the count_posts field.
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 2nd, 2014, 09:45 PM
Well then... lol
Title: Re: Post Count / Youtube Embed
Post by: Nao on February 2nd, 2014, 10:58 PM
AFAIK, (1) it's a SMF feature, not from Wedge, (2) boards are set to count posts by default, including the first default board. The only board in wedge.org that doesn't count posts is the Test board, as can be expected.
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 3rd, 2014, 12:31 AM
I think the importer sets them to not count
Title: Re: Post Count / Youtube Embed
Post by: Farjo on February 3rd, 2014, 01:51 AM
My 'testing' board is the only one set to not count posts and all boards have been set correctly. What is your 'Testing' board's setting in the SMF database?
Title: Re: Post Count / Youtube Embed
Post by: Bunstonious on February 3rd, 2014, 04:04 AM
I migrated from MyBB, not SMF