Topic on Extension talk:BlogPage

Krayfishkarl (talkcontribs)

I'm getting the screen "A database query error has occurred. This may indicate a bug in the software" whenever someone tries to view a blog page on my site. Enabling the debug info, I get the message: Error: 1054 Unknown column 'Comment_Plus_Count' in 'field list'

I'm aware that there was a bug like this some time ago, but I just installed the master development version for the blog page and comments extension, so any idea what's going on here?

PatHube (talkcontribs)

I get the same error, any advice? I looked at the sql script from the Comments extension and it doesn't create this 'comment_Plus_Count' column when creating the table Comments, so could that mean the Comments extension is responsible for this error?

PatHube (talkcontribs)

I changed the value to false on line 96 in Blog.php and it solved it. This means it won't show the "Comments of the day" but at least it's working now!

 'comments_of_day' => false,
Dariomarcelino (talkcontribs)

Thanks for sharing the fix, it helped me solve my problem. I'm using MW 1.28 and now this setting has moved to extension.json. So the fix should look like this:

extensions/BlogPage/extension.json:36:  "comments_of_day": false,
193.105.251.4 (talkcontribs)

From Extension:Comments. It should be added to BlogPage docs...

The extension also comes with a "Comments of the Day" feature (<commentsoftheday />), which by default is not enabled. You can enable this feature in the wiki's LocalSettings.php, by adding the following after the require_once line:

require_once "$IP/extensions/Comments/CommentsOfTheDay.php";
Reply to "Error 1054"