Hamdi-Amine / Mantis-BT-Microsoft-Teams

Integration tool between Mantis and Microsoft Teams
GNU General Public License v3.0
4 stars 6 forks source link

Plugin only passing 3 params but 5 are required? #6

Open mushu999 opened 3 years ago

mushu999 commented 3 years ago

Windows Server 2019, IIS, MantisBT 2.24.3

The webhook URL is correct on my system because I can paste it into a browser and get the standard "cannot use GET method" error message. So at least we know the Teams webhook is correct. Below I have mangled the URL for posting purposes. Here is the MantisBT error screen, any ideas on how to start troubleshooting this?

INTERNAL APPLICATION ERROR

Too few arguments to function MicrosoftTeamsPlugin::notify(), 3 passed in C:\MantisBT2243\plugins\MicrosoftTeams\pages\config.php on line 45 and exactly 5 expected

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section. Detailed error information Full path: C:\MantisBT2243\core\error_api.php Line number: 92 Stack trace

Filename Line Class Type Function Args

0 C:\MantisBT2243\plugins\MicrosoftTeams\pages\config.php 45 MicrosoftTeamsPlugin -> notify 'Hello, this is a test for the MantisBT-Microsoft Teams plugin :wave:', 'https://domain/webhookb2/hash/IncomingWebhook/hash', '#General' 1 C:\MantisBT2243\plugin.php 74 - - include 'C:\MantisBT2243\plugins\MicrosoftTeams\pages\config.php'

eeyrsja commented 2 years ago

I have the same issue with Mantis 2.8.0

aday395 commented 2 years ago

i am also experiencing this issue in Mantis 2.25.4