| View previous topic :: View next topic |
| Author |
Message |
JCF1976
Joined: 11 Nov 2005 Posts: 20
|
Posted: Mon Jul 17, 2006 6:22 am Post subject: Fatal error - line 513 |
|
|
I have an urgent issue to fix. I have a form set up on my site. I am getting the following error on the page with my form:
Fatal error: Call to a member function on a non-object in /home/mysite/public_html/assets/FORMfields/FORMfields.php on line 513
This error apparently has something to do with:
| Code: |
function getLabelTag($name) {
return $this->formFields[$name]->getLabelTag();
} |
|
|
| Back to top |
|
 |
formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Mon Jul 17, 2006 11:32 pm Post subject: |
|
|
This error is most likely occuring because the field name you are using is incorrect. Please recall that this field name is case sensitive. For if you have the following field:
| Code: |
...
$formBean->addField(new TextField("text", "Text Field", NOT_REQUIRED, 20, 4, null));
...
|
the following calls (or any other function that takes a field name) will fail:
| Code: |
...
echo $formBean->getValue("Text");
...
|
or
| Code: |
...
echo $formBean->getValue("wrongName");
...
|
|
|
| Back to top |
|
 |
JCF1976
Joined: 11 Nov 2005 Posts: 20
|
Posted: Tue Jul 18, 2006 3:48 am Post subject: |
|
|
| formfields wrote: |
This error is most likely occuring because the field name you are using is incorrect. Please recall that this field name is case sensitive. For if you have the following field:
| Code: |
...
$formBean->addField(new TextField("text", "Text Field", NOT_REQUIRED, 20, 4, null));
...
|
the following calls (or any other function that takes a field name) will fail:
| Code: |
...
echo $formBean->getValue("Text");
...
|
or
| Code: |
...
echo $formBean->getValue("wrongName");
...
|
|
Thank you!!! You were right!!! I had differences in the field names - where one would be capitalized and the other was not. |
|
| Back to top |
|
 |
|