• Resolved luiscortex

    (@luiscortex)


    Hi, your plugin has a bug!
    in version 1.6.8 tabs in admin panel doesnt work if we click to open with jmigrate helper actived . We downgrade to 1.6.6 that is working

    Ex: wp-admin/admin.php?page=wc-settings

    https://ibb.co/4RqJvtd

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same here. Gives an error when I try to open any options tab under any plugin or setting, and doesn’t open those options.

    load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2 Uncaught Error: Syntax error, unrecognized expression: https://copitrajecolombo.pt/wp-admin/admin.php?page=aws-options&tab=form
        at Function.se.error (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at se.tokenize (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at se.select (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at Function.se (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at Function.s.find (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:5)
        at S.fn.init.find (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at s.fn.init.S.fn.init (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at new s.fn.init (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:5)
        at S (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
        at HTMLAnchorElement.<anonymous> (admin-settings.min.js?ver=1.6.8:1)

    I love this plugin, but can’t work with this errors all around. Will search for an alternative until this is fixed.

    Greetings.

    At first glance, this error is due to a conflict with woocommerce and all other plugins that use tabs with the ‘nav-tab’ class. They don’t conflict with each other, cause of a more complete/detailed path in jquery or including own js only on own pages in admin panel.

    In this, a click event from your jquery is work on the ‘nav-tab’ class of other plugins:

    $ ('. nav-tab'). on ('click', function (e) {
            e.preventDefault ();
            var tab = $ (this) .attr ('href');
            $ ('. nav-tab'). removeClass ('nav-tab-active');
            $ ('. content-tab'). hide ();
            $ (this) .addClass ('nav-tab-active');
            $ (tab) .show ();
        });
    

    In general, of course, plugin is cool! Thanks =)

    Слава, приветствую.

    На вскидку, эта ошибка из-за конфликта с woocommerce и всеми другими плагинами, которые используют табы с классом ‘nav-tab’. Между собой не конфликтуют, из-за более полного/подробного пути в jquery либо подключения собственных js только на собственных страницах админки.

    В твоем случае на класс ‘nav-tab’ других плагинов вешается событие click из твоего jquery.

    Вообще, конечно, плагин шикарен! Спасибо =)

    • This reply was modified 3 years, 8 months ago by idcco.

    Костыль в functions.php:

    function dequeue_cncb_admin_settings_script() {
        wp_dequeue_script( 'cncb-admin-settings-js' );
        wp_dequeue_style( 'cncb-admin-settings-css' );
    }
    if ( is_admin() ) {
        if ( ! isset( $_GET["page"] ) || $_GET["page"] !== 'cncb_options' ) {
            add_action( 'admin_enqueue_scripts', 'dequeue_cncb_admin_settings_script', 99 );
        }
    }

    Also seeing this break WooCommerce settings pages. Will there be a fix published?

    Stumbled across this issue today and Idcco’s function fixed it for me instantly!!

    Thanks Idcco, you saved me a lot of troubleshooting.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug in jquery admin panel’ is closed to new replies.