Open main menu

Extension talk:Echo

About this board

Notifications for anonymous users

3
181.55.114.245 (talkcontribs)

Is there any way to allow anonymous users to receive notifications?

Quiddity (WMF) (talkcontribs)

Not currently. The main complexity is that IP addresses can often be shared by many people (e.g. school networks, and sometimes entire countries!) and there is no way to guarantee that the intended person will see the notification. The task that is tracking progress towards a potential solution is phab:T58828, but moving slowly as epic tasks tend to do. HTH.

181.55.114.245 (talkcontribs)

Ok, I have installed StructuredDiscussions and I've replaced all the user talks by structured discussions. The problem is that anonymous doesn't receive a notification when someone leaves a message in their discussion.


So, is there any chance that users receive notifications of structured discussions? Or how to disable structured discussions only for the user talks of anonymous users?

Reply to "Notifications for anonymous users"

Can this be installed without command line access to manually update schema at all?

4
CayceP (talkcontribs)

I'm on shared hoster, which means I have no command line access to run any php script besides whatever Extension:MainanceShell does (or pretends do be doing) I tried to install the extensions, did run /mw-config/ but it doesn't seem to create the necessary tables via this. If I activate the extension it throws exceptions because the tables are missing (no surprise there):


[89cc3e61a284ed2f4a851274] 2018-06-08 09:48:03: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

MediaWiki internal error.

Original exception: [3ce14ff778f71f0be6b696d4] /wiki/Hauptseite Wikimedia\Rdbms\DBQueryError from line 1149 of /home/webpages/server/user/html/w/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 `w1_echo_event` INNER JOIN `w1_echo_notification` ON ((notification_event=event_id)) INNER JOIN `w1_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '13' AND notification_read_timestamp IS NULL AND etp_page = '1' Function: EchoEventMapper::fetchUnreadByUserAndPage Error: 1146 Table 'db_12345_3.w1_echo_event' doesn't exist (mysql.server.de)

Backtrace:

  1. 0 /home/webpages/server/user/html/w/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
  2. 1 /home/webpages/server/user/html/w/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
  3. 2 /home/webpages/server/user/html/w/extensions/Echo/includes/mapper/EventMapper.php(155): Wikimedia\Rdbms\Database->select(array, string, array, string, NULL, array)
  4. 3 /home/webpages/server/user/html/w/extensions/Echo/Hooks.php(883): EchoEventMapper->fetchUnreadByUserAndPage(User, integer)
  5. 4 [internal function]: EchoHooks::onPersonalUrls(array, Title, SkinDarkVector)
  6. 5 /home/webpages/server/user/html/w/includes/Hooks.php(177): call_user_func_array(string, array)
  7. 6 /home/webpages/server/user/html/w/includes/Hooks.php(205): Hooks::callHook(string, string, array, NULL)
  8. 7 /home/webpages/server/user/html/w/includes/skins/SkinTemplate.php(732): Hooks::run(string, array)
  9. 8 /home/webpages/server/user/html/w/includes/skins/SkinTemplate.php(475): SkinTemplate->buildPersonalUrls()
  10. 9 /home/webpages/server/user/html/w/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
  11. 10 /home/webpages/server/user/html/w/includes/OutputPage.php(2442): SkinTemplate->outputPage()
  12. 11 /home/webpages/server/user/html/w/includes/MediaWiki.php(858): OutputPage->output(boolean)
  13. 12 /home/webpages/server/user/html/w/includes/MediaWiki.php(870): MediaWiki->{closure}()
  14. 13 /home/webpages/server/user/html/w/includes/MediaWiki.php(523): MediaWiki->main()
  15. 14 /home/webpages/server/user/html/w/index.php(43): MediaWiki->run()
  16. 15 {main}

Exception caught inside exception handler: [3ce14ff778f71f0be6b696d4] /wiki/Hauptseite Wikimedia\Rdbms\DBQueryError from line 1149 of /home/webpages/server/user/html/w/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 `w1_echo_event` INNER JOIN `w1_echo_notification` ON ((notification_event=event_id)) INNER JOIN `w1_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '13' AND notification_read_timestamp IS NULL AND etp_page = '1' Function: EchoEventMapper::fetchUnreadByUserAndPage Error: 1146 Table 'db_12345_3.w1_echo_event' doesn't exist (mysql.server.de)

Backtrace:

  1. 0 /home/webpages/server/user/html/w/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
  2. 1 /home/webpages/server/user/html/w/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
  3. 2 /home/webpages/server/user/html/w/extensions/Echo/includes/mapper/EventMapper.php(155): Wikimedia\Rdbms\Database->select(array, string, array, string, NULL, array)
  4. 3 /home/webpages/server/user/html/w/extensions/Echo/Hooks.php(883): EchoEventMapper->fetchUnreadByUserAndPage(User, integer)
  5. 4 [internal function]: EchoHooks::onPersonalUrls(array, Title, SkinDarkVector)
  6. 5 /home/webpages/server/user/html/w/includes/Hooks.php(177): call_user_func_array(string, array)
  7. 6 /home/webpages/server/user/html/w/includes/Hooks.php(205): Hooks::callHook(string, string, array, NULL)
  8. 7 /home/webpages/server/user/html/w/includes/skins/SkinTemplate.php(732): Hooks::run(string, array)
  9. 8 /home/webpages/server/user/html/w/includes/skins/SkinTemplate.php(475): SkinTemplate->buildPersonalUrls()
  10. 9 /home/webpages/server/user/html/w/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
  11. 10 /home/webpages/server/user/html/w/includes/OutputPage.php(2442): SkinTemplate->outputPage()
  12. 11 /home/webpages/server/user/html/w/includes/exception/MWExceptionRenderer.php(135): OutputPage->output()
  13. 12 /home/webpages/server/user/html/w/includes/exception/MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
  14. 13 /home/webpages/server/user/html/w/includes/exception/MWExceptionHandler.php(75): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
  15. 14 /home/webpages/server/user/html/w/includes/exception/MWExceptionHandler.php(130): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
  16. 15 /home/webpages/server/user/html/w/includes/MediaWiki.php(550): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
  17. 16 /home/webpages/server/user/html/w/index.php(43): MediaWiki->run()
  18. 17 {main}


So this means I can't use this since it requires to run update.php via command line to update the schema? Or should the tables be created via /mw-config/ as well (as it usual does for other Extension with databases changes) and it's just not working for me? I'm using a custom skin but it didn't work with one from of the bundled ones either.

Software Version
MediaWiki 1.30.0
PHP 5.6.36 (apache2handler)
MySQL 5.6.39-83.1-log
ICU 4.8.1.1
177.184.220.229 (talkcontribs)

I have the same problem.

104.142.125.214 (talkcontribs)

Same issue here also.

104.142.125.214 (talkcontribs)

Another user (S3r3nd1) pointed towards the fix to this for ppl without command line access:

"If you look inside the Echo extension directory, you'll see a nice "echo.sql".

I opened it and saw there were just the queries to create Echo missing tables which are indeed not created with the Update script.

So I went to phpMyAdmin and imported the echo.sql to create the new tables.

For me, this worked. I don't think this is quite regular, but it works, so...

PS : if you have prefix to your wiki installation, don't forget to add it for the echo_email_batch, echo_event, echo_notification, and echo_target_page"

Reply to "Can this be installed without command line access to manually update schema at all?"

Displaying Database Label instead of "inbox"

1
Steveengelhardt (talkcontribs)

So it looks like this bit of code makes it display my database label, "steveeng_mw19717-mw8z_", when i believe it should say "Inbox". What file do i need to edit with this bit of code in it?

<span class="oo-ui-labelElement-label mw-echo-ui-pageNotificationsOptionWidget-title-label">steveeng_mw19717-mw8z_</span>

Reply to "Displaying Database Label instead of "inbox""

Can you trigger an email from within a conditional statement?

2
Legaulph (talkcontribs)

Is this possible?

{{#if: {{{Contact|}}}|yes|email support group}}

Email a certain person or group

Dinoguy1000 (talkcontribs)

No, that would be horrifically abusable.

Reply to "Can you trigger an email from within a conditional statement?"

Changing user preferences? How to?

3
Kghbln (talkcontribs)

I have no clue how to set user preferences, e.g. I want to set e-mails for mentions by default. Both

$wgDefaultUserOptions['echo-subscriptions-email-mention'] = 1;

or

$wgDefaultUserOptions['echo-subscriptions-email-mention'] = true;

fail gloriously.

MSchottlender-WMF (talkcontribs)

You should be able to set that in "Preferences", under the "Notifications" tab. There's a matrix of checkboxes dictating which type of notification you wish to get via the web popup and/or email.

Kghbln (talkcontribs)

Thanks for your reply. I am aware of this and I already changed my preferences.

However I still do not know how to change the defaults for all new users that will be registering on the wiki without requiring them to got to their preferences to change them accordingly.

Reply to "Changing user preferences? How to?"

Suggestion: add "run composer install" into Installing session.

2
Zoglun (talkcontribs)

Suggestion: add "run composer install" into Installing session. Without composer components, Echo return fatal error sometimes.


(Using Mediawiki 1.31.1 with matched Echo version.)

Legoktm (talkcontribs)

Echo has no composer dependencies, what fatal errors are you seeing?

Reply to "Suggestion: add "run composer install" into Installing session."

Is there a way to merge the "alert" badge and the "notifications"?

9
Oleolsenkjhølkølk (talkcontribs)

Right now, whenever someone is doing an action that creates a notification (giving thanks, making edits etc) the alert icon doesnt change or show a red symbol or anything. So a user doesnt know he has notifications until he looks in his profile menu and se a separate bar called "notifications".

So is it possible to have notifications show where "alerts" are? It seems a bit weird to keep these two as separate, and to even hide one of them.

Quiddity (WMF) (talkcontribs)

In the default setup and skin, notifications like "Thanks" are shown under the "Notices" icon. You can see a screenshot at Help:Notifications#Detailed notification layout. I would guess that perhaps you are talking about a different skin, and possibly a non-Wikimedia site? We would need more context in order to possibly help.

88.90.0.192 (talkcontribs)

@Quiddity (WMF)

Oh, wow, i mean no offense but i actually wasnt expecting a reply until sometime next year, so thank you for noticing this. I really appreciate it.

And yes, it is a mediawiki site, with a skin that is called metrolook, which is built upon the vector skin. So, what happens is that there is a bell icon on the "toolbar" on the top, the same bar as most standard mediawiki skins have. But there is also a drop down menu for your profile related links, login/log out etc. Now, on the drop down menu there is a link called "notifications", where notifications from the echo extension shows up, while the "bell" icon remains basically unused. So, what i was wondering is whether it was possible to merge the two, as i have gotten the impression that in the echo extension "alerts" and "notifications" are two different things?

Currently, in order for a user to see notifications is to click on the alert icon (the bell) which gives a menu, and then the user clicks on a menu link saying notifications, in which they will se whether or not there are new notifications.

I have taken some screenshots, but not sure how to post them here,

Quiddity (WMF) (talkcontribs)

I'm not sure. @Roan Kattouw (WMF) do you know if there's an easy way for a 3rd party wiki to merge the two groups?

Oleolsenkjhølkølk (talkcontribs)

Or, any alternative solutions would be greatly appreciated too. Changing which events gives a notification where or something similar?

Roan Kattouw (WMF) (talkcontribs)

Ideally, the skin that you're using would display both alerts and notifications in a useful way :/

However, changing which notification types are in which group is pretty easy to do in LocalSettings.php:

// To change individual notification types:
$wgEchoNotifications['welcome']['section'] = 'alert';

// To change all notification types at once:
foreach ( $wgEchoNotificationTypes as &$data ) {
    $data['section'] = 'alert';
}
Oleolsenkjhølkølk (talkcontribs)

@Roan Kattouw (WMF)

Hmm, i added the line for changing all notification types at once into my localsettings, and it only produces a 500 error. But thanks for replying at least, but it seems like the easiest thing to do would just be switch around the section tags inside the echo extension files folder. Not quite sure which specific file to edit though, been looking through all the obvious ones without finding a list of which "event" goes where.


Roan Kattouw (WMF) (talkcontribs)

Oh that's right, I forgot that with extension registration, things work differently now. You might have more luck with the following code:

$wgExtensionFunctions[] = function () {
    global $wgEchoNotifications;
    // To change individual notification types:
    $wgEchoNotifications['welcome']['section'] = 'alert';

    // To change all notification types at once:
    foreach ( $wgEchoNotificationTypes as &$data ) {
        $data['section'] = 'alert';
    }
};
This post was hidden by Quiddity (WMF) (history)
Reply to "Is there a way to merge the "alert" badge and the "notifications"?"
Ahikam eliraz (talkcontribs)

Hello.

I'm trying to install Echo. I download the files and add the command: require_once "$ IP / extensions / Echo / Echo.php";

But it's not working.

I noticed that in the Echo library there is no file called "Echo.php", but there is "Echo.alias.php". Is it related to the matter, or is there any other reason why it does not work for me?

~~~~

Matěj Suchánek (talkcontribs)
Kghbln (talkcontribs)
Ahikam eliraz (talkcontribs)

Hi. Thanks.

I am working with version 1.28.

I've tried installing the newest version, and also 1.29 version .

I do not have the option to install 1.28 version.

Now I see that I have the 'Echo.php' file, but it still does not work for me.

If I write the command: wfLoadExtension ('Echo'); or the command: "require_once "$ IP / extensions / Echo / Echo.php";", in LocalSetting.php, - the site writes 'This page does not work'.

If I understand correctly, it just does not recognize the file.

Kghbln (talkcontribs)

You should really upgrade your instance to a supported version. Anyhow this version is meant to be used for MW 1.28.x.

Reply to "no file called "Echo.php""

Cross-wiki notifications, database tables don't exist

1
NemesisAT (talkcontribs)

Hello, I'm trying to enable cross-wiki notifications. I am missing the "echo_unread_wikis" table, according to the error output. How do I go about fixing this?

Thanks

Reply to "Cross-wiki notifications, database tables don't exist"

NotifUser.php: Class 'CentralIdLookup' not found

3
Alexandroslee (talkcontribs)

I got " NotifUser.php: Class 'CentralIdLookup' not found "

and seems from getMemcKey

how to do ?

Alexandroslee (talkcontribs)

seems Build a memcached key got wrong ?!

Alexandroslee (talkcontribs)

have to install memcached ?

Reply to "NotifUser.php: Class 'CentralIdLookup' not found"
Return to "Echo" page.