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...

  1. Warning: Unable to access /textfile/poll_cookie.php in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 3  
  2.   
  3. (wrong path)  
  4.   
  5. Warning: Failed opening '/textfile/poll_cookie.php' for inclusion (include_path='') in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 3  
  6.   
  7. (wrong permission)  
  8.   
  9. Warning: Unable to access /textfile/booth.php in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 34  
  10.   
  11. (wrong path)  
  12.   
  13. Warning: Failed opening '/textfile/booth.php' for inclusion (include_path='') in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 34  
  14.   
  15. (wrong permission)  
  16.   
  17. Fatal error: Call to a member function on a non-object in /mnt/kw2/03/650/00000011/htdocs/vote.php on line 35  
  18.   
  19. (will most likely disappear when other problems are sorted)  

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"
  1. <TD WIDTH=170>  
  2.     <a href="javascript:onClick=OpenWindow('vote.php','voting','width=203,height=370')"><IMG  HEIGHT=150 WIDTH=170 SRC="./assets/images/your_pic.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0 ALT=""></A></TD>  


Yes, and this is the data content of the file "vote.php"
  1. <?php  
  2. // Important! You have to include it before your html code  
  3. include_once "/mnt/kw2/03/650/00000011/htdocs/poll/textfile/poll_cookie.php";  
  4. ?>  
  5. <HTML>  
  6. <HEAD>  
  7. <TITLE>Your Title</TITLE>  
  8. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">  
  9. <script language="JavaScript">  
  10. <!--  
  11.   
  12. <!--  
  13. function MM_reloadPage(init) {  //reloads the window if Nav4 resized  
  14.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {  
  15.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  
  16.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();  
  17. }  
  18. MM_reloadPage(true);  
  19. // -->  
  20.   
  21. function MM_closeBrWindow(winName) { //v2.0  
  22.   window.close(winName);  
  23. }  
  24. //-->  
  25. </script>  
  26. </HEAD>  
  27.   
  28. <BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#FF0000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">  
  29. <table width="205" border="0" cellspacing="0" cellpadding="0">  
  30.   <tr>   
  31.     <td align="center" valign="middle">   
  32. <?php  
  33. include_once "/mnt/kw2/03/650/00000011/htdocs/poll/textfile/booth.php";  
  34. echo $php_poll->poll_process(1);  
  35. ?>  
  36.     </td>  
  37.   </tr>  
  38.   <tr>  
  39.     <td>&nbsp;</td>  
  40.   </tr>  
  41.   <tr>   
  42.     <td><div align="center"><a href="javascript:;" onClick="window.close()">Window   
  43.         Close</a> </div></td>  
  44.   </tr>  
  45. </table>  
  46. </BODY>  
  47. </HTML>  


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...

  1. <script language="javascript" type="text/javascript">  
  2.   
  3. code, code and more code...  
  4.   
  5. </script>  


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

  1. <?php  
  2. // Important! You have to include it before your html code  
  3. include_once "/mnt/kw2/03/650/00000011/htdocs/poll/textfile/poll_cookie.php";  
  4. ?>  
  5. <HTML>  
  6. <HEAD>  
  7. <TITLE>Your Title</TITLE>  
  8. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">  
  9. </HEAD>  
  10.   
  11. <BODY TEXT="#000000" LINK="#000000" VLINK="#000000" ALINK="#FF0000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">  
  12. <table width="205" border="0" cellspacing="0" cellpadding="0">  
  13.   <tr>   
  14.     <td align="center" valign="middle">   
  15. <?php  
  16. include_once "/mnt/kw2/03/650/00000011/htdocs/poll/textfile/booth.php";  
  17. echo $php_poll->poll_process(1);  
  18. ?>  
  19.     </td>  
  20.   </tr>  
  21.   <tr>  
  22.     <td>&nbsp;</td>  
  23.   </tr>  
  24.   <tr>   
  25.     <td><div align="center"><a href="javascript:;" onClick="window.close()">Window   
  26.         Close</a> </div></td>  
  27.   </tr>  
  28. </table>  
  29. </BODY>  
  30. </HTML>  


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