Hi,
the plugin tries to load the file cf7-custom-error-message-settings.php
which is missing.
PHP Warning: require_once(/var/www/site/wp-content/plugins/cf7-custom-error-messages/cf7-custom-error-message-settings.php): failed to open stream: No such file or directory in /var/www/site/wp-content/plugins/cf7-custom-error-messages/cf7-custom-error-message.php on line 41
PHP Fatal error: require_once(): Failed opening required '/var/www/site/wp-content/plugins/cf7-custom-error-messages/cf7-custom-error-message-settings.php' (include_path='.:/usr/share/php') in /var/www/site/wp-content/plugins/cf7-custom-error-messages/cf7-custom-error-message.php on line 41
Regards
Marcel
Tried and found that the custom error message for select field doesn’t show.
It’s showing the standard required field message instead.
Does it not work for select fields?
Hello,
I am using this plugin, with default contact form 7 form. Here other validation works but of the email id we have 2 validation message to be saved in admin. One is for empty field and other is for valid email id. It works in case of invalid email id. but in case of empty email field I am not able to save the value in admin not its displayed on front end.
Thanks
]]>I am using this plugin with CF7 and it works fine for the other fields, but the problem is if we enable it for forms then the email default error messages are not showing. And if write in custom error tab regarding email error messages then they are not save in the field and nor displaying click on the submit button.
Please suggest some idea or fix this bug ASAP. I really need this now.
Thanks in Advance.
]]>HI
I have used this plugin but some of my custom error messages are not displaying rather it displays default error messages for required field. what am doing wrong? any help.
Thanks Sallu.
]]>Hello! When I trying to save custom values everything breaks.
Notice: Undefined index: _cf7cm_ in D:\workspace\familnii-standart\wp-content\plugins\cf7-custom-error-messages\cf7-custom-error-message.php on line 131
Warning: Cannot modify header information – headers already sent by (output started at D:\workspace\familnii-standart\wp-content\plugins\cf7-custom-error-messages\cf7-custom-error-message.php:131) in D:\workspace\familnii-standart\wp-includes\pluggable.php on line 1228
]]>Please replace the cf7cem_save_contact_form function with this one, the default error message for a email field doesn’t work, this is the fix:
function cf7cem_save_contact_form( $cf7 ) {
$tags = $cf7->form_scan_shortcode();
$post_id = sanitize_text_field($_POST['post']);
if (!empty($_POST['enable'])) {
$enable = sanitize_text_field($_POST['enable']);
update_post_meta($post_id, "_cf7cm_enable_errors", $enable);
} else {
update_post_meta($post_id, "_cf7cm_enable_errors", 0);
}
foreach ($tags as $key => $value) {
if(trim($value['type'])=='email*')
{
$key = "_cf7cm_".$value['name']."-valid";
$vals = sanitize_text_field($_POST[$key]);
update_post_meta($post_id, $key, $vals);
$key = "_cf7cm_".$value['name'];
$vals = sanitize_text_field($_POST[$key]);
update_post_meta($post_id, $key, $vals);
}
else
{
$key = "_cf7cm_".$value['name'];
$vals = sanitize_text_field($_POST[$key]);
update_post_meta($post_id, $key, $vals);
}
}
}
]]>
Hi,
I have try different code to changes Error of Contact form 7 according to field name. The last solution found using jquery hide original errors and replace with that jquery , but your plugin gives custom error in different form with different field’s errors really great.
Just request you if it is support all fields like radio button ,select box , number field etc..then great for me.
Thanks,
Keep it up.