codepress / admin-columns-issues

Issues for Admin Columns Pro
https://www.admincolumns.com/
11 stars 0 forks source link

Pro 4.6.2: RangeError: invalid array length admin-page-columns.js #1251

Closed lkraav closed 5 years ago

lkraav commented 5 years ago

This triggers on regular columns edit screen wp-admin/options-general.php?tab=columns&page=codepress-admin-columns

Not sure if it only triggers for some specific post type or its configuration, but now I also can't switch post types anymore, because all JS crashes.

admin-page-columns.js?ver=3.4.4:1 Uncaught RangeError: Invalid array length
    at HTMLDivElement.<anonymous> (admin-page-columns.js?ver=3.4.4:1)
    at Function.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,wp-pointe&load[]=r,underscore,backbone,wp-util,moxiejs,plupload&ver=5.2.1:2)
    at a.fn.init.each (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,wp-pointe&load[]=r,underscore,backbone,wp-util,moxiejs,plupload&ver=5.2.1:2)
    at e.value (admin-page-columns.js?ver=3.4.4:1)
    at e.value (admin-page-columns.js?ver=3.4.4:1)
    at new e (admin-page-columns.js?ver=3.4.4:1)
    at HTMLDocument.<anonymous> (admin-page-columns.js?ver=3.4.4:1)
    at i (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,wp-pointe&load[]=r,underscore,backbone,wp-util,moxiejs,plupload&ver=5.2.1:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,wp-pointe&load[]=r,underscore,backbone,wp-util,moxiejs,plupload&ver=5.2.1:2)
    at Function.ready (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,wp-pointe&load[]=r,underscore,backbone,wp-util,moxiejs,plupload&ver=5.2.1:2)
    at HTMLDocument.J (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,utils,jquery-ui-position,wp-pointe&load[]=r,underscore,backbone,wp-util,moxiejs,plupload&ver=5.2.1:2)
DGStefan commented 5 years ago

@lkraav Where did you send the plugin we talked about? I did not receive any email with the attachment so I can try to reproduce the issue for the specific post type. Please send them to support@admincolumns.com and I'll have a look!

lkraav commented 5 years ago

E-mail got bounced due to ZIP security issues. Re-shared on Dropbox.

DGStefan commented 5 years ago

@lkraav Found the issue and made a fix for the upcoming release. Send you an email with a build that contains the fix.