dawber
Posts: 25
|
| Posted: 01/16/2005, 6:13 PM |
|
Browser displays this message when I open the page /var/www/html/t/maint.php :
Fatal error: Call to a member function on a non-object in /var/www/html/t/header_events.php on line 15
In /var/www/html/t/header_events.php
line 15: $header->User_LName_Label_2->SetValue($result);
The header_events.php was generated by CCS when I added some DLookup functions in the header.php
The actual /var/www/html/t/header.php is used by:
/var/www/html/t/maint.php
/var/www/html/t/view.php
/var/www/html/t/add.php
/var/www/html/t/report.php
and many more.
But I ONLY get the above Fatal error in
/var/www/html/t/maint.php
and NOT when I open the other pages.
The "User_LName_Label_2" is the name of a
label and it is only used in header and not
in any other files. Huh??
I don't know what to do.
Please help.
|
 |
 |
Last Hero
|
| Posted: 01/17/2005, 2:25 AM |
|
Does include page control in main page have name "header"?
|
|
|
 |
dawber
Posts: 25
|
| Posted: 01/17/2005, 2:33 AM |
|
The name of the control in the include page is "User_LName_Label_2"
The name of the include page is "header"
The main page is "maint"
|
 |
 |
Last Hero
|
| Posted: 01/17/2005, 4:55 AM |
|
Do you use global $header?
Please provide all event code.
|
|
|
 |
SteveG
Posts: 56
|
| Posted: 02/13/2005, 10:05 AM |
|
You may want to try building the code using the Event / Add Actions. For a while I used to do it that way just to learn the proper syntax.
|
 |
 |