# Can not delete comments in bug reports

- Thread: https://externals.io/message/37902
- Original archive: https://news-web.php.net/php.internals/37902
- Started by Jani Taskinen on 2008-05-26T20:00:01+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #37902 — Jani Taskinen — 2008-05-26T20:00:01+00:00

URL: https://externals.io/message/37902#37902

So who broke the deleting of comments in bug reports?
It used to work fine, now nothing happens..

--Jani

---

## #37903 — Rasmus Lerdorf — 2008-05-26T20:03:26+00:00

URL: https://externals.io/message/37902#37903 · In reply to: #37902

Jani Taskinen wrote:
> So who broke the deleting of comments in bug reports?
> It used to work fine, now nothing happens..

Is that your way of filing a bug report?

I upgraded from MySQL 4.1.x to 5.1.x because 4.1 was very unstable for 
some reason.  It seems more stable now, but perhaps the delete query is 
doing something weird that 5.1 doesn't like.

-Rasmus

---

## #37904 — Jani Taskinen — 2008-05-26T20:08:04+00:00

URL: https://externals.io/message/37902#37904 · In reply to: #37903

Rasmus Lerdorf kirjoitti:
> Jani Taskinen wrote:
> > […]
> 
> Is that your way of filing a bug report?

:)

> I upgraded from MySQL 4.1.x to 5.1.x because 4.1 was very unstable for 
> some reason.  It seems more stable now, but perhaps the delete query is 
> doing something weird that 5.1 doesn't like.

Actually I just noticed that this only happens with some comments, not 
all..maybe that table needs some loving care of "REPAIR TABLE"..?
(or even all the tables?)

--Jani

---

## #37905 — Rasmus Lerdorf — 2008-05-26T20:13:17+00:00

URL: https://externals.io/message/37902#37905 · In reply to: #37904

Jani Taskinen wrote:
> Rasmus Lerdorf kirjoitti:
> > […]
> 
> :)
> 
> > […]
> 
> Actually I just noticed that this only happens with some comments, not 
> all..maybe that table needs some loving care of "REPAIR TABLE"..?
> (or even all the tables?)

I upgraded and repaired all the tables, but I'll run it again.  It is 
reporting back:

| phpbugdb.bugdb_comments | repair | status   | OK       |

The code is:

         $query = "DELETE FROM bugdb_comments WHERE bug=$id AND id=$com_id";
         $res = @mysql_query($query);

I've removed the @ there.  Could you try again on one that didn't work 
before and let me know what error you see?

-R

---

## #37906 — Jani Taskinen — 2008-05-26T20:22:49+00:00

URL: https://externals.io/message/37902#37906 · In reply to: #37905

Rasmus Lerdorf kirjoitti:
> Jani Taskinen wrote:
> > […]
> 
> I upgraded and repaired all the tables, but I'll run it again.  It is 
> reporting back:
> 
> | phpbugdb.bugdb_comments | repair | status   | OK       |
> 
> The code is:
> 
>         $query = "DELETE FROM bugdb_comments WHERE bug=$id AND id=$com_id";
>         $res = @mysql_query($query);
> 
> I've removed the @ there.  Could you try again on one that didn't work 
> before and let me know what error you see?

Got another one:

"Some sort of database error has happened. Maybe this will be illuminating: 
Incorrect key file for table './phpbugdb/bugdb.MYI'; try to repair it This was 
the last query attempted: UPDATE bugdb SET sdesc='wddx_add_vars() does not 
convert variable names to UTF8', status='Open', bug_type='WDDX related', 
assign='', php_version='5.2.6', php_os='Windows', ts2=NOW() WHERE id=45037"

While updating a report..the other query (deleting comment) that didn't work, 
worked now. :)

--Jani

---

## #37908 — Rasmus Lerdorf — 2008-05-26T20:27:50+00:00

URL: https://externals.io/message/37902#37908 · In reply to: #37906

Jani Taskinen wrote:
> Rasmus Lerdorf kirjoitti:
> > […]
> 
> Got another one:
> 
> "Some sort of database error has happened. Maybe this will be 
> illuminating: Incorrect key file for table './phpbugdb/bugdb.MYI'; try 
> to repair it This was the last query attempted: UPDATE bugdb SET 
> sdesc='wddx_add_vars() does not convert variable names to UTF8', 
> status='Open', bug_type='WDDX related', assign='', php_version='5.2.6', 
> php_os='Windows', ts2=NOW() WHERE id=45037"
> 
> While updating a report..the other query (deleting comment) that didn't 
> work, worked now. :)

Ok, I have gone through and repaired all the tables again now.  I 
actually just did a myisamchk -r *.MYI before, not a repair table.

-Rasmus

---

## #37909 — Jani Taskinen — 2008-05-26T20:29:15+00:00

URL: https://externals.io/message/37902#37909 · In reply to: #37908

Rasmus Lerdorf kirjoitti:
> Ok, I have gone through and repaired all the tables again now.  I 
> actually just did a myisamchk -r *.MYI before, not a repair table.

Yup, seems to work fine now.

--Jani
