Visual Composer Accordion Cannot Read Property 'split' of Undefined

#1360559

I am trying to: Add a link to a bullet point via the wp visual editor in inside a bullet listing

Link to a page where the issue can be seen:
subconscious link but only in the wp admin

I expected to meet: no jquery disharmonize event.

Instead, I got:
Uncaught TypeError: Cannot read belongings 'split' of undefined
at zw.<anonymous> (VM357 views.js:232)
at dp.c.burn (VM340 tinymce.min.js:2)
at zw.fire (VM340 tinymce.min.js:2)
at zw.<anonymous> (VM474 plugin.min.js:1)
at dp.c.fire (VM340 tinymce.min.js:2)
at zw.fire (VM340 tinymce.min.js:2)
at Uh.nodeChanged (VM340 tinymce.min.js:ii)
at zw.nodeChanged (VM340 tinymce.min.js:2)
at zw.<anonymous> (VM340 tinymce.min.js:2)
at dp.c.fire (VM340 tinymce.min.js:2)

issues seems to be hither:
if ( linkNode ) {
$linkNode = editor.$( linkNode );
nodeClass = $linkNode.attr( 'class' ).split( ' ' );

maybe amend to cheque if node exist before referencing it.
if ( linkNode ) {
$linkNode = editor.$( linkNode );
if( $linkNode.hasAttr( 'class' ){
nodeClass = $linkNode.attr( 'course' ).split( ' ' );
}

i am running most upwardly to date toolset plugins and take tried switching to default theme and issue yet persist.

#1360883

Hi, I'd like to try to reproduce this problem locally simply in my first few tests I wasn't able to see a JavaScript fault. Can you tell me a fleck more?
- Is this the main post editor area, or a WYSIWYG custom field?
- Are you editing a post or a Content Template, View, etc?
- Are yous adding an external link or searching for an internal page link?
- Are y'all using the Archetype editor or the Block editor?
- Can you attach a full screenshot so I can see everything that's going on?

Thanks!

#1362009

Screen Shot 2019-10-15 at 9.09.38 AM.png

I've attached a screenshot. It merely happening when trying to add a link to a bullet list. Information technology only won't open up so it happens before you are able to add together pismire blazon of link. Information technology is in the default WYSIWYG editor. At that place is not view existence used on this page. Nosotros're using the classic editor. I've tried default theme and same upshot. I've also deactivate views and confirmed the the event goes away.

#1362215

It seems the spit is occurring because of an extra div tag that does not contain a class. If you remove the div or add a class information technology will piece of work fine. Of course, removing the div is fine, but the plugin code is assuming that all users will know to add a class. Which assume a lot for people learning html and that are learning WordPress and proper html semantics.

Calculation a conditional to your plugin to check if grade exist would probably solve this apply case.

if( $linkNode.hasAttr( 'class' ){ nodeClass = $linkNode.attr( 'class' ).split( ' ' ); }            
<div> <ul>  	<li>Interdisciplinary Asian Studies major/minor: Dr. Dwayne Dixon.</li>  	<li>Arab Cultures major & Arabic small: Dr. I Jonathan Kief.</li>  	<li>Chinese major/minor: Dr. Gang Yue.</li>  	<li>Hebrew minor: Dr. Yaron Shemer</li>  	<li>South Asian Studies major & Hindi-Urdu small: Dr. Afroz Taj</li>  	<li>Japanese major/minor: Dr. Dwayne Dixon.</li>  	<li>Korean minor: Dr. I Jonathan Kief</li>  	<li>Persian pocket-size: Dr. Claudia Yaghoobi</li>  	<li>Eye Eastern Languages small: Dr. Yaron Shemer</li> </ul> </div>            

#1362281

Thanks for the extra information. I'm able to reproduce this issue on ane of my local test sites just not on a site created from scratch. I'll need to put some additional time into this tomorrow and give yous an update when I have some more information to share.

#1362773

Okay I was able to figure out how to reproduce the consequence consistently. In my local tests, it has to exercise with whether or not the Toolset Blocks plugin was ever active on the site. Until I activated Toolset Blocks, I could not reproduce the trouble. Then once I had activated Blocks even just once, I could continue to reproduce the problem fifty-fifty after Blocks was deleted from the site. I'k request my 2nd tier support team for some clarification on how to handle a problem introduced by a beta that continues to impact the site subsequently the beta is uninstalled. I'll allow you know what I find out.

#1364945

How-do-you-do, just a quick update to let you know my 2nd tier support team has escalated this event to our developers. I'll go along you up-to-date here and let you know when I take additional information to share.

#1436181

Hi, I have been informed by my second tier support squad that this consequence should be resolved in the latest versions of Views and Blocks. Please be sure your site is updated to use the latest plugin versions, and let me know if the problem is not fully resolved. Thanks for your patience!

hendonharrest1987.blogspot.com

Source: https://toolset.com/forums/topic/views-uncaught-typeerror-cannot-read-property-split-of-undefined-in-wysiwyg/

0 Response to "Visual Composer Accordion Cannot Read Property 'split' of Undefined"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel