• With Contact Form DB installed with Contact Form 7 3.6, 3.7 and 3.7.1, my contact forms break. The code used to redirect pages stops working.

    on_sent_ok:"location.replace('http://yourwebsite.com');" doesn’t work.

    My solution to this problem was to either deactivate Contact Form DB or downgrade Contact Form 7 to version 3.5.4.

    It appears the developer of Contact Form DB is not keeping up to date with the Contact Form 7 versions as the Contact Form DB plugin has not been updated since July 2013.

    https://wordpress.org/plugins/contact-form-7-to-database-extension/

Viewing 1 replies (of 1 total)
  • Thread Starter darkhorse20

    (@darkhorse20)

    Just wanted to add, that with CFDB installed and after upgrading CF7 to 3.7.1 , this javascript error immediately shows up when viewing a page with the contact form in Firefox’s Javascript Error Console:

    TypeError: this.ajaxForm is not a function scripts.js:30

    It doesn’t like this function:

    $.fn.wpcf7InitForm = function() {
    		this.ajaxForm({
    			beforeSubmit: function(arr, $form, options) {
    				$form.wpcf7ClearResponseOutput();
    				$form.find('[aria-invalid]').attr('aria-invalid', 'false');
    				$form.find('img.ajax-loader').css({ visibility: 'visible' });
    				return true;
    			},
    			beforeSerialize: function($form, options) {
    				$form.find('[placeholder].placeheld').each(function(i, n) {
    					$(n).val('');
    				});
    				return true;
    			},
    			data: { '_wpcf7_is_ajax_call': 1 },
    			dataType: 'json',
    			success: $.wpcf7AjaxSuccess,
    			error: function(xhr, status, error, $form) {
    				var e = $('<div class="ajax-error"></div>').text(error.message);
    				$form.after(e);
    			}
    		});
Viewing 1 replies (of 1 total)
  • The topic ‘Contact Form DB breaks CF7 3.6 and up’ is closed to new replies.