• Resolved SuzieB

    (@suzieb)


    This error has shown up while doing a live test in Google Console. I have deactivated the Twitter block but it is still appearing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Alexis Pandaan

    (@alexius08)

    Hi @suzieb! This error doesn’t seem to be coming from our plugin. We don’t use blockquote__tweet as the name for anything in our codebase, and our Click to Tweet block doesn’t include support for rich results in Google.

    Thread Starter SuzieB

    (@suzieb)

    Hi Alexis,

    this is in my source code

    <script type="text/javascript" id="uagb-script-frontend">document.addEventListener("DOMContentLoaded", function(){ 			var selector = document.querySelectorAll( '.uagb-block-93a9cc1d' );
    			var blockquote__tweet = selector[0].getElementsByClassName("uagb-blockquote__tweet-button");

    Is the uagba- missing in the fourth line? Well, it was the fourth line when I post, lol

    • This reply was modified 3 years, 10 months ago by SuzieB.
    • This reply was modified 3 years, 10 months ago by SuzieB.
    Thread Starter SuzieB

    (@suzieb)

    Here’s the whole script because blockquote__tweet shows up twice that I can see.

    <script type="text/javascript" id="uagb-script-frontend">document.addEventListener("DOMContentLoaded", function(){ 			var selector = document.querySelectorAll( '.uagb-block-93a9cc1d' );
    			var blockquote__tweet = selector[0].getElementsByClassName("uagb-blockquote__tweet-button");
    			blockquote__tweet[0].addEventListener("click",function(){
    				var content = selector[0].getElementsByClassName("uagb-blockquote__content")[0].innerText;
    				var request_url = "https://twitter.com/share?url="+ encodeURIComponent("' . . '")+"&text="+content+"&via="+("' .  . '"); 
    				window.open( request_url ); 
    			});
    			 })</script>
    Plugin Contributor Alexis Pandaan

    (@alexius08)

    The code excerpts you posted come from Ultimate Addons for Gutenberg, not from Ultimate Blocks, so we can’t do much to help you on this one. Please let them know about this issue.

    Thread Starter SuzieB

    (@suzieb)

    OH! I am so sorry! I thought it was weird earlier when I saw ADDONs

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught TypeError: blockquote__tweet[0] is undefined’ is closed to new replies.