• Our company website was old (2019). I worked to update the PHP and all the plugins. Unfortunately, i can’t modify my pages anymore. I get a TypeError: this._addClass is not a function. If i deactivate the theme core, then i can edit the page again. Is there a way to fix the situation ?

    Note : there’s no update for our theme anymore and the developper does not return my emails.

    Here is the complete error message from WordPress in the Page section :

    TypeError: this._addClass is not a function
    
        at $.<computed>.<computed>._create (https://metaphoredesign.ca/metaclone/wp-includes/js/jquery/ui/sortable.min.js?ver=1.13.2:9:912)
    
        at $.<computed>.<computed>._create (https://metaphoredesign.ca/metaclone/wp-content/plugins/black-white-core/assets/js/black-white-core-ui.js?ver=1.0:426:25)
    
        at $.<computed>.<computed>._createWidget (https://metaphoredesign.ca/metaclone/wp-content/plugins/black-white-core/assets/js/black-white-core-ui.js?ver=1.0:585:8)
    
        at new $.<computed>.<computed> (https://metaphoredesign.ca/metaclone/wp-content/plugins/black-white-core/assets/js/black-white-core-ui.js?ver=1.0:387:9)
    
        at HTMLDivElement.<anonymous> (https://metaphoredesign.ca/metaclone/wp-content/plugins/black-white-core/assets/js/black-white-core-ui.js?ver=1.0:532:30)
    
        at Function.each (https://metaphoredesign.ca/metaclone/wp-admin/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.2.2:2:3003)
    
        at e.<computed>.each (https://metaphoredesign.ca/metaclone/wp-admin/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.2.2:2:1481)
    
        at $.fn.<computed> [as sortable] (https://metaphoredesign.ca/metaclone/wp-content/plugins/black-white-core/assets/js/black-white-core-ui.js?ver=1.0:527:9)
    
        at Object.init (https://metaphoredesign.ca/metaclone/wp-admin/js/postbox.min.js?ver=6.2.2:2:3686)
    
        at Object.add_postbox_toggles (https://metaphoredesign.ca/metaclone/wp-admin/js/postbox.min.js?ver=6.2.2:2:2725)

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • I assume you updated the WordPress core as well.

    It looks like a jQuery error – it’s possible that used theme JavaScript code is outdated and conflicts with the newest version of WordPress that updated jQuery version from 1.x.x. to 3.x.x (in WordPress version 5.6).

    That custom code needs to be modified, or change the theme.

Viewing 1 replies (of 1 total)
  • The topic ‘TypeError: this._addClass is not a function’ is closed to new replies.