![]() |
Hmmm...getting this error trying to take the quiz:
Fatal error: Unsupported operand types in /home/domain/public_html/gw/forums/quiz.php on line 350 |
I did the first step over again and nothing. This is reaaaaaly annoying me. :(
|
I'm getting the same error as Dark_Wizard - quizes are created, but when you click on the "Take This Quiz" button... boom!
Any ideas? |
You can see my blank page here: http://forums.lotronline.com/quiz.php
The templates did not install correctly. |
dm: can you attach your install_quiz.php file to a post here? Maybe it got messed up somehow...
Dark_Wizard: I think you're running a different version of PHP than I am. Use the attached quiz.php file in place of your current quiz.php file, and I think it should do the trick. |
Can someone having problems with their templates please upload their install_quiz.php file? It should work...I've had several people try it out.
|
ok here ya go :)
removed |
I uploaded that new quiz.php, same error...
|
Gone
|
This is cute... I will install soon!
|
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 |
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. |
I have 2 styles on my vB.
|
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... ??? |
Okay... error is:
Quote:
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? |
Code:
Database error in vBulletin 2.2.5: |
I have multiple styles. m8 we reeeeeealllly need this fixed.
|
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? |
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 :) |
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. |
|
I have now installed - on 2.2.5 - and everything went OK. Very cute hack!
One thing tho.... I am looking for the window with the answers too :) I only get to type the question, add how many answers I want... thats it. |
Under "Quiz Questions" click "Add" -- then pick your quiz from the dropdown menu and enter into the two boxes above how many questions you want to add, and how many answers each question should have. Hit submit and you'll get a page like that one.
|
ahhh yes :) thanx
so now Im going to copy aaaalllllllll the quiz templates one by one to my public board :( |
Naw, don't do that. I'll have a mild modification for you tonight that'll save you the trouble.
|
Any idea about TalkHardRandy's error?
<looking on hopefully> |
Yeah, I'm pondering. I'll let ya'll know if I can figure out what's wrong.
|
Quote:
Ohhh....yes, it's working now! I typed the question.... :cheeky: I also got the same error as TalkhardRandy. |
I have installed the quiz and I had both errors, one was with database error
[sql] 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 [/sql] and now I have a blank quiz.php the templates did not install and I am on version 2.2.6 php I have re-uploaded the install file and still no go, otherwize the admin functions are working great, just the templates :( |
|
Quote:
|
My version of php is v4.1.2
here is the install for mine |
Quote:
|
ceo: I don't mean to be rude, but PLEASE read the instructions.txt file...it warned of that error potentially coming up, and tells you how to fix it.
I'm working on the template problem. It should only be happening to those of you not using the default template set. I'll have something shortly. |
I am not using the Default. But it is the only selcetable one on my forums. Maybe you could also just give us a txt file with the templates?
|
Here's a new install_quiz.php file. Here's how it can help you (I hope :D): find out what the templatesetid is for your primary template set. Then, instead of going to this URL to insert the templates...
http://www.yoursite.com/forums/admin...uiz.php?step=1 ...go to this one... http://www.yoursite.com/forums/admin...step=1&setid=X "X" of course should be replaced by the templatesetid number. Of course, you'll need the attached file in place of the old one, too. Let me know if it works. :) |
w00t! it works! http://forums.lotronline.com/quiz.php
THanks man! |
TWTCommish I copied one by one :D
everything working fine,No errors, I love this hack :) Thanx alot for your time, now I?ll surf around and look for some quizzies I can add LOL thaaaanx :) |
Woohoo! Thank goodness. LOL.
Glad you dig it. Lemme know if you run into any other problems. |
You did them by hand? I'm a little confused...didn't they have all those annoying slashes before the quotes and everything?
|
All times are GMT. The time now is 08:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|