Author |
Message |
05/08/2003 16:45:36
|
lmessemaker
Newbie
Joined: 05/08/2003 16:36:59
Messages: 3
Location: Utrecht, Netherlands
Offline
|
Hi,
Advanced Poll 2.02 suddenly displays the following error (dit not have this error before):
Fatal error: Cannot redeclare set_max_bar_length() in /home/www/data/poll/include/class_poll.php on line 116
I've been looking into the PHP code, apparently the function "set_max_bar_length()" is declared twice. If I remove one of them the poll is all messed up (huge bars or no bars at all). Does anyone know a solution to this problem?
PHP is running on Unix, don't know which server though, only displays "FTP server (Version 1.1.214.8 Fri Apr 20 07:27:42 GMT 2001)".
Thanks!
|
|
05/08/2003 20:07:49
|
Anonymous
|
what version of poll do you use, db or text?
|
|
05/08/2003 20:56:06
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Maybe the max bar length is unspecified in the general settings, I'm sure I or someone else here had the problem but I have n oidea where the thread is or what the solution was. Try searching the forums using the button in the top right of the screen.
Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
15/08/2003 11:16:01
|
lmessemaker
Newbie
Joined: 05/08/2003 16:36:59
Messages: 3
Location: Utrecht, Netherlands
Offline
|
cj wrote:what version of poll do you use, db or text?
I use the txt version of the poll (v2.02).
|
|
15/08/2003 13:44:19
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Have you specified the bar max width in the general settings?
Have you chmod 'ed the config.inc.php file to 666 and the include directory to 755?
Auron
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
19/08/2003 01:26:45
|
lmessemaker
Newbie
Joined: 05/08/2003 16:36:59
Messages: 3
Location: Utrecht, Netherlands
Offline
|
All settings were correct (never changed them). Apparently the PHP server was upgraded from ver. 4.2 to 4.3, which caused the error to emerge. I found 2 solutions (previous posts on this forum):
1. Reinstall PHP version 4.2
2. Comment the set_max_bar_length() function in include/class_poll.php (this is the FIRST occurance of the function, leave the second occurance of the function untuched!)
/*
function set_max_bar_length($max_bar_length='') {
if ($max_bar_length && $max_bar_length>0) {
$this->pollvars['img_length'] = $max_bar_length;
return true;
} else {
return false;
}
}
*/
Good luck everyone and thanks for the help!
|
|
25/11/2003 08:10:48
|
Anonymous
|
Man I tried everything already, but I still get that error.
|
|
|