Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

UserDefinedForms MissingArgument Error


Go to End
Reply


2 Posts   1652 Views

Avatar
senica

Community Member, 18 Posts

24 June 2010 at 2:26am

I have UserDefinedForms installed and calling it in my Template with $Form

It was working. I know I tested the form. Now it's not. I reuploaded the entire userforms folder and rebuilt with /dev/build/?flush=1

Still not working.

I get the error:

[Warning] Missing argument 1 for ViewableData::getField(), called in D:\sites\drawing-office.com\www.drawing-office.com\web\content\newsite\sapphire\core\ViewableData.php on line 112 and defined
GET /newsite/index.php/contact-us/finished?referrer=http%3A%2F%2Fwww.drawing-office.com%2Fnewsite%2Findex.php%2Fbuilding-applications-and-building-regulations%2F

Line 151 in D:\sites\drawing-office.com\www.drawing-office.com\web\content\newsite\sapphire\core\ViewableData.php

Source

142 		return property_exists($this, $field);
143 	}
144 	
145 	/**
146 	 * Get the value of a field on this object. This should be overloaded in child classes.
147 	 *
148 	 * @param string $field
149 	 * @return mixed
150 	 */
151 	public function getField($field) {
152 		return $this->$field;
153 	}
154 	
155 	/**
156 	 * Set a field on this object. This should be overloaded in child classes.

What happened?!

Avatar
senica

Community Member, 18 Posts

24 June 2010 at 2:49am

fixed my problem.

The issue was the in my template I was trying to build the form instead of calling just $Form. So I had commented those out with HTML comments and apparently they were still being read.