Page 1 of 1

[SOLVED]Note not found

Posted: 02 Jun 2023, 11:45
by Celso
Hello
When i try to create a note it gives me the #600 error note not found, but in the database it creates the note in the table.

But this didn´t happen days before, the only thing i modified was the emailReporting plugin.

I don´t know if can be related with that

Info
Versión de MantisBT 2.25.7
Versión de esquema 211
Versión de PHP 8.0.28

PD
I found that the bugNote id that writes in the table is 7075
And in the log searches for id = 7076
I dont know why it makes that

Re: Note not found

Posted: 05 Jun 2023, 06:34
by Celso
Ok, i think i found where the problem is
In the mantis_bunote_table there is an bug_text_id and it have to be the same as the id from the same table.
The problem is that after id 21 the bug_text_id started to get random numbers as an id like:
iD bug_text_id
21 21
39 9510
40 10350
41 11623

I put one by hand and it worked but when i try to create a note in Mantis gives me the error 600 because the id != bug_text_id
So the thing is how can i make that the bug_text_id is the same as the id?

Re: Note not found

Posted: 05 Jun 2023, 09:53
by Celso
100% the problem is in the assignation of the parameter bug_text_id, the code in the api is like this:
$t_bugnote_text_id = db_insert_id( db_get_table( 'bugnote_text' ) );
this should put the correct id but instead inserts a number that increments randomly

SOLVED

Posted: 05 Jun 2023, 10:33
by Celso
It was a plugin that created the error, it was the EventLog plugin

Re: [SOLVED]Note not found

Posted: 07 Jun 2023, 20:44
by atrol
Thanks for your posts
Looks similar to https://www.mantisbt.org/bugs/view.php?id=32460