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 
help please with Advanced Poll 2.02 [text version]...  XML
Forum Index » Support Forum
Author Message
Anonymous



the page with voting give an error:

Fatal error: Cannot redeclare set_max_bar_length() in /usr/home/ftp/ru/spb.ru/kyra.spb.ru/wwwroot/bpxf5lae/xumepa/vote/include/class_poll.php on line 116


what must i do...
help please...

---
sorry for my english

Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Whats on line 116?

Also I don't think anyones found a solution to this yet apart from starting over from scratch.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Anonymous



Auron wrote:Whats on line 116?

Also I don't think anyones found a solution to this yet apart from starting over from scratch.

Auron


on line 116 is:

function set_max_bar_length($max_bar_length='') {
Anonymous



index.php listing:
----------------------------------------------------------
<?php
// Important! You have to include it before your html code
include_once "vote/poll_cookie.php";
?>

<html>
<body>
<?php
include_once "vote/booth.php";
echo $php_poll->poll_process("newest");
?>
</body>
</html>
----------------------------------------------------------

its ok?

or i must set the full patch?
"vote/poll_cookie.php" -> "http://blah-blah-blah.../vote/poll_cookie.php"
Anonymous



sorry
last messages are mine
Anonymous



Auron wrote:
Also I don't think anyones found a solution to this yet apart from starting over from scratch.

Auron


scratch? what do you mean "from scratch"?
Anonymous



bpxF5Lae wrote:the page with voting give an error:

Fatal error: Cannot redeclare set_max_bar_length() in /usr/home/ftp/ru/spb.ru/kyra.spb.ru/wwwroot/bpxf5lae/xumepa/vote/include/class_poll.php on line 116


what must i do...
help please...


- admin interface is working without problems
- i dont change anything in php-sourses (only with help of admin interface)

but i can't include voting in my index.php



please help......
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Have you chmod'ed all the files right and scratch means start from the beginning with EVERYTHING. Try using the full path found under help in the admin area. Also try deleting the white space between the first ?> and the <html> tag.

<?php include_once "./textfile/booth.php";
echo $php_poll->poll_process("newest"); ?>

Personally I use this and it seems to work fine. You don't really need the cookie bit if under general settings you switch IP table on.

Also I've figured out how to turn the options for each poll into links so you can view either a new page, image or text about/for that option, if your interested.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Anonymous



Fatal error: Cannot redeclare set_max_bar_length() in /home2/wmpnetru/www/poll/include/class_poll.php on line 116

not work!
CHMOD is ok
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum