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 
Incorrect Results Poll URL  XML
Forum Index » Support Forum
Author Message
proxyjlc
Newbie

Joined: 27/05/2006 21:41:33
Messages: 4
Offline

I have installed Advanced Poll 2.03. When I access the home page the the poll is posted properly at the URL:

"www.mydomain.org/public/pages/index.php"

After I select a radio button and click on "Vote" I receive a "404" server error which tells me that the file cannot be found. Upon exmination I discover that the URL has been truncated when the "results" are returned. The returnd URL is

"www.mydomain.org/public/index.php"

This URL is different from the initial URL. It is clear that Advanced Poll 2.03 does not expect the "poll.php" to be located in a subdirectory. I pulled the poll out of the subdirectory "pages" and discovered that the "results" are properly displayed, the URL is the same, and everything works fine. I need to change the code so that the URL is the same before and after the vote. How do I help Advanced Poll acknowledge the existence of the subdirectory? Where do I go to correct the situation?

Thanks,

--- John
[WWW]
Auron
Expert
[Avatar]

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

In the poll admin panel there is a poll path setting under general settings.
Try setting that or setting it to different path's to see if that solves the problem.

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]
proxyjlc
Newbie

Joined: 27/05/2006 21:41:33
Messages: 4
Offline

I found the file "admin_settings.php" but could not find the poll path.

However, in "admin_embed.php" there is a line which reads

$path = dirname(__file__);

It appears the directiry name is pulled from a file. Is this the line you are referring to?

--- John

--- John
[WWW]
Auron
Expert
[Avatar]

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

No, you should be able to browser to the admin panel like this...

http://www.yousite.com/poll/admin/

You'll have to check your directory structure for where /admin is.
Once there you can configure your poll path.

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]
proxyjlc
Newbie

Joined: 27/05/2006 21:41:33
Messages: 4
Offline

I found the "General Settings" and the "URL to poll director" textarea. I changed the directory so that it points to the directory in which the calling page exists. But I still received a server error. Where do I go next? Thanks.

--- John
[WWW]
Auron
Expert
[Avatar]

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

is your poll pathe /public/pages/poll/

ie to your poll installation.

Another thought is there might be a form tag in the poll (before you vote) where a return address is stored.

You may also wish to download and install version 2.0.5-dev from this site as this may solve your problem with version 2.0.3.

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]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum