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 
Probs with APoll 2.02  XML
Forum Index » Support Forum
Author Message
Mastercloser2
Beginner

Joined: 10/08/2004 22:07:18
Messages: 5
Offline

Hi,

please excuses my English
The program worked always well, but since some days I get the following error message with the employment of Advanced Poll 2.02:


Warning: Unable to access /textfile/poll_cookie.php in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 3

Warning: Failed opening '/textfile/poll_cookie.php' for inclusion (include_path='') in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 3

Warning: Unable to access /textfile/booth.php in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 34

Warning: Failed opening '/textfile/booth.php' for inclusion (include_path='') in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 34

Fatal error: Call to a member function on a non-object in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 35


Any ideas?

Helge
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

If you still have this problem, why don't you include a link to your page with the poll on it. Perhaps someone can see it and come up with a solution. Are cookies turned on in your browser?
Auron
Expert
[Avatar]

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

Have you set all the permissions correctly?

_ 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]
Mastercloser2
Beginner

Joined: 10/08/2004 22:07:18
Messages: 5
Offline

Hi,

the url is www.beat-fabrik.de, the site-lanuage is german. Yoy can find the poll, when you click on the middle picture with the questionmark. In the new popup-window is the error-massage.
In the last months there were no changes in the code.

The following code calls the polling-function:

<BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#FF0000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table width="205" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="middle">
<?php
include_once "/mnt/ls1/03/393/00000022/htdocs/poll/textfile/booth.php";
echo $php_poll->poll_process(1);
?>
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><div align="center"><a href="javascript:;" onClick="window.close()">Window
Close</a> </div></td>
</tr>
</table>
</BODY>


Helge
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Sounds like it's a path problem, or like Auron said, the permissions. You should double-check those.

Looking at those exact lines on the vote.php file should give you a clue, i.e., lines 3, 34 and 35.

You stated the following code calls the polling-function:

<?php
include_once "/mnt/ls1/03/393/00000022/htdocs/poll/textfile/booth.php";
echo $php_poll->poll_process(1);
?>


Wow, that is a very long path. If, in Admin, you click on help, is it giving you this same string?

From the error messages, it seems to me it is looking in the wrong place.
Auron, if you read this, should that "vote.php" be at the end? It sounds like it's searching for the cookie file in the vote.php file.

Warning: Unable to access /textfile/poll_cookie.php in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 3

Warning: Failed opening '/textfile/booth.php' for inclusion (include_path='') in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 34
Auron
Expert
[Avatar]

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

vote.php is the file contain the include statements so it should be there.

All I can say is double check the paths.

Edit...

these are errors i get as of just now...


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]
Mastercloser2
Beginner

Joined: 10/08/2004 22:07:18
Messages: 5
Offline

OK, the solution is, the path was wrong. But why? No idea, the code was not changed.
Many thanks for your help

Greets from Germany,

Helge
Auron
Expert
[Avatar]

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

So, you changed the path and it worked?

For some reason adv poll uses/needs part of the full path. For the path
you should use look at the last page of the admin panel (last icon to the
right on the menu). Its one of those things that you have to tweak until
it just works

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]
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Very impressive.

Now maybe you will post some instructions to share with other people who don't know how to get their poll in a pop-up window like that?
Mastercloser2
Beginner

Joined: 10/08/2004 22:07:18
Messages: 5
Offline

So, you changed the path and it worked?

Yes, it's as simple as that..

Now maybe you will post some instructions to share with other people who don't know how to get their poll in a pop-up window like that?


That's fine by me.

The following code opens a window and starts the file "vote.php"


Yes, and this is the data content of the file "vote.php"


HTH

Helge
Auron
Expert
[Avatar]

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

Thanks for posting that i'm sure people in the future will that uesful

_ 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]
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Thanks a lot. I'm sure somebody can use this - in fact I thought I saw a post last week asking about javascript.

Just one last question - you don't have to put any special code at the top of the document pertaining to javascript language?
Auron
Expert
[Avatar]

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

I'm not actually sure what that script does apart from if the window gets
resized by nn4 it reloads the page. My conclusion is that there must be some code on the page the window is opened from, But looking at the code that opens the window there is nothing to suggest that.

If you mean the <script.... bit then i read somewhere about the w3c having something linked to this. Your best bet is to go with...



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]
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Yea, that's what I'm talking about. Thanks.
Mastercloser2
Beginner

Joined: 10/08/2004 22:07:18
Messages: 5
Offline

Oh, sorry, but the Javascript-part isn't important.
Mostly i use a template, i forgot to delete this Javascript-code.

I think, so is it better



Helge
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum