Extension talk:MediaWikiChat

Jump to navigation Jump to search

About this board

Users with no chat privileges shouldn't be able to read its log

Wedhro (talkcontribs)

I thought the chat room could be kept private just by giving only some users the related right, but apparently any user can read conversations just by going to the chat log page. Shouldn't that page be accessible only to users with char rights? Otherwise I don't really see what's the point.

Reply to "Users with no chat privileges shouldn't be able to read its log"
Silkwood (talkcontribs)

In which directory should I save the smiley icons and avatars?

GeorgeBarnick (talkcontribs)

You can upload smileys to the wiki and then on your MediaWiki:Smileys page just reference the wiki file name.

Silkwood (talkcontribs)

Thanks so much George.

Reply to "Smileys"

issue azure web app install

1 (talkcontribs)

/mw-config/index.php?page=Install DBQueryError from line 1054 of D:\home\site\wwwroot\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 * FROM `incinterwiki` LIMIT 1

Function: DatabaseInstaller::populateInterwikiTable

Error: 1146 Table '' doesn't exist

Reply to "issue azure web app install"

MediaWikiChat loads assets with http from external source

Summary by TheROFL98

MediaWiki:chat-mod-image needed to be specified.

TheROFL98 (talkcontribs)
UltrasonicNXT (talkcontribs)

If you change MediaWiki:chat-mod-image to a different URL for the icon that denotes a user being a chatmod, that should solve it

TheROFL98 (talkcontribs)

That fixed it! Thanks!

Database error: Cannot request IP block excemption

妍太金 (talkcontribs)

Some of the IP address I used for edit is blocked so I use the unblock ticket request system to request for IP block excemption. But a database error occured when I try to submit my request. Why will be that (What's the problem) and how I should do?

Reply to "Database error: Cannot request IP block excemption"

How is the sidebar module activated?

Wedhro (talkcontribs)

"Skins that support the sidebar interface message ('MediaWiki:Sidebar`) will show a sidebar module of all the users currently on chat." - On my wiki I use Vector and there's a sidebar, but no chat module shows up; I even tried deleting my customized sidebar so that everything is default, but nothing.

Should I add it manually, and how? (talkcontribs)
Wedhro (talkcontribs)


Reply to "How is the sidebar module activated?" (talkcontribs)

How hard would it be to work something like http://dev.wikia.com/wiki/EmoticonsWindow into MediaWikiChat? Probably behind a parameter or as just something one can add to a JS page like Common.js or Vector.js

I don't currently know any JS but if it isn't to hard to implement it I'd be be willing to try. I was thinking version 1.2 would be the best starting point since it's the last version that doesn't use Wikia's method of parsing emoticons.

Reply to "Emoticon Window"

[RESOLVED] Blocked users implies ban

Krusher (talkcontribs)

It's just matter to add somethin like && !$user->isBlocked() to if ( $user->isAllowed( 'chat' ) ) conditions on Send and SendPM API classes. Maybe there should be a config var to control this.

UltrasonicNXT (talkcontribs)

Good shout, I guess blocked users should never be able to chat.

UltrasonicNXT (talkcontribs)


GeorgeBarnick (talkcontribs)

I thought we already implemented this before since I know I've put in a ticket about it in the past.

[RESOLVED] Uncaught TypeError: Cannot read property 'users' of undefined

Donkey Kong Genius (talkcontribs)

This may not be a new issue but may be related to the cu_away_new.sql comments.

I installed correctly, putting the extension folder in with the extensions and added the following to my LocalSettings.php:

require_once "$IP/extensions/MediaWikiChat/MediaWikiChat.php"; $wgChatKicks = true; $wgChatSocialAvatars = true; $wgChatRichMessages = true; $wgChatUseStyleAttribute = true; $wgChatSidebarPortlet = true; $wgChatLinkUsernames = false; $wgChatMeCommand = false; $wgChatMaxMessageLength = 1000;

When you visit Special:chat you will see that it does not show any users or my text.

In Chrome, in the console I see this:

Uncaught TypeError: Cannot read property 'users' of undefined.

My cu_away_new.sql file reads:

ALTER TABLE /*_*/chat_users MODIFY cu_away binary(12)

It appears that a javascript is running and that it is unable to identity the property 'users' so it just errors over and over as the script runs.

Are there any extensions I should have that are needed for this to work or is there a way to start over and install it correctly? I started off with the update.php but there was an error associated with the cu_away_new.sql. I changed this file to incorporate the new text and then ran it again and the error during update.php did not occur this time but the results were the same.

Donkey Kong Genius (talkcontribs)

I changed $wgChatSocialAvatars = false; and this allowed it to recognize me and show the text in the chat display. Is this because I do not have the SocialProfile extension?

Donkey Kong Genius (talkcontribs)

Once I installed the SocialProfile extension, changed $wgChatSocialAvatars = true, then it all works as normal.

I suggest that instead of stating "Enabled by default" for this item that it is disabled by default since it only works if the SocialProfile extension is installed, otherwise the chat display does not work.

UltrasonicNXT (talkcontribs)

I've made this more clear in the docs, but instead of disabling it by default, I'm going to try and get the software to detect whether SocialProfile is installed, and do it automatically with no config var.

UltrasonicNXT (talkcontribs)

Ok, I've done this so there's no config variable and it'll be done automatically.

[RESOLVED] Database Error: A database query error has occurred. This may indicate a bug in the software.

Solanki (talkcontribs)

Using Apache 2.4, PHP 5.4 and MW v1.23 and PostgreSQL 9.2 as DB. Converted the MySql queries to PostgreSQL and executed it successfully. But,getting "Database Error: A database query error has occurred. This may indicate a bug in the software." on the MW page and following warning on top of it. "Warning: Invalid argument supplied for foreach() in /path/to/MW/folder/extension/MeadiaWikiChatClass.php on line 95".

Please suggest, what might help resolve this issue.

UltrasonicNXT (talkcontribs)

Hmm, are you 100% percent sure your tables are set up correctly? I would just go through and check you have each of the columns of each table there. Apart from that, I'm not sure what to suggest, I'll have a think

Solanki (talkcontribs)

Yes, It created 2 tables chat & chat_users containing 5 & 3 columns respectively in the db.

UltrasonicNXT (talkcontribs)

Hmm, this is odd, because normally after "A database query error has occurred" it tells you what the error was. There are definitely no other error messages?

Kghbln (talkcontribs)

Adding $wgShowSQLErrors = true; to the end of the "LocalSettings.php" file will probably provide more info.

Solanki (talkcontribs)

added $wgShowSQLErrors = true; and this is the error that I am getting. "Notice: pg_send_query(): Cannot set connection to blocking mode in /path/to/MW/folder/includes/db/DatabasePostgres.php" How can I resolve this issue?

Solanki (talkcontribs)

and on the /MediaWiki:common.js page , I am getting this message on the page.

"A database query error has occurred. This may indicate a bug in the software.

Query: SELECT cu_user_id,cu_away FROM "chat_users" WHERE (cu_timestamp > 142062685413) AND (cu_user_id != 1) Function: MediaWikiChat::getOnline Error: 42883 ERROR: operator does not exist: bytea > bigint LINE 1: ...,cu_away FROM "chat_users" WHERE (cu_timestamp > 14206268... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts."

UltrasonicNXT (talkcontribs)

Ok, can you confirm the data type of the cu_timestamp column? It should be bigint.

Solanki (talkcontribs)

It was bytea, as was converted by the converter, changed it to bigint and it worked. But, when I tried logging in to the wiki from other user(from different machine), it gave the following error: Fatal error: Class 'wAvatar' not found in /path/to/MW/folder/extensions/MediaWikiChat/MediaWikiChatClass.php on line 37.

Solanki (talkcontribs)

Disabled the ChatSocialAvatars. That fixed it. But, now the display is gone. Getting the following error in javascript console. TypeError: data is undefined

...e.chatgetnew;var onlineUsers=[];for(var userId in data.users){var user=data.user...

UltrasonicNXT (talkcontribs)

Hmm, probably worth running the latest version of the code, as ChatSocialAvatars has been removed to fix that first problem.

Ok, navigate to /api.php?action=chatgetnew&format=json and what error message do you see there?

Solanki (talkcontribs)

This is what I am getting... {"chatgetnew":{"error":"blockedfromchat"}}

UltrasonicNXT (talkcontribs)

Okay, that error means your user does not have the permission to chat. (The 'chat' permission). Perhaps setting that (using wgGroupPermissions) might fix the problem?

Solanki (talkcontribs)

hey! I gave the parameter "$wgGroupPermissions = true;"

but, now what I am getting is

"error":{"code":"readapidenied","info":"You need read permission to use this module"

I don't know what read permission is it referring to as I have already given following permissions in my LocalSettings.php

$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['sysop']['read'] = true;
UltrasonicNXT (talkcontribs)

Sorry for the confusion, I mean $wgGroupPermissions['user']['chat'] = true;

Alot163 (talkcontribs)

Look at this...who can help me..

  • Query:
    SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+\"u8e5a4a7 u8e8b59b\" ' IN BOOLEAN MODE) ) AND page_namespace = '0' LIMIT 20
  • Function: SearchMySQL::searchInternal
  • Error: 1214 The used table type doesn't support FULLTEXT indexes