Hi,
I've been struggling with this one for the past 5-6 hours and I've no idea where I'm going wrong, any help is greatly appreciated.
I've installed and setup the login package and that is all functioning well, as is the register functionality. I then installed the classExtender so that I can add in some extra fields on the registration and I've called it like this using the posthook..
[[!Register?
&submitVar=`loginRegisterBtn`
...
&placeholderPrefix=`reg.`
&usernameField=`email`
&useExtended=`0`
&postHooks=`ExtUserRegisterPosthook`
]]
I'm also currently just using the test data fields (title, firstName, lastName) supplied with classExtender so my form looks roughly like this..
<form action="[[~[[*id]]]]" method="post" id="register-form">
<label for="email">Email</label>
<input type="text" name="email" id="email" value="[[!+reg.email]]" />
<label for="password">Password</label>
<input type="password" name="password" id="password" value="[[!+reg.password]]" />
<label for="title">Title</label>
<input type="text" name="title" id="title" value="[[!+reg.title]]">
<label for="first-name">First Name</label>
<input type="text" name="firstName" id="firstName" value="[[!+reg.firstName]]">
<label for="last-name">Last Name</label>
<input type="text" name="lastName" id="lastName" value="[[!+reg.lastName]]">
<input type="submit" class="button" name="loginRegisterBtn" value="Register">
</form>
However on submission I'm getting this error:
Fatal error: Call to a member function get() on a non-object in ***mydomain***/core/cache/includes/elements/modsnippet/66.include.cache.php on line 67
Any ideas what I'm missing?
Thanks,