• Resolved IncredibleWP

    (@incrediblewp)


    Hello,

    I am checking compatability between my plugin and Yoast SEO plugin. When Yoast SEO is enabled, any AJAX call (e.g. “GET” with parameters) to a custom REST API added by my plugin inside wordpress admin area is creating the following browser error which is related to “yoast-seo-quick-edit-handler”. I also checked it with other SEO plugins and I am not getting that error.

    Here are some examples:
    quick-edit-handler.j…3f8a9873afbfd1425:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘indexOf’) at HTMLDocument.<anonymous> (quick-edit-handler.j…9873afbfd1425:1:908) at HTMLDocument.dispatch (jquery.min.js?ver=3.7.1:2:40035) at v.handle (jquery.min.js?ver=3.7.1:2:38006) at Object.trigger (jquery.min.js?ver=3.7.1:2:70124) at l (jquery.min.js?ver=3.7.1:2:77934) at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.7.1:2:80265)

    Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
    at HTMLDocument. (quick-edit-handler.js?ver=e7d3f8a9873afbfd1425:1:908)
    at HTMLDocument.dispatch (jquery.min.js?ver=3.7.1:2:40035)
    at v.handle (jquery.min.js?ver=3.7.1:2:38006)
    at Object.trigger (jquery.min.js?ver=3.7.1:2:70124)
    at l (jquery.min.js?ver=3.7.1:2:77934)
    at XMLHttpRequest. (jquery.min.js?ver=3.7.1:2:80265)
    (anonymous) @ quick-edit-handler.js?ver=e7d3f8a9873afbfd1425:1
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    l @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    load (async)
    send @ jquery.min.js?ver=3.7.1:2
    ajax @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery-migrate.min.js?ver=3.4.1:2
    e. @ jquery-migrate.min.js?ver=3.4.1:2
    automatedSlug @ class-idocs-categories-admin.js?ver=1.0.8:128
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @incrediblewp,

    Thanks for reaching out. It would be helpful if you could provide detailed steps for us to reproduce the error and the plugin you used in conjuction with Yoast SEO.

    Thread Starter IncredibleWP

    (@incrediblewp)

    Hi,

    My plugin is not released yet. I suggest to create a dummay plugin and in a custom taxonomy admin screen add a javascript file which will call a dummy custom rest end-point (registred by the plugin) using AJAX with one paramater as input. That will simulate the same scenario which I got that error.

    BR

    Idan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error yoast-seo-quick-edit-handler when using AJAX calls’ is closed to new replies.