[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-admin
Subject:    [ADMIN] php newbie :   non-object problem
From:       "Kalyan (FS)" <kalyan () frontline ! com ! sg>
Date:       2003-09-27 10:52:31
[Download RAW message or body]

Hi,
   I have installed & configured (as per the instructions specified by
Gforge installation document ) Postgresql - 7.2.4, apache 1.3.28, php 4.3.3
with Gforge 3.0.  All my configuration steps passed without any error.

But when I am trying to access index.php (/var/www/gforge-3.0/www/index.php)
it gives the error message...


Fatal error: Call to a member function on a non-object in
/var/www/gforge-3.0/www/index.php on line 19

There is no information in the error_log, access_log for apache and also no
error in the Postgres log.

  This is the source code for index.php (provided by
forge)  -----------------------------------------------------------
  <?php
  /**
    *
    * SourceForge Front Page
    *
    * SourceForge: Breaking Down the Barriers to Open Source Development
    * Copyright 1999-2001 (c) VA Linux Systems
    * http://sourceforge.net
    *
    * @version   $Id: index.php.patched,v 1.1.2.1 2002/11/30 09:57:57 cbayle
Exp $
    *
    */

  require_once('www/include/pre.php');    // Initial db and session library,
opens session
  require_once('www/news/news_utils.php');
  require_once('common/forum/Forum.class');
  require_once('www/include/features_boxes.php');


$HTML->header(array('title'=>$Language->getText('index','welcome'),'pagename
'=>'home'));    //This is line 19

  // Main page content is now themeable;
  // Default is index_std.php;
  include ( $HTML->getRootIndex() );

  $HTML->footer(array());
  ?>
  -------------------------------------------------- until here
  Please help me.  Thanks in advance,

  Regards,
  Kalyan.


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY style="COLOR: #000000; FONT-FAMILY: Arial">
<DIV><SPAN class=471543610-27092003><FONT size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2>&nbsp;&nbsp; I have installed 
&amp; configured (as per the instructions specified by Gforge installation 
document ) Postgresql - 7.2.4, apache 1.3.28, php 4.3.3 with Gforge 3.0.&nbsp; 
All my configuration steps passed without any error.</FONT></SPAN></DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2>But when I am trying to access 
index.php (/var/www/gforge-3.0/www/index.php) it gives the error 
message...</FONT></SPAN></DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=471543610-27092003><STRONG>Fatal error</STRONG>: Call to a 
member function on a non-object in <B>/var/www/gforge-3.0/www/index.php</B> on 
line <STRONG>19</STRONG></SPAN></DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=471543610-27092003><FONT size=2>There is no information in the 
error_log, access_log for apache and also no error in the Postgres 
log.&nbsp;</FONT><BR></DIV></SPAN>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><SPAN class=471543610-27092003><FONT size=2>This is the source code for 
  index.php (provided by Gforge)&nbsp; 
  -----------------------------------------------------------</FONT></SPAN></DIV>
  <DIV><SPAN class=471543610-27092003><FONT size=2>&lt;?php<BR>/**<BR>&nbsp; 
  *<BR>&nbsp; * SourceForge Front Page<BR>&nbsp; *<BR>&nbsp; * SourceForge: 
  Breaking Down the Barriers to Open Source Development<BR>&nbsp; * Copyright 
  1999-2001 (c) VA Linux Systems<BR>&nbsp; * <A 
  href="http://sourceforge.net">http://sourceforge.net</A><BR>&nbsp; *<BR>&nbsp; 
  * @version&nbsp;&nbsp; $Id: index.php.patched,v 1.1.2.1 2002/11/30 09:57:57 
  cbayle Exp $<BR>&nbsp; *<BR>&nbsp; */</FONT></SPAN></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=471543610-27092003><FONT 
  size=2>require_once('www/include/pre.php');&nbsp;&nbsp;&nbsp; // Initial db 
  and session library, opens 
  session<BR>require_once('www/news/news_utils.php');<BR>require_once('common/forum/Fo \
rum.class');<BR>require_once('www/include/features_boxes.php');</FONT></SPAN></DIV>  \
<DIV><FONT size=2></FONT>&nbsp;</DIV>  <DIV><SPAN class=471543610-27092003><FONT 
  size=2><STRONG>$HTML-&gt;header(array('title'=&gt;$Language-&gt;getText('index','welcome'),'pagename'=&gt;'home'));&nbsp;&nbsp;&nbsp; \
  //This is line 19</STRONG></FONT></SPAN></DIV>
  <DIV><FONT size=2><STRONG></STRONG></FONT>&nbsp;</DIV>
  <DIV><SPAN class=471543610-27092003><FONT size=2>// Main page content is now 
  themeable;<BR>// Default is index_std.php;<BR>include ( 
  $HTML-&gt;getRootIndex() );</FONT></SPAN></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN class=471543610-27092003><FONT 
  size=2>$HTML-&gt;footer(array());</FONT></SPAN></DIV>
  <DIV><SPAN class=471543610-27092003><FONT size=2>?&gt;</FONT></SPAN></DIV>
  <DIV><SPAN class=471543610-27092003><FONT 
  size=2>-------------------------------------------------- until 
  here</FONT></SPAN></DIV></BLOCKQUOTE>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><SPAN class=471543610-27092003><FONT size=2>Please help me.&nbsp; Thanks 
  in advance,</FONT></SPAN></DIV>
  <DIV><SPAN class=471543610-27092003><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=471543610-27092003><FONT size=2>Regards,</FONT></SPAN></DIV>
  <DIV><SPAN class=471543610-27092003><FONT size=2>Kalyan.</FONT></SPAN></DIV>
  <DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic