Webmastersite.net
Register Log In

reject comments does not work

Comments on reject comments does not work

fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003

Total Topics: 23
Total Comments: 106
fresco
Posted Jul 19, 2008 - 12:23 PM:

Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/.../.../.../databases/mysqli.php on line 23

Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/.../.../.../databases/mysqli.php on line 23



Comment does not get rejected/deleted - gives above error
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 19, 2008 - 11:08 PM:

Works for me. Post the debug info. scripts.webmastersite.net/w...icles/mysql-errors-66.html
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003

Total Topics: 23
Total Comments: 106
fresco
Posted Jul 21, 2008 - 12:56 AM:

it's weird but I can make it show queries..

It shows all queries accept when I go to validate page - it does not show queries...
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003

Total Topics: 23
Total Comments: 106
fresco
Posted Jul 21, 2008 - 1:53 AM:

when i tried to delete it through "edit comments" got this:

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/.../.../.../databases/mysqli.php on line 20
Non-numeric id value given in creating object.

WSN Links 4.1.55
fresco
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2003

Total Topics: 23
Total Comments: 106
fresco
Posted Jul 21, 2008 - 2:01 AM:

I found the problem - the field "id" for comments table was not set to "auto_increment" ...


this is not a bug, please delete the post
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 21, 2008 - 5:47 AM:

Well, the issue is how it came to lose its auto_increment. I've seen that happen before on sites that originated in really old versions, I believe it's because the original field type which the old setup created isn't compatible with auto_increment in newer mysql versions (what was allowed in mysql 3 may not be allowed in mysql 5). I'll see if I can add a column sanity check on upgrade.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.