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 
Advance Poll 2.02  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello
I'm using Advance Poll 2.02 but when I add the following to my page:

<?php
include_once "/home/www/broadcasttech/web/poll/db/booth.php";echo $php_poll->poll_process(3);
?>


I get the following :

Warning: Failed opening '/home/www/broadcasttech/web/indexp.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0


Now I'm using Apache 1.3.27 with mod_layout. I have renamed my page from .html to .php. When I open this page in a directory that mod_layout is not installed I do get the poll. BUT when I open demo_1.php it works under a directory where mod_layout is installed also when I go through the Template section of the admin and I preview it also works.

To see it work go to
http://www.broadcasttech.net/1/indexp.php
This is where mod_layout is not installed.

To see it not work go to
http://www.broadcasttech.net/indexp.php
This is where mod_layout is installed

Any ideas?
Auron
Expert
[Avatar]

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

Where did you install Adv. Poll under the 1 directory or you main directory where your main index.php is located because the errors says it can't find a file so something is either in the wrong place or the path/URL is wrong somewhere.

Are you using the MySQL or TextFile version?

:: Latest ::

After doing a view source of the page you say it doesn't work on no wonder it doesn't!!! First lots of white space before the first opening <html> but I'm not sure it matters unless you insert the Cookie Code and secondly why have you got two sets of <html>...</html> and <head>...</head> no wonder it can't find it.

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]
Anonymous



The Adv Poll is installed in the /poll/db directory.

I'm using the MYSQL version.

The double <HEAD> tags are from the Apache mod mod_Layout that attaches the top part to every page from server.

One other example of where it works with mod_layout is here,
http://www.broadcasttech.net/poll/db/demo_1.php

I'm not too sure if this is a Advance Poll problem. It could be a mod_layout problem or a php problem but since I have both and I havent had any problems I was looking at Advance Poll peing the issue. Also the error that comes up:
...(include_path='.:/usr/local/lib/php')..


tells me php may not be installed properly although I have phpBB working.

I assume this error is looking for the php.ini(?), but it is not located there it is located at /etc/php4/apache/.

Any help appreciated.
Auron
Expert
[Avatar]

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

If phpBB works then the php.ini file can be definitely found i think. As it says failed opening maybe you missed or forgot one of the file permissions or typed it wrong something thats all I can think of at the moment.

one thing i just thought of that is that it cna't find indep.php if that is located under your root directory in a folder named 1 and the main index page is located in the same place as the 1 folder maybe you need to copy indexp.php to your root folder.

E.g.

root/1/indexp.php OKAY
root/indexp.php NOT KNOAY

Copy stuff from first one to second one.

??????????

Now I beginning to think your right about the php.ini try moving out of the server root completely try phpBB and then poll and then put it back and try them again. Just some debugging idea I had a while back.

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]
Anonymous



The two indexp.php filer are exactely the same; The

root/1/indexp.php has mod_layout disabled, that is why you see a page with a white backgroung

root/indexp.php has mod_layout enabled, that is wht the page is green with a footer and a header.

I will try to move the php.ini completely and try phpBB. I'll let you know what happens.

Thanks.
Auron
Expert
[Avatar]

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

Have you ever thought of using PHP include files to fill in headers, footers and style blocks that are repeatedly used? Instead of the mod_layout which to me sounds like a Perl/CGI script, right? If your concerned with having extra files that people could view on their own when they're not meant to be you can use a .htaccess file.

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]
Anonymous



Well I finally got this working.
The error I originally had when calling the php page under mod_layout was something like this:
failed to open stream: Permission denied in Unknown on line 0


I had to place the php.ini file in the correct location so that it could be found by php.
I also upgraded to the latest stable php ver 4.3.2. I had 4.2.3.
Then stop and start Apache. Restart did not do it.

After this I still got the error.

I then changed the permissions to 777 for this page and it worked. I then changed the permissions back to 755, stopped and started Apache and it still works.

Well I’m happy now I can use polls of my site. YEAH!!!!!
Auron
Expert
[Avatar]

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

I had the same problem under Apache 2.0.45 and installing phpBB2 coz I needed register_globals and it couldn't find the damn php.ini file also when you get the PHP script engine download the file is actually called php.recommended.ini not php.ini big pain in the neck that was. Glad you got it working though!

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