Support » Plugin: Page scroll to id » Conflict with WP Job Manager

  • Resolved twohumans

    (@twohumans)


    Begining with WP 5.5, when Page scroll to id is activated WP Job Manager doesn’t show the list of jobs initialy. We have to do a search or reset the search in WP Job Manager to see all our job listings. We have deactivited Page scroll to id and the problem with WP Job Manager is gone.

    I’ve also open a ticket with WP Job Manager and I’m seeing other users having the same problem although I don’t know it the are using Page scroll to id.

    Thank you to have a look!

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter twohumans

    (@twohumans)

    I’ve added Enable jQuery Migrate Helper and it solved the problem for now. So I’m guessing there a need to update the jQuery of Page scroll to id.
    Thanks.

    Plugin Author malihu

    (@malihu)

    Hi,

    In plugin settings, change the “Selector(s)” option value from:

    a[href*=#]:not([href=#])

    to the default:

    a[href*='#']:not([href='#'])

    Click save changes, disable jQuery migrate and test your page.

    Let me know if it works or if you get any console errors.

    Thread Starter twohumans

    (@twohumans)

    Still doesn’t work with the change. here is what the console gave me :

    Uncaught Error: Syntax error, unrecognized expression: a[href*='#']:not([href='#']),._ps2id,a[data-ps2id-api='true'][href*='#'],.ps2id > a[href*='#'],a.ps2id[href*='#']
        jQuery 7
        <anonymous> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        jQuery 8
        <anonymous> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        <anonymous> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
    jquery.js:2:12681
        jQuery 7
        <anonyme> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        jQuery 8
        <anonyme> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        <anonyme> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
    
    ​
    Thread Starter twohumans

    (@twohumans)

    In fact with the new selector, even with Enable jQuery Migrate Helper the problem is there, so I had to go back to the old selector with jQuery Migrate Helper to get it working.

    With the old selector and Enable jQuery Migrate Helper I get in the console :

    JQMIGRATE: Attribute selector with '#' must be quoted: a[href*=#]:not([href=#]),._ps2id,a[data-ps2id-api='true'][href*='#'],.ps2id > a[href*='#'],a.ps2id[href*='#'],a[href*=#]:not([href=#]),._ps2id,a[data-ps2id-api='true'][href*='#'],.ps2id > a[href*='#'],a.ps2id[href*='#'] jquery-migrate-1.4.1-wp.js:56:12
    console.trace() jquery-migrate-1.4.1-wp.js:58:13
        jQuery 7
            migrateWarn
            find
            find
            find
            init
            init
            n
        _setup https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        init https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        g https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        <anonyme> https://groupesantearbec.com/wp-content/plugins/page-scroll-to-id/js/page-scroll-to-id.min.js?ver=1.6.8:2
        jQuery 2
            dispatch
            handle
    
    • This reply was modified 8 months, 3 weeks ago by twohumans. Reason: add result of console
    Plugin Author malihu

    (@malihu)

    In which links do you use the plugin?

    Plugin Author malihu

    (@malihu)

    If you use the plugin only on menu items, can you change the “Selector(s)” option value to:

    .menu-item a

    and tell me if it works?

    Thread Starter twohumans

    (@twohumans)

    Since this is an old site that is slated to be redesigned soon, I didn’t think too much and just tried to get the plugins to work after the upgrade to WP 5.5. But your question got me to think and talk to the person doing the maintenance and I realized that we don’t use your plugin anymore. So for us this become a non-issue. I just deactivated Page scroll to id & Enable jQuery Migrate Helper and the site work perfectly.
    So thanks, for us the problem is solved, but you probably still need to correct the code to make it compatible with WP 5.5.

    Plugin Author malihu

    (@malihu)

    Thanks for the feedback!

    The thing is the plugin is compatible with WordPress 5.5 and all versions of jQuery library. I can’t really replicate the issue you’re having with the selector (the default selector you tested).

    • This reply was modified 8 months, 3 weeks ago by malihu.
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Conflict with WP Job Manager’ is closed to new replies.