Data not retrieved using mambot and plugin CB Profile

jvos 10 Apr, 2009
Hi,

I use Joomla 1.0.12 and the related component and mambot of Chronoforms.

I defined a content item, containing:
"{chronocontact}frmReportCompliance1{/chronocontact}
{chronocontact}frmReportCompliance2{/chronocontact} "

The result: http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/.

Problem: in the lower part of the page, the email address is not taken from 'jos_users'.

See here the links to the two forms in the content item, accessed out of the backend:
- http://www.demo.nl/index.php?option=com_chronocontact&chronoformname=frmReportCompliance1
- http://www.demo.nl/index.php?option=com_chronocontact&chronoformname=frmReportCompliance2

So the latter one gives a different outcome!

Any help on this?

Regards,
Jacob
jvos 10 Apr, 2009
Additional information:

I have the following lines in the Apache error log:

[Fri Apr 10 11:28:53 2009] [error] [client 212.45.53.58] PHP Notice: Constant _ISO already defined in /home/demo01/domains/demo.nl/public_html/www/language/english.php on line 586, referer: http://www.demo.nl/index.php?searchword=compliance&option=com_search&Itemid=
[Fri Apr 10 11:28:53 2009] [error] [client 212.45.53.58] PHP Notice: Undefined variable: imver in /home/demo01/domains/demo.nl/public_html/www/mambots/content/chronocontact.php on line 200, referer: http://www.demo.nl/index.php?searchword=compliance&option=com_search&Itemid=
[Fri Apr 10 11:28:53 2009] [error] [client 212.45.53.58] PHP Notice: Undefined offset: 0 in /home/demo01/domains/demo.nl/public_html/www/components/com_chronocontact/plugins/cf_profile.php on line 103, referer: http://www.demo.nl/index.php?searchword=compliance&option=com_search&Itemid=
[Fri Apr 10 11:28:53 2009] [error] [client 212.45.53.58] PHP Notice: Trying to get property of non-object in /home/demo01/domains/demo.nl/public_html/www/components/com_chronocontact/plugins/cf_profile.php on line 108, referer: http://www.demo.nl/index.php?searchword=compliance&option=com_search&Itemid=
[Fri Apr 10 11:28:53 2009] [error] [client 212.45.53.58] PHP Notice: Undefined variable: imver in /home/demo01/domains/demo.nl/public_html/www/mambots/content/chronocontact.php on line 200, referer: http://www.demo.nl/index.php?searchword=compliance&option=com_search&Itemid=

And in the Apache usage log:

212.45.53.58 - - [10/Apr/2009:11:28:53 +0200] "GET /templates/demo_template_2007/images/demo_logo_left.jpg HTTP/1.0" 200 17708 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:53 +0200] "GET /templates/demo_template_2007/images/home.gif HTTP/1.0" 200 276 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:53 +0200] "GET /images/M_images/emailButton.png HTTP/1.0" 200 424 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:53 +0200] "GET /templates/demo_template_2007/images/demo_logo_right.jpg HTTP/1.0" 200 32956 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:53 +0200] "GET /components/com_chronocontact/js/prototype.js HTTP/1.0" 200 22037 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:54 +0200] "GET /components/com_chronocontact/js/effects.js HTTP/1.0" 200 8878 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:54 +0200] "GET /components/com_chronocontact/js/validation.js HTTP/1.0" 200 3461 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:54 +0200] "GET /components/com_chronocontact/js/prototype.js HTTP/1.0" 200 22037 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:54 +0200] "GET /components/com_chronocontact/js/effects.js HTTP/1.0" 200 8878 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"
212.45.53.58 - - [10/Apr/2009:11:28:55 +0200] "GET /components/com_chronocontact/js/validation.js HTTP/1.0" 200 3461 "http://www.demo.nl/Knowledge_centre/Certification/Compliance_20070913118/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"

Jacob
GreyHead 10 Apr, 2009
Hi Jacob,

The link you posted to the problem page doesn't appear to show any forms at all??

Bob
GreyHead 14 Apr, 2009
Hi Jacob,

I'm not a great deal wiser. What's the form html for the lower form. WhenI view the form directly I see {email} in the field - that doesn't look right either.

Bob
jvos 14 Apr, 2009
Hi Bob,

The form must show a user's email address, and when you aren't logged on it will show the fieldname. Indeed this looks strange, but the form will only be available to registered users - when at least the problems are solved!

So, that you see "{email}" is correct.

This is the form html:

<fieldset>
<legend><p class="FormSection">Compliance Information</p></legend>
<table>
	<tr>
		<td class="FieldNameCell">Current experience</td>
		<td class="FieldCell"><textarea name="fldComments" rows="6" cols="57"></textarea></td>
	</tr>
	<tr>
		<td class="FieldNameCell">E-mail address *</td>
		<td colspan="2" class="FieldCell"><input name="fldPrivateEmailAddress" type="text" size="57" value="{email}"></td>
	</tr>
</table>
</fieldset>

<table width="600px">
	<tr>
		<td colspan="2" align="center">
			<br />
			<input type="submit" name="btnSubmit" class="button" value="Send application">
		</td>
	</tr>
</table>


Regards,
Jacob
GreyHead 14 Apr, 2009
Hi Jacob,

Maybe I'm missing something but I don't think that value='{email}' will do anything in the form html. If you need to set the user email here you'll have to look it up.

Bob
GreyHead 14 Apr, 2009
Hi Jacob,

So it does, my apologies.

Max really needs to answer this - my guess is that this feature may not be enabled in the current mambot/plugin code. But I could be wrong about that too.

Bob
jvos 14 Apr, 2009
Hi Bob,
Thank you so far!
Jacob
Max_admin 20 Apr, 2009
Hi Jacob,

Only the Profile plugin will load values, it should be configured per form, do you have the profile plugin configured and enabled correctly for this form ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
jvos 20 Apr, 2009
HI Max,

Yes, I configured the plugin in the right way (otherwise the values won't be displayed when starting the form out of the back-office).

Regards,
Jacob
This topic is locked and no more replies can be posted.