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
[SOLVED]Note not found
Moderators: Developer, Contributor
[SOLVED]Note not found
Last edited by Celso on 05 Jun 2023, 10:33, edited 1 time in total.
Re: Note not found
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?
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
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
$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
Re: [SOLVED]Note not found
Thanks for your posts
Looks similar to https://www.mantisbt.org/bugs/view.php?id=32460
Looks similar to https://www.mantisbt.org/bugs/view.php?id=32460