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 
Error in Advanced Poll  XML
Forum Index » Support Forum
Author Message
Anonymous



I have the next error:

This is the file:
<?
#################################################################################################
#
# project : Alsou-Club.spb.ru
# filename : config.php
# version : 1.01
# last modified by : Kuzmik Maxim
# e-mail : support@eyfel.ru
# purpose : Pool page
# last modified : 01.04.2004
#
#################################################################################################
?>

<?
/* Include this before your html code */
include "poll_cookie.php";
?>

<?

/* path */
$poll_path = "D:/Program Files/Apache Group/Apache2/htdocs/";

require $poll_path."/include/config.inc.php";
require $poll_path."/include/class_mysql.php";
require $poll_path."/include/class_poll.php";
require $poll_path."/include/class_pollcomment.php";
require $poll_path."/include/class_plist.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new plist();

/* poll */
$php_poll->set_template_set("plain");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
if (isset($HTTP_GET_VARS['poll_id'])) {
echo $php_poll->poll_process($HTTP_GET_VARS['poll_id']);
} else {
echo $php_poll->poll_process("random");
}

/* poll list */
$php_poll->set_template("poll_list");
$php_poll->set_date_format("m/d/Y");
echo $php_poll->view_poll_list();
echo $php_poll->get_list_pages();

?>

The I get this file like http://localhost/viewpool.php - it's work fine..

But the i get this file on other file like
<?
require("viewpool.php");
?>
it's get the error
Fatal error: Call to a member function on a non-object in D:\Program Files\Apache Group\Apache2\htdocs\include\class_poll.php on line 41

How can I fix this?

Thank's
Pan
Newbie

Joined: 23/03/2004 06:46:45
Messages: 3
Offline

Maybe by removing the / after htdocs. If needed elsewhere, then remove the extra / in the require.


After the / removal:
Try it and give us feedback.
Anonymous



maybe very stupid but what do I need to add exactly after "$poll_path =" ?
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum