Re: HELP with (Fatal Error: Call to a member function on a non-object)
| From: | Brian Clark | Date: | Thu, 12 Apr 2001 00:43:54 +0000 |
| Subject: | Re: HELP with (Fatal Error: Call to a member function on a non-object) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48223@lists.php.net to get a copy of this message | ||
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.