Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conference Notification does not work #914

Open
FelixPetriconi opened this issue Dec 3, 2022 · 4 comments
Open

Conference Notification does not work #914

FelixPetriconi opened this issue Dec 3, 2022 · 4 comments

Comments

@FelixPetriconi
Copy link

FelixPetriconi commented Dec 3, 2022

We have setup a conference and configured correctly an email server.

Whenever I select on the conference settings page the Notification tab I get the error message "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly."

Inside the log I see the following error message:

[9e0b53e4-143d-454f-9b3c-9e2f20e37026] ActionView::Template::Error (wrong number of arguments (given 2, expected 1)):
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] 1: .bulk-notification
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] 2: %h3= t('notifications_module.n_events_in_state_x', { count: e.count, state: t(state, scope: 'conferences_module') })
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] 3: - subscribers = e.map { |e| e.subscribers.count }.sum
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] 4: - nospeakers = e.select { |e| e.speakers.count == 0 }
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] 5: - if nospeakers.count > 0
[9e0b53e4-143d-454f-9b3c-9e2f20e37026]
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] app/views/conferences/_notification_section.html.haml:2
[9e0b53e4-143d-454f-9b3c-9e2f20e37026] app/views/conferences/edit_notifications.html.haml:19

We are on this source code revision: ACCUConf@32008a7

We are using these versions:
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]

@FelixPetriconi
Copy link
Author

Update: After further investigation I found out that the problem appears in Ruby 3.0.0, but not in Ruby 2.7.0
For the moment I switched to the older version.

@erdgeist
Copy link
Contributor

Looking at https://stackoverflow.com/a/71239392 I see the problem. Will provide a fix.

@erdgeist
Copy link
Contributor

Look here #942

@manno
Copy link
Member

manno commented Nov 3, 2023

Even more of those: #944

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants