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 
Advanced Poll Does Not Work Properly From A Subdirectory  XML
Forum Index » Support Forum
Author Message
PFDogs
Beginner

Joined: 15/11/2004 20:55:31
Messages: 7
Offline

This is gonna be hard to explain, but here I go:

My site is located at http://www.mysite.com/mypage/

Advanced Poll has been installed to http://www.mysite.vom/mypage/poll and is working properly.

Here is the problem: When I click on the Vote or View Results buttons from http://www.mysite.com/mypage/index.php, the poll works fine. But when I click on the Vote or View Results buttons from http://www.mysite.com/mypage/ it says "http://www.mysite.com/mypage/mypage could not be found"!!!

The Vote and View Results links are not being generated properly. Is there a way to fix this?
amber222
Graduate

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

Check the base url setting in the include/config.inc.php file.




If it doesn't help, post again.
Anonymous



Thanks for the reply, amber222.

I do not have those lines in my include/config.inc.php file. Should I add them?

Here is a copy of my current include/config.inc.php file:

<?php
/**
*
* MySQL -> class_mysql.php
* PostgreSQL -> class_pgsql.php
*
*/

$POLLDB["dbName"] = "****";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "*****";
$POLLDB["pass"] = "*****";
$POLLDB["class"] = "class_mysql.php";


/* tables */

$POLLTBL["poll_config"] = "poll_config";
$POLLTBL["poll_index"] = "poll_index";
$POLLTBL["poll_data"] = "poll_data";
$POLLTBL["poll_ip"] = "poll_ip";
$POLLTBL["poll_log"] = "poll_log";
$POLLTBL["poll_comment"] = "poll_comment";
$POLLTBL["poll_user"] = "poll_user";
$POLLTBL["poll_tpl"] = "poll_templates";
$POLLTBL["poll_tplset"] = "poll_templateset";

?>
amber222
Graduate

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

No don't add anything there isn't already a space for. Hold off and see if Auron shows up or visit his site.
amber222
Graduate

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

Change it in the Admin Panel under General Settings.
Auron
Expert
[Avatar]

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

Do what Amber said straight after you login otherwise you'll get
redirected back the the login screen.

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

Joined: 15/11/2004 20:55:31
Messages: 7
Offline

Thanks for the help.

Both of of those settings are correct in the admin panel. Is there anything else I can do?
Auron
Expert
[Avatar]

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

Well, does it now work?

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

Joined: 15/11/2004 20:55:31
Messages: 7
Offline

It still does not work when the poll is used from http://www.mysite.com/mypage/

But it does work when the poll is used from http://www.mysite.com/mypage/index.php

Here is an example of the "View Results" links that are generated:

Not working: http://www.mysite.com/mypage/mypage?action=results&poll_ident=4 (That extra mypage part was not added by me! It was added by the poll!!!)

Working:
http://www.mysite.com/mypage/index.php?action=results&poll_ident=4
Anonymous



OK, I have setup I live example for you to see.

These are working links:

The poll will work from here: http://advancedpollerror.no-ip.info/mysite/index.php

But it will NOT work from here:
http://advancedpollerror.no-ip.info/mysite/

(FYI: Advanced Poll has been installed to http://advancedpollerror.no-ip.info/mysite/poll and the general URL settings are correct.)
PFDogs
Beginner

Joined: 15/11/2004 20:55:31
Messages: 7
Offline

Does anyone have any other suggestions???

Or is this just a bug???
Auron
Expert
[Avatar]

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

The link does work that you say isn't working.

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

Joined: 15/11/2004 20:55:31
Messages: 7
Offline

Of course the link works! Try to vote or view the results. That is what doesn't work.
amber222
Graduate

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

It's looking for a file named mysite, which doesn't exist.


Did you create two different files here? Why don't you post the poll code you are using. You can always xxx-out your username.
PFDogs
Beginner

Joined: 15/11/2004 20:55:31
Messages: 7
Offline

There is only one file and it's named index.php

Here is the code for index.php



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