![]() |
this happens during voting...I'll look at this, seems that people are able to vote though on your forums
|
Yeah it is really weird....I just got like 15 more emails like that this morning.
I went through and tested all of the poll functions as an administrator and as a regular users...I'm not sure were the error is coming into play. Maybe it is from: - A moderator trying to edit the poll - A guest trying a poll function I'll try and do some more testing. |
Quote:
|
James-
Did you edit the two new templates that were created to have $pollid and $optionChoice in BOTH of them? (I think those are the variable names) Doron- In the updatepoll file you forgot to escape the $'s. |
so, is it working yet?
|
all bugs should be ironed out now, waiting on VirtueTech to see about that error he keeps getting, even though it could be a template issue...
I see you installed it on your forums, are you getting any sort of db errors? |
hello !
I got the same DB-Error as VirtuTech. My users do not see the poll-hack, cause the button is not implemented - but even then i got some error messages from time to time. So i do not think it is a problem when users play with the poll itself. bye tom |
Quote:
pollid= mysql error: You have an error in your SQL syntax near '' at line 1 mysql error number: 1064 Date: Monday 06th of November 2000 09:38:52 AM Script: Referer: http://atforumz.com/poll.php That's the one I get, but the polls seem to work anyway. I didn't bother to check last night (I have a special addy for DB errors), but it's the only one I get. are you missing a $pollid at the end of that statement? I'm at work and don'e have ready access to the code... |
Look at the 2 new templates that were created - they're probably missing the variables $pollid and $optionChoice (the variables have the same names as the <input type="hidden"..> they're in)
|
error_pollvotenologin
Code:
You must be logged in to vote on a poll error_pollvoteinvaliduser: Code:
Your username and password do not correspond. I really have no idea how the $pollid and $optionNumber are not there - could you all check if it exists in your templates? thanks! |
Perhaps you didn't escape the variables and so they were evaluated (which would make them blank)
|
You have to escape the $'s in the installation files. Otherwise, they'll try to be evaluated - which doesn't work.
|
Yeah or what I said before that.
|
the wierd thing is, it worked for me on my test boards...
/me dies in shame |
Yes that was the problem. Thanks all. :)
|
Does this mean you'll release a updated zip file with all of the fixes? :)
I had some problems with 1.01 but decided to just drop the db's and kill the modifications and install it on a test board instead of a main production one :) |
<a href="http://www.naboonline.com/pollhack/pollv101.zip" target="_blank">http://www.naboonline.com/pollhack/pollv101.zip</a>
that has the newest fixes |
Are there any changes in the code or i can simply reupload .php files?
|
Hello Doron,
have you made any other changes in that new zip other than the bugs/fixes we discussed above? |
Thanks Doron :cool:
I'll give them a whirl |
Quote:
Virtuetech: that is an old zip of all the fixes for the bugs you guys found. |
Hmm,
I've tried to install the poll, but I get an error-message: Fatal error: Call to undefined function: checkipban() in /home/theotc/public_html/board/admin/poll.php on line 11 So the problem is with the IP-check. Can anyone help me? Thx a l0T |
what version of the vB are you using?
|
The latest one.
It's 1.1.4 |
what system are you on? this is wierd, the function is used by other files in the vB too.
|
Hmm,
It's Linux I think. |
hmm, where is the location of your vB?
|
All is ok in the poll and my test-board.
So but the poll looks bad. http://213.61.114.140/~theotc/board/...php?threadid=6 This the link to my board and teh poll. I mean the question looks bad, cause its not big enough. *sorry for bad 'n poor english Thx |
i'm not even seeing a poll - check your templates (pollview).
|
I have added this hack for 1.1.4 on my test board... but it did not add any of the templates when I ran the makepolltables.php file.
Any ideas? |
Doron, can you help me? I got this error when I ran the updatepoll.php - the weird thing is that my directory is not /usr/local/apache/sites...
But my board is still functional so I don't know what this is about! <!-- Database error in vBulletin: Invalid SQL: ALTER TABLE thread ADD poll SMALLINT (1) DEFAULT '0' not null mysql error: Duplicate column name 'poll' mysql error number: 1060 Date: Saturday 02nd of December 2000 08:33:54 PM Script: /updatepoll.php Referer: --> Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/sites/***.com/htdocs/updatepoll.php:7) in /usr/local/apache/sites/***.com/htdocs/global.php on line 754 Warning: Cannot add header information - headers already sent by (output started at /usr/local/apache/sites/***.com/htdocs/updatepoll.php:7) in /usr/local/apache/sites/***.com/htdocs/global.php on line 757 Editing thread table ... [Edited by Me2Be on 12-02-2000 at 07:44 PM] |
Me2b, I had a kind of similar problem than the one you mention in you last 2 quotes.
Check my recent thread: http://www.vbulletin.com/forum/showt...?threadid=5041 I'm sure you have the same blank lines problem. Benj [Edited by Benj on 12-02-2000 at 08:37 PM] |
Benj, I just tried checking for blank spaces and couldn't find anything. The weird thing is that the board is working fine - It just gives me the error when I run the updatepoll.php file
|
ALTER TABLE thread ADD poll SMALLINT (1) DEFAULT '0' not null
look for that and comment it ouy with a //, you seem to already have the poll column in thread. As for the other error, that other thread seems to cover it. you probably got the 2nd error once, retried the updatescript, but it succedded the first time to create that column. What sort of system are you on? |
Quote:
thanks |
Quote:
|
Cheers... it was a problem with my header as well.
But it all works fine now. |
doron, commenting out that line worked perfectly! I still got that header error even after making sure there was no white space, but nevertheless, it still worked!
Thanks doron! |
hmm, the header issue is wierd, I'll try to reproduce. Are you all running php4?
|
php4 for me! But like I said, it did work though!
|
All times are GMT. The time now is 08:45 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:
|