Extension talk:MediaWikiChat

About this board (talkcontribs)

this is the error in console VM5118:87 Uncaught TypeError: Cannot read property 'users' of undefined

    at Object.getNewReply (<anonymous>:87:375)

    at Object.<anonymous> (<anonymous>:103:820)

    at fire (load.php?lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=mzne3:46)

    at Object.fireWith [as resolveWith] (load.php?lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=mzne3:47)

    at done (load.php?lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=mzne3:129)

    at XMLHttpRequest.<anonymous> (load.php?lang=en&modules=jquery%2Coojs-ui-core&skin=vector&version=mzne3:132) (talkcontribs)

i installed social profile nothing happened (talkcontribs)

the request shows this error:

  1. error: {code: "internal_api_error_Error", info: "[deea7f474987003fef845223] Caught exception of type Error",…}
    1. code: "internal_api_error_Error"
    2. errorclass: "Error"
    3. info: "[deea7f474987003fef845223] Caught exception of type Error" (talkcontribs)

switched to master version, it's fixed.

2600:4040:4002:9E00:0:0:0:1AE4 (talkcontribs)

Yes this happened to me too

Reply to "can't send messages in chat"

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.

Return to "MediaWikiChat" page.