After updating to v5.3 playlist tracks can not be reordered in wp-admin.
Edit playlist in wp-admin
Click up or down button or click and try to drag to reorder tracks
Nothing happens
Error in console:
Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
at cmb.updateNameAttr (cmb2.min.js?ver=2.11.0:1:13480)
at HTMLInputElement. (cmb2.min.js?ver=2.11.0:1:17130)
at Function.each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:3129)
at e..each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:1594)
at cmb.shiftRows (cmb2.min.js?ver=2.11.0:1:17110)
at HTMLDivElement.dispatch (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:40035)
at v.handle (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:38006)
Could you try something for me? Please deactivate all your plugins except our plugins then see if the issue persists. If not, please reactivate your plugins one by one and see which plugin can cause the conflict.
Its because RankMath use the same library than our (CMB2) and they overtake it with more priority. I recommend you deactivate temporarily RankMath by the time your are reordering your tracks.
After updating to v5.3 playlist tracks can not be reordered in wp-admin.
Error in console: Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf') at cmb.updateNameAttr (cmb2.min.js?ver=2.11.0:1:13480) at HTMLInputElement. (cmb2.min.js?ver=2.11.0:1:17130) at Function.each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:3129) at e..each (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:1594) at cmb.shiftRows (cmb2.min.js?ver=2.11.0:1:17110) at HTMLDivElement.dispatch (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:40035) at v.handle (load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.5.3:2:38006)
It looks like a JavaScript conflict.
Could you try something for me? Please deactivate all your plugins except our plugins then see if the issue persists. If not, please reactivate your plugins one by one and see which plugin can cause the conflict.
Tell me how it goes.
Thanks,
Max from the Sonaar.io Crew
Hi Max,
Thanks for your help. After debugging further I pinpointed the conflict to be with the Rank Math SEO plugin: https://wordpress.org/plugins/seo-by-rank-math/
Hi,
Its because RankMath use the same library than our (CMB2) and they overtake it with more priority. I recommend you deactivate temporarily RankMath by the time your are reordering your tracks.
Thanks,
Max from the Sonaar.io Crew