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

Error: Cannot send an empty message #33

Open
Awilum opened this issue Oct 7, 2019 · 5 comments
Open

Error: Cannot send an empty message #33

Awilum opened this issue Oct 7, 2019 · 5 comments

Comments

@Awilum
Copy link

Awilum commented Oct 7, 2019

When I am sending replays to the forum topics, I see this

{"message": "Cannot send an empty message", "code": 50006}[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1868: Cannot modify header information - headers already sent by (output started at [ROOT]/ext/roots/discordnotifications/notification_service.php:328)

@c0rnflake
Copy link

I'm also getting this error now. It's just cropped up which is weird as I've not updated phpBB or the extention.

@efinst0rm
Copy link

efinst0rm commented Nov 25, 2019

Hi,
Discord has changed their API. Open notification_service.php found in root of the extention dir. Search for $h = curl_init(); and underneath paste this curl_setopt($h, CURLOPT_HTTPHEADER, array('Content-type: application/json'));

jOF5RaE

@c0rnflake
Copy link

@efinst0rm thanks for the solution. Discord bot is once again working :)

@sucofog
Copy link

sucofog commented Nov 26, 2019

Worked like a charm @efinst0rm thanks

@ShrineFox
Copy link

Thank you so much for sharing the fix @efinst0rm

Zeuh added a commit to Zeuh/phpbb-discord-notifications that referenced this issue Jan 2, 2020
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

Successfully merging a pull request may close this issue.

5 participants