• Resolved richwalker

    (@richwalker)


    The utm plugin is causing a conflict with out gravity forms forms.

    on line 6 (Uncaught URIError: URI malformed) curval = decodeURIComponent(curval)

    (handl-utm-grabber.js?ver=4.9.4:6)

    Uncaught URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at String.<anonymous> (handl-utm-grabber.js?ver=4.9.4:6)
    at Function.each (jquery.js?ver=1.12.4:2)
    at HTMLDocument.<anonymous> (handl-utm-grabber.js?ver=4.9.4:2)
    at i (jquery.js?ver=1.12.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
    at Function.ready (jquery.js?ver=1.12.4:2)
    at HTMLDocument.K (jquery.js?ver=1.12.4:2)

    Tried googling the problem but haven’t found anything.

    Thanks

    Rich

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Haktan Suren

    (@haktansuren)

    Hi @richwalker,
    Do you mind sharing the link where you receive this error? Thanks

    Thread Starter richwalker

    (@richwalker)

    Hi Haktan

    I have made a couple of tweaks to handl-utm-grabber.js to fix the problem.

    jQuery(function($) {
    	$.each([ 'utm_source','utm_medium','utm_term', 'utm_content', 'utm_campaign', 'gclid', 'email', 'username' ], function( i,v ) {
    		var curval = Cookies.get(v);
    		if (curval '!==' undefined) {
    			curval = decodeURIComponent(curval);
    			if (v == 'username') {
    				//Maybe this should apply to all... We'll see...
    				curval = curval.replace(/\+/g, ' ');
    			}
    			$('input[name=\"'+v+'\"]').val(curval);
    			$('input#'+v).val(curval);
    			$('input.'+v).val(curval);
    		}
    	});
    });
    Plugin Author Haktan Suren

    (@haktansuren)

    Thanks for sharing the code with us @richwalker!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught URIError: URI malformed’ is closed to new replies.