Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • cant save either, not sure if a separate issue would be better, the error message i get in developer console reads:

    wpgmaps-admin-core.js?ver=7.10.20b:440 Uncaught TypeError: Cannot set property 'map' of undefined
        at Object.success (wpgmaps-admin-core.js?ver=7.10.20b:440)
        at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:2)
        at y (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:4)
        at XMLHttpRequest.c (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=4.9.6:4)

    got the same problem.

    solution #1 : deregister google-recaptcha and register again
    example: put this code inside your themes function.php

    
    function degl_recaptcha_enqueue_scripts() {
    	if ( ! is_admin() ) {
    		$url = 'https://www.google.com/recaptcha/api.js';
    
    		wp_deregister_script( 'google-recaptcha', $url, array(), '2.0', true );
    		wp_register_script( 'google-recaptcha', $url, array(), '2.1', true );
    		wp_enqueue_script( 'google-recaptcha' );
    	}
    }
    
    add_action( 'wp_enqueue_scripts', 'degl_recaptcha_enqueue_scripts' );
    

    solution #2 comment out some lines in contact-form-7/recaptcha.php

    around line 243 make it look like

    
    function wpcf7_recaptcha_enqueue_scripts() {
    	$url = 'https://www.google.com/recaptcha/api.js';
    //	$url = add_query_arg( array(
    //		'onload' => 'recaptchaCallback',
    //		'render' => 'explicit',
    //	), $url );
    
    	wp_register_script( 'google-recaptcha', $url, array(), '2.0', true );
    }
    

    for some (probably early recaptcha implementation method) the plugin author passes arguments to go along with the recaptcha script. It looks like those methods are not supported anymore, but i didn’t verify this. I am just happy the box is showing up. Seems like an easy fix for the next version. fingers crossed.

    • This reply was modified 7 years, 9 months ago by bort.
    • This reply was modified 7 years, 9 months ago by bort.
    Thread Starter bort

    (@b0r7)

    woa, thanks for the fast support,
    there appears to be a typo

    $lang = !empty( $options['lang'] )?$options['lang']:'en';

    should be

    $lang = !empty( $settings['lang'] )?$settings['lang']:'en';

    cheers,
    bort

Viewing 3 replies - 1 through 3 (of 3 total)