--------------------------
After upgrading to 1.0.3 (from 1.0.1) Whenever reporting a new bug i would get:
Code: Select all
APPLICATION ERROR #401
Database query failed. Error received from database was #1136: Column count doesn't match value count at row 1 for the query:
INSERT INTO mantis_bug_table ( project_id, reporter_id, handler_id, duplicate_id, priority, severity, reproducibility, status, resolution, projection, category, date_submitted, last_updated, eta, bug_text_id, os, os_build, platform, version, build, profile_id, summary, view_state, sponsorship_total, sticky )
VALUES ( '8', '78', '87', '0', '30', '60', '10', '10', '10', 10, 'Application', '2006-05-12 06:37:05','2006-05-12 06:37:05', 10, '3180', '', '', '', '1.0', '0.9.50', '0', 'blah blah blah', '10', '0', '0', '' )Code: Select all
$query = "INSERT INTO $t_bug_table
( project_id,
reporter_id, handler_id,
duplicate_id, priority,
severity, reproducibility,
status, resolution,
projection, category,
date_submitted, last_updated,
eta, bug_text_id,
os, os_build,
platform, version,
build,
profile_id, summary, view_state, sponsorship_total, sticky )
VALUES
( '$c_project_id',
'$c_reporter_id', '$c_handler_id',
'0', '$c_priority',
'$c_severity', '$c_reproducibility',
'$t_status', '$t_resolution',
10, '$c_category',
" . db_now() . "," . db_now() . ",
10, '$t_text_id',
'$c_os', '$c_os_build',
'$c_platform', '$c_version',
'$c_build',
'$c_profile_id', '$c_summary', '$c_view_state', '$c_sponsorship_total', '$c_sticky', '' )";So by removing that final comma and qoutes at the end which is reponsible for the mismatch, that fixed it and everything now seems okay, but since im not proficient enough at PHP to know completely whats going on, I fear of course that if it is neccessary for some reason, it might manifest in some problem elsewhere if it were my changes that set it up to be broken, or if i was supposed to use the admin tools to "upgrade" the db for 1.0.3 to make it ready for that extra column, as I didnt see any requirement to do so in the release note for 1.0.3. I didnt want to risk doing that unless necessary.
What was that blank column for anyway?
and am i supposed to use the admin tool to upgrade the database?
Thanks,
-Eric