Hi All,
After upgrading from 4.5.1 to 5.1, two of the pages had sql error messages while trying to enter them.
I have rebuild the database and could load these pages but I still cannot see the bottom of these pages because of another error message that after investigating it a little bit I got to the conclusion that there's an sql syntax error. The error for one of the pages looks like:
SELECT skillset.id , skillset.name , skillset.id candidate_rate_fields, skillset.assigned_user_id , 'skillset' panel_name FROM skillset AND skillset.deleted=0 where skillset.deleted=0 LIMIT 0,40
and I think it should look like this:
SELECT skillset.id , skillset.name , skillset.id candidate_rate_fields, skillset.assigned_user_id , 'skillset' panel_name FROM skillset where skillset.deleted=0 LIMIT 0,40
The extra AND causes the problem.
The other page has the following error:
SELECT candidate.id , candidate.name , candidate.id candidate_rate_fields, candidate.assigned_user_id , 'candidate' panel_name FROM candidate AND candidate.deleted=0 where candidate.deleted=0 LIMIT 0,40
where I think it should look like:
SELECT candidate.id , candidate.name , candidate.id candidate_rate_fields, candidate.assigned_user_id , 'candidate' panel_name FROM candidate where candidate.deleted=0 LIMIT 0,40
When I try to farther use the repair option from the admin page, it just makes it worse.
I'm trying to look for these sql queries in the php files with no success.
Can anyone help?
Thanks in advance
Gil


LinkBack URL
About LinkBacks



Reply With Quote



Bookmarks