mantisbt-plugins / Forward

A plugin for MantisBT that allows to forward an issue to any email address. The email contains (for now): Summary Description Additional information Steps to reproduce Duedate
GNU General Public License v3.0
0 stars 0 forks source link

Application Error #200 when clicking Send button #1

Closed sintaq83 closed 1 year ago

sintaq83 commented 1 year ago

Application Error #200 when clicking Send button. Refer attached image

Capture
CasN commented 1 year ago

I cannot replicate this. Can you add the following line into core/config_inc.php: $g_show_detailed_errors = ON; Now try again, you should get more info

From: sintaq83 @.> Sent: Thursday, June 1, 2023 9:53 AM To: mantisbt-plugins/Forward @.> Cc: Subscribed @.***> Subject: [mantisbt-plugins/Forward] Application Error #200 when clicking Send button (Issue #1)

Application Error #200 when clicking Send button. Refer attached image [Capture]https://user-images.githubusercontent.com/79757612/242526179-c1441e3e-a904-4e8b-b008-84a17592feec.PNG

β€” Reply to this email directly, view it on GitHubhttps://github.com/mantisbt-plugins/Forward/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYLFFEUGVXKK65OY77U37TXJBC65ANCNFSM6AAAAAAYWQRMJY. You are receiving this because you are subscribed to this thread.Message ID: @.**@.>>

mokraemer commented 1 year ago

I can confirm this one too.

Detailed error information Full path: /core/gpc_api.php Line number: 68 Stack trace

Filename Line Class Type Function Args

0 /core/gpc_api.php 68 - - trigger_error '200', 256 1 /core/gpc_api.php 128 - - gpc_get 'forward_at' 2 /plugins/Forward/pages/issue_send.php 13 - - gpc_get_int 'forward_at' 3 /plugin.php 74 - - include '/plugins/Forward/pages/issue_send.php'

CasN commented 1 year ago

Found the issue and fixed it also. Please use a fresh download from here

dregad commented 1 year ago

@CasN Maybe because the forward_at input is commented out ? you should consider calling gpc_get_int() with a default value.

https://github.com/mantisbt-plugins/Forward/blob/b5895dca8714231254b73cab184948159fd56c30/pages/issue_send_page.php#L64-L74

CasN commented 1 year ago

@dregad, not sure how but some development work ended up there, have already taken care of it😊 Thanks for the tip.

From: Damien Regad @.> Sent: Wednesday, 27 September 2023 16:31 To: mantisbt-plugins/Forward @.> Cc: Cas Nuy @.>; Mention @.> Subject: Re: [mantisbt-plugins/Forward] Application Error #200 when clicking Send button (Issue #1)

@CasNhttps://github.com/CasN Maybe because the forward_at input is commented out ? you should consider calling gpc_get_int() with a default value.

https://github.com/mantisbt-plugins/Forward/blob/b5895dca8714231254b73cab184948159fd56c30/pages/issue_send_page.php#L64-L74

β€” Reply to this email directly, view it on GitHubhttps://github.com/mantisbt-plugins/Forward/issues/1#issuecomment-1737520878, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYLFFGWX2MJE6G5734KP2DX4Q2CFANCNFSM6AAAAAAYWQRMJY. You are receiving this because you were mentioned.Message ID: @.**@.>>

dregad commented 1 year ago

Funny we posted at literally the same time 🎯

sintaq83 commented 1 year ago

@CasN @dregad thanks guys