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'
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'