formfields.com Forum Index formfields.com
FORMfields Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fatal error - line 513

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports
View previous topic :: View next topic  
Author Message
JCF1976



Joined: 11 Nov 2005
Posts: 20

PostPosted: Mon Jul 17, 2006 6:22 am    Post subject: Fatal error - line 513 Reply with quote

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
View user's profile Send private message
formfields



Joined: 01 Aug 2005
Posts: 465

PostPosted: Mon Jul 17, 2006 11:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
JCF1976



Joined: 11 Nov 2005
Posts: 20

PostPosted: Tue Jul 18, 2006 3:48 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    formfields.com Forum Index -> FF 2.X - Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group