If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: lmessemaker
Forum Index » Profile for lmessemaker » Messages posted by lmessemaker
Author Message
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!
cj wrote:what version of poll do you use, db or text?


I use the txt version of the poll (v2.02).
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!
 
Forum Index » Profile for lmessemaker » Messages posted by lmessemaker
Go to:   
Based on the open source JForum