Jump to content
  • 0

[FluxCP] Send to Discord error


CyberDevil

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

 

Hi everyone,

I inform you that everything has always worked and that months have not updated FluxCP and no changes have been made to the php code in recent weeks, but for some days the "WebHook" system of Discord does not work anymore via FluxCP, specifically until a few days ago if a user sent a support ticket from FluxCP, in the GM room on Discord appeared the message that a ticket had been opened, same thing for sending the "web commands" as a result of the settings of the file "/config/application.php" as follows:

// Discord Webhooks
	'DiscordUseWebhook'		=> true,
	'DiscordWebhookURL'		=> 'https://discordapp.com/api/webhooks/*MY_SERVER*/*MY_WEBHOOK_CODE*',
	'DiscordSendOnRegister'		=> true,
	'DiscordSendOnNewTicket'	=> true,
	'DiscordSendOnWebCommand'	=> true,
	'DiscordSendOnMarketing'	=> true,

For example the error that gives me just a "web command" sending is the following (same error when send "thicket support"):

Quote

Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/lib/functions/discordwebhook.php:9 Stack trace: #0 /var/www/html/modules/webcommands/index.php(18): sendtodiscord('https://discord...', 'Web Command Sub...') #1 /var/www/html/lib/Flux/Template.php(375): include('/var/www/html/m...') #2 /var/www/html/lib/Flux/Dispatcher.php(170): Flux_Template->render() #3 /var/www/html/index.php(170): Flux_Dispatcher->dispatch(Array) #4 {main} thrown in /var/www/html/lib/functions/discordwebhook.php on line 9

This is the file "discordwebhook.php" from GitHub: https://github.com/rathena/FluxCP/blob/master/lib/functions/discordwebhook.php

I am 100% sure that FluxCP side we have not made any changes to php files and given the recent changes to the "Privacy Policy" in Europe, we think there has been some change on the servers of Discord but I do not know where to get informations.
Does anyone else have this same problem or do you know how to solve it?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

If you Google the "call to undefined function" error message you'd find a load of guides showing you how to update cURL. It's possible the software on your webserver has been updated but curl was left out after a rebuild of php. If you're using shared webhosting this could be a problem.

Link to comment
Share on other sites

×
×
  • Create New...