Support

Account

Home Forums Bug Reports Bug ACF 5.1.8 – Uncaught TypeError select2.min.js:21(331)

Helping

Bug ACF 5.1.8 – Uncaught TypeError select2.min.js:21(331)

  • When using a Post Object selector, I received this JS error. I have it set to search four different Custom Post Types but the last one is not searchable for some reason. It was working before.

    This error happens when I manually scroll down the list to select a post.

    
    select2.min.js:21 Uncaught TypeError: Cannot read property 'length' of undefined
    

    Changing the .js to formatted in Chrome offers me a line number of 331. Which looks to be in this block;

    
    h = function(d, e, l) {
    var m, n, o, p, q, r, s, t, u, v;
    d = c.sortResults(d, e, f);
    var w = [];
    for (m = 0, n = d.length; n > m; m += 1)
    

    I realize this may be solved in 5.2.X but I can’t upgrade to that yet for previous unresolved issues.

    WP 4.1.1 / ACF 5.1.8

  • Hi @jgraup,

    Thanks for the post.

    I have just tested this out on v 4.4.5 but I could not replicate this issue.

    The bug should be fixed now 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Bug ACF 5.1.8 – Uncaught TypeError select2.min.js:21(331)’ is closed to new replies.