I have a detail ListIt2 (ListIt2Listings) page on which there are 2 forms. One includes vars from the $item object, display, submits correctly and the email response is received.
The 2nd one I've trimmed down to basics without any $item vars and displays and appears to submit correctly but nothing ever shows up in email.
CMSMailer is configured correctly.
The 2nd form, when used in a content page template by itself works correctly and the response arrives in my Inbox.
The major difference between the forms is that the 2nd form uses the new (?) form disposition of 'Email results based on frontend fields'.
The site is for a real estate agent and the first form submits an enquiry to the RE agent and the 2nd is a 'Forward to a Friend' form. Both use foundation, modal windows and submit via jQuery ajax.
The submission code is:
Code: Select all
$('#myModal input.button').click(function(e){
e.preventDefault();
var chk = $(this);
var elem = $('<img/>', {
'src' : '{/literal}{$theme_url}{literal}/ajax-loader.gif'
}).addClass('spinner');
chk.closest('div').append(elem);
var cf = chk.closest('form');
var cfaction = $(cf).attr('action');
var cfdata = $(cf).serialize();
$.ajax({
url: cfaction,
type: "POST",
data: cfdata,
success: function(){
var heading = cf.prev().prev();
heading.html(heading.html() + ' Sent');
cf.html("<p>Thank you for your enquiry about this property. We will contact you soon.</p>");
}
});
});
$('#myModal2 input.button').click(function(e){
e.preventDefault();
var chk = $(this);
var elem = $('<img/>', {
'src' : '{/literal}{$theme_url}{literal}/ajax-loader.gif'
}).addClass('spinner');
chk.closest('div').append(elem);
var cf = chk.closest('form');
var cfaction = $(cf).attr('action');
var cfdata = $(cf).serialize();
$.ajax({
url: cfaction,
type: "POST",
data: cfdata,
success: function(){
var heading = cf.prev().prev();
heading.html(heading.html() + ' Sent');
cf.html("<p>Thank you for alerting your friend to this property.</p>");
}
});
});
A sample page can be seen at http://www.loisjonesrealestate.com/prop ... re/59.html
Any suggestions where to look, or even better help with troubleshooting would be much appreciated.
Cheers, psy
CMSMS config:
----------------------------------------------
Cms Version: 1.11.7
Installed Modules:
CMSMailer: 5.2.1
CMSPrinting: 1.0.4
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
News: 2.12.12
Search: 1.7.8
ThemeManager: 1.1.8
CGExtensions: 1.37.2
CGSmartImage: 1.12.1
CGSimpleSmarty: 1.7
Gallery: 1.6.1
SEOTools2: 1.2.1
Archiver: 0.2.6
JQueryTools: 1.2.5
HostedVideoAlbums: 2.4.4
ListIt2: 1.4
ListIt2XDefs: 1.2
GBFilePicker: 1.3.3
ListIt2Listings: 1.4
FormBuilder: 0.7.4
ListIt2FreeReport: 1.4
ListIt2FAQ: 1.4
Uploads: 1.16.13
Config Information:
php_memory_limit:
process_whole_template:
max_upload_size: 10000000
url_rewriting: mod_rewrite
page_extension: .html
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true
Php Information:
phpversion: 5.4.20
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 2048
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 30
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 10M
upload_max_filesize: 10M
session_save_path: /tmp (1777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
Server Information:
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 5.5.34
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
----------------------------------------------
BTW, I wanted to use Global Content Blocks encased in {literal} tags in the jQuery for the 'thank you' message but it kept completely crashing CMSMS so I ended up using the hardcoded text.