vizion2000 Posted May 15, 2007 Share Posted May 15, 2007 I am very new to php :-[and am trying to run a php program on freebsd 6.1 version php5-5.2.1_3, apache-2.2.4_2 I am getting multiple errors, reported in httpd-error.log similar to the one shown below and have no idea how to begin tracing the problems. Some of the following facts may/may not be relevant: :-\ 1. The code is being run successfully by others but I have not, so far, found anyone running it on the same version of php. 2. The code is from groupjivefb http://www.shaeleighland.com/ downloads area groupjivefb.zip which is a modification of the groupjive compoment for joomla. I have reported the problem but it is only a small group of people. So far no one has been able to replicate the difficulty. 3. Could the error gave something to do with the version of php I am running? I have no means of testing for that. 4. I have no idea how to set up an environment to test/trace php code for debugging purposes. I appreciate I am asking a lot but if anyone could be kind enough to help or point me in the right direction it would be much appreciated.: Here is one example: Notice: Undefined variable: row in /usr2/virtualwebs/methuselaproject.org/components/com_groupjivefb/groupjivefb.html.php on line 67 Notice: Trying to get property of non-object in /usr2/virtualwebs/methuselaproject.org/components/com_groupjivefb/groupjivefb.html.php on line 67 The following lines appear in the source code around line 67 within a declaration of "function newgroup" in "class HTML_wg": $tmpl->addvar( 'newgroup', 'GJ_MESSAGE', $message ); $tmpl->addvar( 'newgroup', 'GJ_GROUPNAME', $gj_groupname ); # the next line is line 67 $tmpl->addvar( 'newgroup', 'GJ_DESCR', $row->descr ); Thanks in advance for getting me started on tracing the problem david Link to comment https://forums.phpfreaks.com/topic/51471-undefined-variable-trying-to-get-property-of-non-object-errors/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.