vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBQuiz 1.0 (https://vborg.vbsupport.ru/showthread.php?t=39719)

Harryli 06-11-2002 07:27 PM

I have setup a testquiz, but if I hit "Take this quiz" I get "Error: invalid quiz specified."... see at

http://www.schatzjagd.org/Forum/quiz...zid=1&taking=1

TWTCommish 06-11-2002 08:02 PM

I stand correged, Sigon: you should probably remove that post. It's making this page of the thread lag like CRAZY.

TalkHardRandy: same error on the same line? Either way can you post the line in question, as well as 3 lines before and after it? I want to make sure we're dealing with the same thing here.

Harryli: sounds like you didn't add any questions to your quiz. :)

NOTE: to those of you having trouble with the templates...I'm 99% sure that the script is working exactly as intended...however, it assumes that you don't have multiple style sets in place. If you do, well, let me know...so I can confirm that that is indeed the problem, and offer up a fix.

-=dm=- 06-11-2002 08:08 PM

I have 2 styles on my vB.

Harryli 06-11-2002 08:09 PM

Hm, just proved it and did:

choose "Add questions", Added a Questions (some letters) and "1" Answer, for Quiz "neu". Then I tried to modify this, choosing "Qui, Questions, modify, Quiz "neu", and ... no questions found... ???

TalkHardRandy 06-11-2002 08:23 PM

Okay... error is:
Quote:

Fatal error: Unsupported operand types in /usr/local/plesk/apache/vhosts/talkhardonline.com/httpdocs/quiz.php on line 350
Okay here are the lines with 350 in red:

while ($answer = $DB_site->fetch_array($answers)) {
$color = ($color_num++ % 2) ? '{secondaltcolor}' : '{firstaltcolor}';
$answer[answertext] = bbcodeparse($answer[answertext]);
eval("\$answerbits .= \"".gettemplate("quiz_answerbit")."\";");
}

$question_number = $HTTP_POST_VARS["question"];
$answer_count = $DB_site->num_rows($answers);
$num = $HTTP_POST_VARS["question"] + 1;

eval("dooutput(\"".gettemplate("quiz_question")."\ ");");
exit();

Any ideas?

Hard_one 06-11-2002 08:45 PM

Code:

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT quizid, quiztitle, description, timestamp, userid, catid, imagename
                                FROM quiz
                                WHERE approve = 1
                                ORDER BY timestamp DESC
                                  LIMIT
mysql error: You have an error in your SQL syntax near '' at line 5

mysql error number: 1064

Date: Tuesday 11th of June 2002 11:23:15 PM
Script: http://xxxx.xxx/quiz.php
Referer:

can anyone help please ?

Sigon 06-11-2002 08:47 PM

I have multiple styles. m8 we reeeeeealllly need this fixed.

-=dm=- 06-11-2002 08:55 PM

ok I have just tried it on a new board everything working perfect :)
it was the multiple style which was causing the problem.

how can I fix this on my public board?

-=dm=- 06-11-2002 08:58 PM

Hard_one I think u have to go to the
--> admin cp --> vBulletin Options-->Quiz Options-->at the bottom save changes.
I got this error and I did that :)

TWTCommish 06-11-2002 09:00 PM

I'm afraid I don't understand what you're saying, Harryli.

Hard_one: I don't mean to sound rude, but if you'd read the instructions, you wouldn't have run into that problem. :) db is correct.

As for the templates: I'll get to work on that tonight. The solution should be rather simple.


All times are GMT. The time now is 06:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01691 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete