[SOLVED]Note not found

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Celso
Posts: 13
Joined: 25 Apr 2023, 14:42

[SOLVED]Note not found

Post 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
Last edited by Celso on 05 Jun 2023, 10:33, edited 1 time in total.
Celso
Posts: 13
Joined: 25 Apr 2023, 14:42

Re: Note not found

Post 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?
Celso
Posts: 13
Joined: 25 Apr 2023, 14:42

Re: Note not found

Post 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
Celso
Posts: 13
Joined: 25 Apr 2023, 14:42

SOLVED

Post by Celso »

It was a plugin that created the error, it was the EventLog plugin
atrol
Site Admin
Posts: 8353
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: [SOLVED]Note not found

Post by atrol »

Thanks for your posts
Looks similar to https://www.mantisbt.org/bugs/view.php?id=32460
Please use Search before posting and read the Manual
Post Reply