View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034849 | Plugin - EmailReporting | General | public | 2024-10-13 03:51 | 2024-11-14 16:20 |
Reporter | fpaquet | Assigned To | SL-Gundam | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | resolved | Resolution | reopened | ||
Summary | 0034849: EMailReporting config page reports APPLICATION ERROR 0001502 | ||||
Description | After Upgrade from Mantis 2.26.3 -> 2.27.0 we receive "APPLICATION ERROR 0001502" when trying
Context Logfiles
Issue reported in forum, by another user | ||||
Tags | No tags attached. | ||||
Pse note that reporting bugs via E-Mail is working as expected. |
|
2.27 made a change to how categories worked. |
|
Hello Gundam There ist still another problem. Steps to reproduce
|
|
[root@madness-test:/var/www/html/support/plugins/EmailReporting] git branch
commit 642cc9fe43065033052c8e84f4b5f7c43c2c7051 |
|
I cannot reproduce this on my side. Please do the following. Add the following code to your MantisBT config_inc.php |
|
Enabled debug settings. Note: nginx and php-fpm error logs do not show any problems /var/www/html/mantisbt-2.27.0/plugins/EmailReporting/pages/manage_mailbox_edit.php
|
|
Is "Nicht zugewiesen" an existing category for your MantisBT environment? |
|
Yes there seams to be global category, at least shown on the project managment page. The input field on the project page, it has category_id=1 In the database table mantis_category_mantis, it exists with id=1 and project_id=0 The function gpc_get(line 68) seams to check POST and GET parameters only. Browser inspector shows the POST Form Data as: How comes that the category choice entries on the mail account page are all greyed out? |
|
I've found the problem. |
|
Could this possibly be related to the database scheme version? I have First not in https://mantisbt.org/forums/viewtopic.php?p=79943#p79943 |
|
Disabled categories are not sent in the form which causes the error you were having. |
|
Yes that is the issue. |
|
I still have the same error after update to 2.27. |
|
|
|
I did a clean plugin install, but the same problem. |
|
Did you update the MantisBT database schema? |
|
Yes. |
|
For me, it is working flawlessly after schema update to 213 |
|
@piotrusx i cannot find the reason for the error you are encountering. Are you running any other plugins or modifications to MantisBT code? |
|
@SL-Gundam: no any modifications MantisBT code, standard plugins: |
|
I've found the problem. The default category with id 1 has been deleted from your MantisBT environment. The changes from MantisBT 2.27 and EmailReporting do not like this. |
|
Yes, if I added category ID 1 it started working. |
|
|
|
I think the code will need more work in the future but for now this should fix the issue. |
|
Thank you for your help! |
|
I've made further changes to the function to improve it. https://github.com/mantisbt-plugins/EmailReporting/commit/e9a78083c72c9f82bf247ebbbf28c547e59e1a7d |
|