• Resolved Khairul

    (@khairulanwar)


    Getting the following error on /wp-content/plugins/wp-asset-clean-up/assets/script.min.js

    Uncaught ReferenceError: xhr is not defined

    This is when editing a custom post type created by another plugin.

    Any way to disable loading Asset Clean Up on post type level? Divi has a similar control option in Divi Options > Builder > Enable Divi Builder On Post Types.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @khairulanwar thanks for raising this ticket! The error is related to the fact that no content was retrieved from the remote page (from where the assets should have been fetched), perhaps due to the fact the post type is either private, not meant to be public or works in a different way then other public post types.

    What you can do to hide the Asset CleanUp’s meta boxes, is go to “Settings” -> “Plugin Usage Preferences” -> “Manage in the Dashboard” and below you will find “Hide all meta boxes for the following public post types (multiple selection drop-down):” – just choose the post types for which you don’t want to view any Asset CleanUp management options.

    This should work. Let me know how it goes at your earliest convenience!

    Thread Starter Khairul

    (@khairulanwar)

    Awesome, works great!

    Thanks

    Plugin Author Gabe Livan

    (@gabelivan)

    @khairulanwar I’m glad to hear that! I’m considering changing the JavaScript code so future versions of the plugin will not trigger the “Uncaught ReferenceError: xhr is not defined” error as it can be confusing. Instead, it would print a different message explaining what they could do about it.

    If you’re happy with the plugin overall, it would be awesome if you can spare a minute and leave a quick review about it here: https://ww.wp.xz.cn/support/plugin/wp-asset-clean-up/reviews/#new-post

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘XHR Error in Post Editor’ is closed to new replies.