I have got an errors
PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "" LINE 2: WHERE result_id IN ('') ^: SELECT result_id, question_nid, question_vid FROM {quiz_node_results_answers} WHERE result_id IN (:result_id_0); Array ( [:result_id_0] => ) в функции quiz_delete_results() (строка 3969 в файле /var/www/drupal-7.2/sites/quiz.bashlov.ru/modules/contrib/quiz/quiz.module).
I try to uderstand why and put the code
function quiz_delete_results($rids) {
if (empty($rids)) {
return;
}
var_dump($rids);
var_dump return to screen -
array(1) { [0]=> bool(false) }
Comments
Comment #1
sivaji_ganesh_jojodae commentedarray(1) { [0]=> bool(false) } is not a good sign, could you tell us what triggers this error. Deleting quiz node, user account or results from node/%node/results page ?
Comment #2
dema502 commentedI've installed fresh drupal and quiz to test.
Create quiz and questions and then request page node/1/take
Comment #3
sivaji_ganesh_jojodae commentedYes I reproduce the PDOException when the quiz results save option is newest or the best (default all). I have committed a fix for the same to git, ref id d0f220d..8818f53.
Comment #4
dema502 commentedI apply your patch but this error is still live.
Sorry. I've got another error in url node/1/results
Comment #5
sivaji_ganesh_jojodae commentedI'm not sure why the error persists in your site, I couldn't guess anything unless I reproduce it myself. Regarding the new PDOException I guess I know the problem could be the global variable
$db_typewhich no longer exists in d7 and replaced bydb_driver(). I fixed that in commit 2c4e5f0..6c330a6.Comment #6
sivaji_ganesh_jojodae commentedTagging.
Comment #7
Satori42 commentedSimilar error. Fresh Drupal install, Quiz and User Points only installed. User Points activated for this sample quiz. On Finish-ing the quiz, Drupal returns a similar error:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.taxonomy_term_node' doesn't exist: SELECT tid FROM {taxonomy_term_node} WHERE nid = :nid AND vid = :vid AND tid IN ( SELECT tid FROM {taxonomy_term_data} WHERE vid = :vid ); Array ( [:nid] => 1 [:vid] => 2 ) in quiz_quiz_finished() (line 2340 of C:\xampplite\htdocs\drupal\modules\quiz\quiz.module).Status Report also returns the following:
Comment #8
Sabareesh commentedHi, I cloned the recent version of the quiz module from the git. I tried to reproduce the same PDO exception in my site. I went on to take my sample quiz questions and visited the page node/%node/take. But i found no such errors being reported.
It would be great if you can take your time in checking the integrity of the latest git version. I can assure you that no such exceptions arises in the latest version of the quiz module.
Comment #9
falcon commentedComment #10
liam morlandTagging