Re: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread g0thic

Thanks!

That solved that one.. Now just a few more.. But with a different subject.

On 4/12/01 12:34 AM, "Taylor, Stewart" <[EMAIL PROTECTED]>
wrote:

> This error suggests the $tpl is undefined i.e. you forget to create it using
> new.
> 
> -Stewart
> 
> -Original Message-
> From: g0thic [mailto:[EMAIL PROTECTED]]
> Sent: 12 April 2001 01:17
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] HELP with (Fatal Error: Call to a member function on a
> non-object)
> 
> 
> Hi guys,
> 
>   Below is the error message that I am receiving, and 3 or 4 lines around
> the code that seems to be causing the issue.  Lines are numbered so it gives
> you a good idea of line 183.  What I need to know, is in my context, what is
> the error saying, and if there is a variable (or function or class) to
> define, how can I tell which one it is?
> 
> Fatal error: Call to a member function on a non-object in
> /home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183
> 
> 178-  if($seditFileErr == "")
> 179-  {
> 180-// Load primary key and form parameters
> 181-$fldf_id = get_param("f_id");
> 182-$fldu_id = get_param("u_id");
> 183-$tpl->set_var("Trn_u_id", get_param("u_id"));
> 184-$pf_id = get_param("f_id");
> 185-$tpl->set_var("editFileError", "");
> 186-  }
> 
> Get_param is a function to get the variable "u_id" that would have been sent
> back with the page url (e.g.: page.php?u_id=3993)
> 
> Any ideas?
> 
> Cheers,
> 
> Sean
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-12 Thread Taylor, Stewart

This error suggests the $tpl is undefined i.e. you forget to create it using
new.

-Stewart

-Original Message-
From: g0thic [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2001 01:17
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] HELP with (Fatal Error: Call to a member function on a
non-object)


Hi guys,

Below is the error message that I am receiving, and 3 or 4 lines around
the code that seems to be causing the issue.  Lines are numbered so it gives
you a good idea of line 183.  What I need to know, is in my context, what is
the error saying, and if there is a variable (or function or class) to
define, how can I tell which one it is?

Fatal error: Call to a member function on a non-object in
/home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183

178-  if($seditFileErr == "")
179-  {
180-// Load primary key and form parameters
181-$fldf_id = get_param("f_id");
182-$fldu_id = get_param("u_id");
183-$tpl->set_var("Trn_u_id", get_param("u_id"));
184-$pf_id = get_param("f_id");
185-$tpl->set_var("editFileError", "");
186-  }

Get_param is a function to get the variable "u_id" that would have been sent
back with the page url (e.g.: page.php?u_id=3993)

Any ideas?

Cheers,

Sean


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] HELP with (Fatal Error: Call to a member function on a non-object)

2001-04-11 Thread Brian Clark


Hi g0thic,

@ 8:17:24 PM on 4/11/2001, g0thic wrote:

...
> Fatal error: Call to a member function on a non-object in
> /home/httpd/www/g0thic/cawood_a4/edit_f.php on line 183

> 178-  if($seditFileErr == "")
> 179-  {
> 180-// Load primary key and form parameters
> 181-$fldf_id = get_param("f_id");
> 182-$fldu_id = get_param("u_id");
> 183-$tpl->set_var("Trn_u_id", get_param("u_id"));

Is $tpl actually an defined as an object some place in the file? If
this snippet is inside of a function, $tpl might need to be made
global.

> 184-$pf_id = get_param("f_id");
> 185-$tpl->set_var("editFileError", "");
> 186-  }

> Get_param is a function to get the variable "u_id" that would have been sent
> back with the page url (e.g.: page.php?u_id=3993)


-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please do not carbon copy me on list replies.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]