Author |
Message |
29/05/2006 16:43:38
|
sandeepnasa
Newbie
Joined: 29/05/2006 16:38:42
Messages: 3
Offline
|
I hvae installed advanced poll on 2 server on 1st it works fine on the second server i am getting errors.
the first server is PHP 4.4.2 the second server is PHP5
when i try to go to admin URl i get this error
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/pick22/poll/admin/common.inc.php(67) : eval()'d code on line 4
and on mainpage i get this
Fatal error: Call to a member function set_template_set() on a non-object in /home/pick22/poll/mypolls.php on line 10
the same setup works great on other machine
please let meknow the errors i am in a mess need to get it working on the php5 machine
thanks
|
|
29/05/2006 21:02:46
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
Can you please post what is on line 4 of common.inc.php and all the related poll code in mypolls.php.
Have you set the poll path in the admin correctly?
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
29/05/2006 21:33:21
|
sandeepnasa
Newbie
Joined: 29/05/2006 16:38:42
Messages: 3
Offline
|
I get error here -
eval("echo \"$poll_login\";");
in common.inc.php n line 67
this is the rror when i execute poll/admin/index.php
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/pick22/poll/admin/common.inc.php(67) : eval()'d code on line 4
|
|
29/05/2006 21:36:02
|
sandeepnasa
Newbie
Joined: 29/05/2006 16:38:42
Messages: 3
Offline
|
and mypolls.php read as -
<?php
include_once "/home/sana0980/public_html/spy-remover/poll/poll_cookie.php";
?>
<html>
<body>
<?php
include_once "/home/sana0980/public_html/spy-remover/poll/booth.php";
//$mypollid = $php_poll->get_random_poll_id();
for ( $counter = 1; $counter <= 100; $counter += 1) {
if ($php_poll->is_valid_poll_id($counter))
{
$php_poll->set_template_set("popup");
$php_poll->set_max_bar_length(80);
echo $php_poll->display_poll($counter);
echo "<br>";
}
}
//$php_poll->set_template_set("popup");
//$php_poll->set_max_bar_length(80);
//if ($php_poll->is_valid_poll_id($mypollid)) {
// echo $php_poll->display_poll($mypollid);
//}
//poll_process("random");
?>
</body>
</html>
|
|
29/05/2006 23:24:05
|
Auron
Expert
Joined: 23/06/2003 22:02:17
Messages: 1053
Offline
|
If you look at the demo polls on this site its (not sure tbh though)...
set_templateset not set_template_set IIRC.
Not sure about the other error though. Give Carbonize a PM asking him to have a look at this thread.
|
Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought) |
|
30/05/2006 23:11:26
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/pick22/poll/admin/common.inc.php(67) : eval()'d code on line 4
That means that there is an error on line 4 of the code that it is trying to evaluate on line 67 of common.inc.php
I would download the files and have a look but he has removed 2.0.4 and has uploaded a beta version of 2.0.5. Send me common.inc.php and I will look at it. webmaster [at] carbonize . co . uk
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|