Extension talk:BlogPage
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Unable to download with ED
I can't download it! (No such extension "BlogPage") 94.41.106.149 08:12, 16 October 2011 (UTC) 09:12, 16 October 2011 (UTC)
- ExtensionDistributor seems to be broken, once again. You can either download a SVN client or download the files on a one-by-one basis via ViewVC. Jack Phoenix (Contact) 09:51, 16 October 2011 (UTC)
BlogPage doesn't work with 1.16.5
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Don't work 1.16.5 60.25.189.69 13:10, 30 October 2011 (UTC)
- Thank you for this detailed bug report. Could you be any more specific about it? Jack Phoenix (Contact) 15:34, 30 October 2011 (UTC)
- blank main page 221.129.245.100 06:17, 31 October 2011 (UTC)
- That is still as unhelpful as your initial message. I suggest you take a look at Manual:How to debug and come back with some detailed information. A blank main page could be caused by a fatal error, a syntax error or anything inbetween. Jack Phoenix (Contact) 22:40, 4 November 2011 (UTC)
- blank main page 221.129.245.100 06:17, 31 October 2011 (UTC)
Example site?
Could someone who is using this post the URL of their blog? Djbclark 15:32, 2 November 2011 (UTC)
Not working on mediawiki 1.17
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The blog extension has installed correctly, however, I'm getting JS errors whenever I'm trying to create a blog.
Throws CreateBlogPost is not defined. Did I miss a step? ProgramCeltic 20:51, 4 November 2011 (UTC)
- It's not loading the JS at all using the $wgResourceModule, we are using 1.17. ProgramCeltic 21:37, 4 November 2011 (UTC)
- Your problem is MediaWiki 1.17; its ResourceLoader is buggy. I'd suggest upgrading to MediaWiki 1.18 when it's out (but 1.18 beta 1 is already out). Jack Phoenix (Contact) 22:38, 4 November 2011 (UTC)
- I got the ResourceLoader working, but now I have found a new bug. Whenever I submit a blog, I get an error from BlogHooks.php. On line 138, there is only two variables being passed in the preprocessor which is throwing an error from parser.php line 447. Any fix?
- To be more precise it's on the ctgTitle = Title::newFromText
- I'm using the latest revision of all the dependency plugins as well. ProgramCeltic 00:18, 5 November 2011 (UTC)
- Thanks for the bug report, I've fixed that bug in r102094. Jack Phoenix (Contact) 14:01, 5 November 2011 (UTC)
- You are welcome Jack! ProgramCeltic 17:39, 7 November 2011 (UTC)
- Thanks for the bug report, I've fixed that bug in r102094. Jack Phoenix (Contact) 14:01, 5 November 2011 (UTC)
- Your problem is MediaWiki 1.17; its ResourceLoader is buggy. I'd suggest upgrading to MediaWiki 1.18 when it's out (but 1.18 beta 1 is already out). Jack Phoenix (Contact) 22:38, 4 November 2011 (UTC)
Not working on mediawiki 1.18
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a 1.18 wiki with the SocialProfile and all of its components installed and working fine, but when I installed BlogPage and added the require_once line, the site went blank.
What did I do wrong?
Thanks, Asaf
MediaWiki 1.18.1
PHP 5.2.9 (apache)
MySQL 5.0.67-log
94.159.139.150 10:45, 2 March 2012 (UTC)
- Try upgrading PHP, and using the appropriate version. Likely you have a syntax error in your configuration file or you did not get the right version. Jasper Deng (talk) 18:08, 2 March 2012 (UTC)
- Thanks, it works!
- Asaf 94.159.139.150 17:45, 4 March 2012 (UTC)
- Need help, cannot create any blog entry due to 'There's already a blog post with that title. Please choose a different title for your blog post.'
- Any entered title reports above error without creating anything.
- Mediawiki: 1.18.1
- PHP: 5.3.2-1
- Latest Extensions: Comments, VoteNY, SocialProfile 84.187.100.66 21:24, 6 March 2012 (UTC)
Mediawiki 1.18.2 - syntax error, unexpected T_FUNCTION BlogHooks.php on line 31
I try to solve the issue in title. This occur on a new mediawiki installation on a mutualized host. All pages are impacted when the BlogPage extension is activated in LocalSettings.
The BlogPage extension is downloaded from the trunk by the snapshot link of the extension page.
The host configuration is has follow:
- MediaWiki 1.18.3
- PHP 5.2.17 (cgi)
- MySQL 5.0.90-log
Any suggestion ? Roudou (talk) 07:47, 16 May 2012 (UTC)
- BlogPage requires PHP 5.3+ and the line it's whining about is a late static binding, a feature which was introduced in PHP 5.3. Jack Phoenix (Contact) 19:49, 20 May 2012 (UTC)
- I have the same problem with:
- MediaWiki - 1.19.1
- PHP - 5.3.13 (cgi-fcgi)
- MySQL - 5.1.39-log Applegategh (talk) 17:42, 24 October 2012 (UTC)
don't work with mediawiki 1.19.0
Hi i using mediawiki 1.19.0, i have installed SocialProfile,Comments and VoteNY extensions but when i try create new blog says this message
Warning: Invalid argument supplied for foreach() in /var/www/mediawiki/mediawiki3/extensions/SocialProfile/UserStats/UserStatsClass.php on line 611
Ha ocurrido un error de sintaxis en una consulta a la base de datos. Esto puede indicar un error en el software. La última consulta a la base de datos que se intentó fue: (Consulta SQL oculta) dentro de la función «UserStatsTrack::updateWeeklyPoints». La base de datos devolvió el error «1146: Table 'mediawiki3.wiki_user_points_weekly' doesn't exist (localhost)».
I search in the code the sql code but i can't found it.
Any solution? Hevercking (talk) 08:15, 20 June 2012 (UTC)
- To be specific, it's not an extension bug per se, but rather a problem with your configuration. You have set (at least)
$wgUserStatsTrackWeekly
totrue
without creating the necessary database table(s); the schemas for user_points_weekly, user_points_monthly and user_points_archive are located in Extension:RandomFeaturedUser's directory on SVN (yes, SVN, as opposed to git). - Create those tables by running something line this (for each different file) from command line:
php path/to/your/wiki/maintenance/sql.php path/to/your/wiki/extensions/RandomFeaturedUser/user_points_weekly.sql
Jack Phoenix (Contact) 19:52, 28 June 2012 (UTC)
Listing new blogs and blogs from users
Is there a function that can be called on other pages, like Community Portal or the Main_Page that could show posts from a specific user's blog or the latest blog posts across the wiki? I did not see such a function listed here. Crazy Jake88 (talk) 03:02, 27 August 2012 (UTC)
- I am looking for something too. You could use Dynamic Page List. I created a new Blog Page and added that to it. Just looking for a way to suppress the other Blog formatting on the page. Jaime D. Lemley 15:32, 7 August 2013 (UTC)
Still active here?
Since this extension is the most up-to-date one for doing weblogs on a wiki, I'm planning to use it, but I also wanted to see how much maintenance I'm going to need to do.
Will I have to support this myself? I probably can, but I just want to know. ☠MarkAHershberger☢(talk)☣ 00:31, 26 January 2013 (UTC)
- The short answer: probably.
- The long answer: it depends on many factors. Truth be told, there are many other things than MediaWiki in my life right now and as such, MW and extension bugs are everything but #1 priority on my to-do list. Not to mention that there are two perfectly valid reasons not to contribute to MediaWiki — git, and more importantly, gerrit. MediaWiki evolves (too!) rapdily, as always, which may or may not cause issues when running this extension against the latest stable or development trunk. Use at your own risk; no warranty of any kind is provided.
- I most likely will try to take a look at any and all bugs reported on Bugzilla, but I cannot promise that "this bug will be fixed within X days".
- Do note that BlogPage is not a stand-alone extension; instead, it requires Comments, SocialProfile and VoteNY, as noted on the extension page. So it may or may not be appropriate for whatever purpose you want to use it. Jack Phoenix (Contact) 14:11, 27 January 2013 (UTC)
- Thanks. I totally understand that MW is not your whole life ;)
- That said, I do like how this extension works with SocialProfile and SMW. I've installed it for now and I'm waiting to hear back if it does what is needed. ☠MarkAHershberger☢(talk)☣ 01:04, 28 January 2013 (UTC)
Change Threshold for "Popular"
We have an internal wiki used by about 30 people, tops. Special:ArticlesHome doesn't show articles as popular because, for the most part, very few votes are ever received for a given post. I would like to lower the threshold, if possible, to something like "3" so that that big, empty space on Special:ArticlesHome doesn't stay empty. :) Wulfcempa (talk) 21:10, 16 December 2013 (UTC)
- I played around in the code... everywhere that I found:
"((SELECT COUNT(*) FROM $voteTable WHERE vote_page_id = page_id) >= 5 OR (SELECT COUNT(*) FROM $commentsTable WHERE Comment_Page_ID = page_id) >= 5)",
- ... I lowered the numbers. Didn't seem to help. Finally, in SpecialArticlesHome.php, I changed:
if( !$type ) { $type = 'popular'; }
- ...to:
if( !$type ) { $type = 'new'; }
- That caused the main section of the Special:ArticlesHome page to have new posts, and that works for my purposes. Wulfcempa (talk) 17:39, 17 December 2013 (UTC)
Error: 'mw_user_points_weekly' doesn't exist
I am running version 1.22.5. The installation went well and all tables were created. I confirmed that the table user_points_weekly exists. However when I create a Blog Post, I get the error below.
Query: SELECT up_user_id FROM `mw_user_points_weekly` WHERE (up_user_id = 1) Function: UserStatsTrack::updateWeeklyPoints Error: 1146 Table 'database.mw_user_points_weekly' doesn't exist (localhost)
For some reason it is appending mw_ in front of the table name. I am fairly new to mediawiki and I am unable to figure out why it is doing that. Any help is appreciated. Nimkar (talk) 14:08, 17 April 2014 (UTC)
- NM, I figured it out. I had problems running the web updated so I had run the sql scripts manually which created the tables without the DB prefix. I then deleted the tables and logged in via the shell and ran the command line updated which recreated the tables however it still failed to create the tables for the weekly, monthly and archive stats. I had to edit the SQL and create them manually after which everything is working fine. I think this may be a bug with SocialProfile. I will go inform those guys. Nimkar (talk) 18:09, 17 April 2014 (UTC)
Special:ArticleLists Fatal Error
It appears that while removing the global $wgOut, the $output variable was put into place to hold the wgOut object. However, that $output variable is also being used to build the page within the code. This is causing the following:
Fatal error: Call to a member function addHTML() on a non-object in /.../extensions/BlogPage/SpecialArticleLists.php on line 131 Jlemley (talk) 03:37, 20 September 2014 (UTC)
- Thanks for the bug report, I've fixed this in gerrit:161658. Jack Phoenix (Contact) 13:20, 20 September 2014 (UTC)
Extension not showing up in Version
I have installed BlogPage extension and changed Localsettings.php accordingly but the Version page doesn't show the extension name. Somebody please help me. 208.116.10.33 05:18, 4 November 2014 (UTC)
- Same problem :( 88.81.114.71 16:56, 20 November 2014 (UTC)
- The path to the extension is wrong it should not be
require_once "$IP/extensions/BlogPage/BlogPage.php";
- but
require_once "$IP/extensions/BlogPage/Blog.php";
84.28.247.185 20:56, 28 November 2014 (UTC)
how to change simple editor to rich editor in textarea
how to change simple editor to rich editor in textarea 58.244.94.51 08:05, 27 December 2014 (UTC)
- What do you mean by "rich editor"? VisualEditor? WikiEditor? Something else? Anyway, there's currently no built-in support for such a thing in any case, and as always, patches are welcome. Jack Phoenix (Contact) 21:09, 17 April 2015 (UTC)
Malformed "by" line
I'mm getting a malformed "by" line it looks like it should be
[[Authorname]] [[Category:Date Published]]
oddly when rendered I'm seeing
Authorname]][[Category:6th January 2015
Anyone else seeing this?
Wiki version 1.24.1 220.233.17.248 07:23, 6 February 2015 (UTC)
- sigh edit wont work
- used the wrong tags on line2
- Dariomarcelino (talk) 09:17, 29 December 2016 (UTC)
[[Authorname]][[category:Date Published]]</pre> [[Special:Contributions/220.233.17.248|220.233.17.248]] 07:29, 6 February 2015 (UTC) :I'm getting this too. :Is there a fix please? :Thanks [[User:Colin2030|Colin2030]] ([[User talk:Colin2030|talk]]) 13:51, 24 February 2015 (UTC) ::I have this problem and know how to also solve it. It probably has something to do with the BlogPage.php file, but what needs to be done there. ::Do you know that? Would be very grateful for any help. [[Special:Contributions/2A02:8108:2700:1E14:C090:8DE8:98DF:A89|2A02:8108:2700:1E14:C090:8DE8:98DF:A89]] 03:29, 28 February 2015 (UTC) :I'm getting this too. Usually fix it by editing the categories and putting the date on the line below. I would like that to be automatic tho. [[Special:Contributions/158.222.249.207|158.222.249.207]] 19:16, 12 March 2015 (UTC) ::Are you running the latest version of BlogPage? I fixed a bug which sounds awfully lot like this one [[gerrit:180025|last December]]. [[User:Jack Phoenix|Jack Phoenix]] <sub>([[User talk:Jack Phoenix|Contact]])</sub> 21:06, 17 April 2015 (UTC) :::<nowiki>Took some months but I finally realized that I have to go there and apply the little change that you made. Good work it was easy. Please keep updating and adding functionality. I wish I could assist. ~</nowiki> [[User:Vapblack|Vapblack]] ([[User talk:Vapblack|talk]]) 01:44, 1 December 2015 (UTC) ::Yes, unless 2.2 isn't the latest. [[User:Vapblack|Vapblack]] ([[User talk:Vapblack|talk]]) 21:51, 30 July 2015 (UTC) == Captcha to Comments of the BlogPage-Articles == Hello MediaWiki friends I have a question for the blog Page extension. I installed it and have seen that guests are allowed to comment specifically as anonymous. I fear that there will be a lot of spam because you have no Captcha in the comments. How can we Captcha used or how can I deactivate comment for guests? Can I perhaps someone help? Thank you in advance. [[Special:Contributions/2A02:8108:2700:1E14:C090:8DE8:98DF:A89|2A02:8108:2700:1E14:C090:8DE8:98DF:A89]] 03:25, 28 February 2015 (UTC) :This would be more appropriate in [[Extension talk:Comments]], or better yet, as a properly filed report in [[Phabricator]], but anyway: yes, you're right, there is currently no support for [[Extension:ConfirmEdit]] in the Comments extension, and there probably should be! I might look into it, but there's no definitive ETA or anything. [[User:Jack Phoenix|Jack Phoenix]] <sub>([[User talk:Jack Phoenix|Contact]])</sub> 21:08, 17 April 2015 (UTC) == Database error == I've installed the extension und everything went well. But after writing a blog post I only get a "white" site. If I click on the blog homepage there's the following error code: "A database query error has occurred. This may indicate a bug in the software." What could be wrong? [[Special:Contributions/80.87.117.62|80.87.117.62]] 12:51, 21 May 2015 (UTC) :Please enable additional debugging information as described in [[Manual:How to debug]] and post the results here. A so-called "white screen of death" means that there was a (fatal) PHP error somewhere, but this usually isn't displayed to the end-user, but rather logged into the server's PHP error log (if error logging is enabled); I need to know what the precise error message was in order to be able to help you out. [[User:Jack Phoenix|Jack Phoenix]] <sub>([[User talk:Jack Phoenix|Contact]])</sub> 15:57, 24 May 2015 (UTC) == Error 1054 == 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: <samp>1054 Unknown column 'Comment_Plus_Count' in 'field list'</samp> 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? [[User:Krayfishkarl|Krayfishkarl]] ([[User talk:Krayfishkarl|talk]]) 22:14, 18 March 2016 (UTC) :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? [[User:PatHube|PatHube]] ([[User talk:PatHube|talk]]) 14:53, 13 May 2016 (UTC) :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! :<code> 'comments_of_day' => false,</code> [[User:PatHube|PatHube]] ([[User talk:PatHube|talk]]) 15:50, 13 May 2016 (UTC) :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: :<syntaxhighlight lang='text'>extensions/BlogPage/extension.json:36: "comments_of_day": false,
- 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";
193.105.251.4 (talk) 11:01, 14 March 2017 (UTC)
error
creation etc all are ok, but opening any blog posts shows the below error.
A database query error has occurred. This may indicate a bug in the software.
Notice: Uncommitted DB writes (transaction from DatabaseBase::query (WikiPage::pageData)). in .......\includes\db\Database.php on line 4262
Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) EnqueueJob never inserted. in ..........\includes\jobqueue\JobQueueGroup.php on line 420
Please provide some assistance 115.42.188.18 (talk) 02:59, 8 April 2016 (UTC)
Database error - JobQueueGroup::__destruct
RESOLVED | |
Followed instructions below about changing line 96 in /extensions/BlogPage/Blog.php to false
'comments_of_day' => false, |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
On attempting to view the blog posts, one gets:
A database query error has occurred. This may indicate a bug in the software. Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) EnqueueJob never inserted. in /home/pindula/public_html/includes/jobqueue/JobQueueGroup.php on line 420
I enabled SQL debugging and now I get:
A database query error has occurred. This may indicate a bug in the software. Query: SELECT Comment_Username,comment_ip,comment_text,comment_date,Comment_user_id,CommentID,IFNULL(Comment_Plus_Count - Comment_Minus_Count,0) AS Comment_Score,Comment_Plus_Count AS CommentVotePlus,Comment_Minus_Count AS CommentVoteMinus,Comment_Parent_ID,page_title,page_namespace FROM `Comments`,`page` WHERE (comment_page_id = page_id) AND (UNIX_TIMESTAMP(comment_date) > 1463817075) AND page_namespace = '500' ORDER BY Comment_Plus_Count DESC LIMIT 5 Function: BlogPage::getCommentsOfTheDay Error: 1054 Unknown column 'Comment_Plus_Count' in 'field list' (localhost) Notice: Uncommitted DB writes (transaction from DatabaseBase::query (WikiPage::pageData)). in /home/pindula/public_html/includes/db/Database.php on line 4262 Notice: JobQueueGroup::__destruct: 1 buffered job(s) of type(s) EnqueueJob never inserted. in /home/pindula/public_html/includes/jobqueue/JobQueueGroup.php on line 420
Please help Onesimok (talk) 08:03, 22 May 2016 (UTC)
"Cannot use object of type Comment as array"
Hello, I'm testing the BlogPage extension with Mediawiki 1.29.0, PHP 5.5.14 and Comments 4.2.1.
Everytime I save a new article I get this fatal error:
[Fri Aug 25 10:19:23.682888 2017] [php5:error] [pid 60677] [client xxx.xxx.xxx.xxx:34360] PHP Fatal error: Cannot use object of type Comment as array in /usr/local/mediawiki/testwiki/extensions/BlogPage/BlogPageClass.php on line 931, referer: http://xxx.xxx.xxx.xxx/index.php/Speciale:ArticlesHome
The article seems to be saved anyway but when I try to open it I get the same error.
Is my PHP version too old? C veronesi horta (talk) 08:47, 25 August 2017 (UTC)
- I fixed the problem by applying the solution indicated in the post below, i.e. disabling comments of the day. C veronesi horta (talk) 13:31, 25 August 2017 (UTC)
- how? 223.101.0.110 (talk) 14:47, 28 October 2017 (UTC)
mediawiki 1.34 commenting
HI,
it seems as though commenting is broken on the blog posts. nothing is happening when user clicks the button to post the comment. AlgorithmGG (talk) 02:41, 5 January 2020 (UTC)
- The commenting functionality is provided by Extension:Comments. Regardless, the social tools are currently undergoing pretty major architectural changes to support the new
actor
table and the general concept of actors. See phab:T227345 for more technical details. - The issue you're describing sounds like a JavaScript error of some kind. I haven't seen any such JS errors in my devboxes. Is your wiki public so I could take a look at it?
- Regardless, I suggest checking back by, say, the end of January or so; I hope the actor migration stuff has been mostly done by that point. (But if you'll look at the mentioned Phabricator ticket, you'll see that Comments and SocialProfile are some of the trickiest extensions to port over. Regardless, using actor IDs instead of traditional user ID/user name combos provides benefits like eventually being able to support user renaming on ShoutWiki, hence why that is being done now.) At that point all the social tools should support actors and work on MediaWiki 1.34 as expected. Jack Phoenix (Contact) 09:50, 5 January 2020 (UTC)
- Hi Jack,
- my wiki is here https://www.G1pedia.com having the same issue with the post comment button on mobile also. when using Extension:Comments
- Kind Regards AlgorithmGG (talk) 06:19, 7 January 2020 (UTC)
- Excuse my wiki its a mess at the moment as I am trying to figure out how to add a top ten language circle. AlgorithmGG (talk) 06:23, 7 January 2020 (UTC)
- No worries. So, looking at https://g1pedia.com/index.php/Special:Version, seems that you have the MobileFrontend extension (and its companion, the MinervaNeue skin) installed; it's a popular solution for providing a mobile experience of sorts, and was developed and is also maintained by the Wikimedia Foundation. While both the MobileFrontend extension and the MinervaNeue skin are thus quite stable, they do some things which at least I consider odd. Namely that extensions' CSS and JS ResourceLoader modules aren't loaded unless they are explicitly marked as "OK for mobile", i.e. the module definition has a
targets
array which specifiesmobile
(and optionally alsodesktop
) as a valid target. Comments' both RL modules do specify both targets (in theextension.json
file), so I'm not sure what's going on there. - BlogPage's RL modules don't specify targets, which probably in practise means with that the MobileFrontend view (which you can activate by appending
?mobileaction=toggle_view_mobile
to the page URL) BlogPage's special pages look funky and don't quite work right as the CSS and JS isn't loaded. Commenting shouldn't be affected as BlogPage literally uses Comments for that instead of doing anything related to commenting on its own. - That being said, I can safely say that I've really not tested the MobileFrontend+MinervaNeue+social tools combo, so in that respect, all bets are off. Furthermore as none of the social tools are used on Wikimedia Foundation wikis, it means that WMF developers most likely haven't tested the combination either.
- Seeing that you have the awesome, responsive, actively developed Timeless skin already installed, I'd consider whether you have a pressing need for MobileFrontend and MinervaNeue and the features they provide. If you choose to uninstall those two and set Timeless as the default skin, it should provide a similar-ish mobile experience without the usual MobileFrontend-specific content transformations and the like.
- You can also try contacting the maintainers of MobileFrontend and MinervaNeue, Wikimedia Foundation's Reading Web team and specifically Jon Robson, to see what they have to say about this.
- To clarify my stance on this: this certainly sounds like a software bug of sorts and something that'd be nice to get fixed. But I can't promise an ETA of any kind on a fix, as I don't quite fully understand what's going on here (code-wise) nor do I have time to work on this right now; the aforementioned actor migration stuff is honestly a nightmare and a time-consuming one, so I fully expect that to keep me busy at least for the next couple weeks or so. Jack Phoenix (Contact) 15:24, 7 January 2020 (UTC)
- Many thanks for your reply. Do we know what framework is used to make it mobile friendly for example (bootstrap)? its not bootstrap but it would be handy to know what language the button is written in as to why its not translated and functioning on mobile view. I am not sure if you have seen how its working but other than the post buttons not being translated. It is ready to work and looks awesome. AlgorithmGG (talk) 16:47, 7 January 2020 (UTC)
- Use MobileFrontend if you want to serve different experiences to mobile and desktop users and optimise the experience.
- Using MobileFrontend you'll have a more performant, controllable and in some cases more usable mobile experience.
- The downside is many extensions are not compatible with MobileFrontend. The targets system was written intentionally to avoid the running of code that hadn't been integrated with the extension. This avoids loading code that's not needed in the given context or hasn't been tested in the existing device.
- ResourceLoader/Writing a MobileFrontend friendly ResourceLoader module is pretty thorough on the why and the how extension owners can integrate with MobileFrontend.
- In this case it's not a Wikimedia extension so you could probably turn on all the modules it uses with a mobile target but I cant promise the experience will be completely usable.
- Note Minerva has nothing to do with this. It's just a skin like Monobook, Timeless and Vector. Jdlrobson (talk) 16:30, 7 January 2020 (UTC)
- thanks I've noticed a few issues with social tools I.e sending messages board to board the send button is broken. It looked like a php html issue to me this function was only broken on the mobile app. Is it possible to add flow to the user board namespace at present? Exciting stuff!
- Kind Regards AlgorithmGG (talk) 10:03, 5 January 2020 (UTC)
- There's no such support for integrating with Flow, alas. The closest related ticket on Phabricator is phab:T167312 which is about integrating SocialProfile avatars with Flow; feel free to submit a new task on Phabricator! (That being said, full disclaimer: I don't know how likely it'd be for such a ticket to get fixed at least in a reasonable timeframe. As per its own infopage here, Flow's been in maintenance mode since 2015 and I haven't looked at how complicated it would be to have user boards or other similar textareas use Flow. At least Comments is finally getting a preview feature; long overdue, but better late than never.) Jack Phoenix (Contact) 15:32, 7 January 2020 (UTC)
- Do you know of any information, I can study you would recommend please. I have a long flight coming up soon this month. And I would like to get a thorough understanding of how the scripts and extensions are working together.
AlgorithmGG (talk) 16:59, 7 January 2020 (UTC)
Error creating Blog posts (not sure if this should go in social) [1.34]
Greetings.
So I've recently upgraded my mediawiki and have been overhauling a lof of the backend.
When trying to get the social extentions up again everything looks good until I do one of two things
1: if I load the extensions that I use-
wfLoadExtension( 'BlogPage' );
wfLoadExtension( 'Comments' );
wfLoadExtension( 'VoteNY' );
and I try to look at any of the blogs I previously made I get the following error:
Database error (page title)
A database query error has occurred. This may indicate a bug in the software.
[f655cda325d32fdaad3b57a0] /afropedia/Blog:Life_on_The_Open-Air_Plantation_Aint_Equal Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/worldafropedia/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT Comment_Username,Comment_IP,Comment_Text,Comment_Date,Comment_Date AS timestamp,Comment_user_id,CommentID,Comment_Parent_ID,vote1.Comment_Vote_Score AS current_vote,SUM(vote2.Comment_Vote_Score) AS comment_score,stats_total_points FROM `user_stats` LEFT JOIN `Comments` ON ((Comment_user_id = stats_user_id)) LEFT JOIN `Comments_Vote` `vote1` ON ((vote1.Comment_Vote_ID = CommentID) AND vote1.Comment_Vote_Username = 'Kofi') LEFT JOIN `Comments_Vote` `vote2` ON ((vote2.Comment_Vote_ID = CommentID)) WHERE Comment_Page_ID = '19004' GROUP BY CommentID
Function: CommentsPage::getComments
Error: 1054 Unknown column 'stats_user_id' in 'on clause' (localhost)
If I try to make a new blog post I get:
[013afee92b964d8e9669368f] /afropedia/Special:CreateBlogPost TypeError from line 142 of /var/www/worldafropedia/wiki/includes/page/WikiPage.php: Argument 1 passed to WikiPage::factory() must be an instance of Title, null given, called in /var/www/worldafropedia/wiki/extensions/BlogPage/includes/specials/SpecialCreateBlogPost.php on line 105
Backtrace:
2: if I disable everything except BlogPage:
and I try to look at any of the blogs I previously made, I the load.
If I try to make a new blog post I get:
[ba6d8b074deed09cf90d9a9a] /afropedia/Special:CreateBlogPost TypeError from line 142 of /var/www/worldafropedia/wiki/includes/page/WikiPage.php: Argument 1 passed to WikiPage::factory() must be an instance of Title, null given, called in /var/www/worldafropedia/wiki/extensions/BlogPage/includes/specials/SpecialCreateBlogPost.php on line 105
Vapblack (talk) 01:45, 1 February 2020 (UTC)
- This is related to the recent changes related to actor support in all social tools. The correct solution here is to upgrade your copy of SocialProfile (and/or any and all other social tools you have, e.g. BlogPage, Comments, VoteNY), to the latest (master) version and rerun
maintenance/update.php
, the MediaWiki core updater script, after doing that. Note that:- you may want to make a backup of your database prior to doing this, just in case, for there are some scary internal changes
- currently social tools support only MediaWiki 1.34; older versions of MW are considered unsupported and newer ones may or may not work (but it doesn't matter because MW 1.35 hasn't been released yet) Jack Phoenix (Contact) 11:16, 1 February 2020 (UTC)
- Thanks for your reply. I uploaded the new extensions and ran the maintenance/update.php and the same errors are there.
- I can only *see* old blog posts if I disable every social extension but BlogPage, and I can't post a new blog entry under any circumstances.
- ___________________________________
- EDIT: Actually, I realized I didn't download the master files, so I just did that, reuploaded, ran php update.php and got the following:
- ...user_system_messages table already exists.
- ...user_points_weekly table already exists.
- ...user_points_monthly table already exists.
- ...user_points_archive table already exists.
- ...user_stats table does not contain stats_year_id field.
- ...user_profile table does not contain up_last_seen field.
- ...Comments table already exists.
- ...Comments_Vote table already exists.
- ...Comments_block table already exists.
- Adding Comment_actor field to table Comments ...done.
- Adding index wiki_actor to table Comments ...done.
- Running /var/www/worldafropedia/wiki/extensions/Comments/includes/../sql/../maintenance/migrateOldCommentsUserColumnsToActor.php...
- done.
- Table Comments contains Comment_user_id field. Dropping ...done.
- Table Comments contains Comment_Username field. Dropping ...done.
- ...wiki_user_id key doesn't exist.
- ...wiki_user_name key doesn't exist.
- Adding cb_actor field to table Comments_block ...done.
- Adding cb_actor_blocked field to table Comments_block ...done.
- Adding index cb_actor to table Comments_block ...done.
- Running /var/www/worldafropedia/wiki/extensions/Comments/includes/../sql/../maintenance/migrateOldCommentsBlockUserColumnsToActor.php...
- done.
- Table Comments_block contains cb_user_id field. Dropping ...done.
- Table Comments_block contains cb_user_name field. Dropping ...done.
- Table Comments_block contains cb_user_id_blocked field. Dropping ...done.
- Table Comments_block contains cb_user_name_blocked field. Dropping ...done.
- ...cb_user_id key doesn't exist.
- Adding Comment_Vote_actor field to table Comments_Vote ...done.
- Adding index Comments_Vote_actor_index to table Comments_Vote ...Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/worldafropedia/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Query: CREATE UNIQUE INDEX Comments_Vote_actor_index ON `Comments_Vote` (Comment_Vote_ID,Comment_Vote_actor)
- Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/worldafropedia/wiki/extensions/Comments/includes/../sql/patches/actor/add-Comment_Vote_unique_actor_index.sql )
- Error: 1062 Duplicate entry '1-0' for key 'Comments_Vote_actor_index' (localhost)
- after disabling comments, I ran the updater again and there were no errors.
- Still same same inability to create new blog posts though
- EDIT2:
- After deleting the extensions and downloading the master versions and installing them again, everything worked save for creating a new blog entry. The error involved VOTENY, so I downloaded the 1.34 stable version (1a78517 of the VoteNY extension for MediaWiki REL1_34 )
- After that, almost everything is good.
- One small problem though, my old blog entries dont say who created them.
- at the top, they simply say
- by
- created 14:50, March 2, 2019 , last edited 21:54, March 2, 2019
- whereas the new blog post I just made say:
- by Vapblack
- created 16:05, February 1, 2020
- thanks for the help Vapblack (talk) 12:32, 1 February 2020 (UTC)
- Well, using the release branches (instead of master) of the social tools extensions is simply not supported, so you're on your own in that regard, I'm afraid. The existence of those branches is problematic because they are created automatically by the people handling MediaWiki releases, but I don't maintain them, so they are guaranteed to be outdated literally 100% of the time, so it's pure luck if they work or not.
- Anyway, back to the original issue...
- Seems like you've managed to find a tricky and annoying bug with the actor migration scripts: the Comments' migration scripts (and same for other social tools extensions, I'm afraid) don't handle a particular edge case at all. In this case, the edge case is "(anonymous) user has posted a comment (or comments) but has not performed any other actions on the wiki". The migration scripts incorrectly assume that there is a corresponding entry for every user in the
actor
table; but in this edge case, this isn't necessarily the case. The scripts should be able to identify these cases and create actor entries when those entries don't yet exist, but currently that is unfortunately not the case. I can't promise you a definitive ETA, but I'm hoping to get this fixed during March 2020 if not sooner. Jack Phoenix (Contact) 15:45, 16 February 2020 (UTC)
link out of order
the example on page http://social-tools.wmflabs.org/ is out of order Geryescalier (talk) 03:59, 18 May 2020 (UTC)
- Yes, this is known. I should bring that back up and update the site, but it's not a high-priority task. (If you'd like to help with this or know someone who would, please file a ticket on Phabricator!) Jack Phoenix (Contact) 10:23, 22 May 2020 (UTC)
when translating into another language does not correctly generate information
This is the line that I could not correctly generate when translating into another language
To call the API, use <tvar|action><code>action=''blogpage''</code></>, along with appending the parameters.
I do not know, if I have put the data wrong when translating (into Spanish) or any option is missing in the original language, thank you.
Geryescalier (talk) 04:19, 18 May 2020 (UTC)
- The BlogPage API module was deleted in March 2020 as it had been obsoleted by a core MediaWiki API. Jack Phoenix (Contact) 10:22, 22 May 2020 (UTC)
Blog links on the right of blogposts aren't organized well
Mostly a cosmetic thing, but the blogpage would look a lot better of the links were formatted correctly
- different sizes of the same page
Vapblack (talk) 20:29, 16 September 2020 (UTC)
- This is a known & tracked issue (see phabricator:T153522) but nobody's actively working on it. (Patches welcome!)
- The underlying issue here is that on the wiki where these tools were developed (ArmchairGM) over a decade ago, they were geared to work with the site's default/recommended skin and thus any and all other skins were simply not tested and were not a concern to the developers, as users were simply assumed to use the default skin. That skin is no more, and nobody has really revamped the BlogPage layout to better support modern skins like MonoBook or Timeless. Jack Phoenix (Contact) 09:54, 24 September 2020 (UTC)
Comments extension isn't working with MW1.34+ so I'm guessing the blogpage won't work either.
The comments extension doesn't create the table Comments. IlseMul (talk) 16:25, 9 August 2021 (UTC)