• Josh Feck

    (@builtbynorthby)


    Hi there,

    It appears there’s a bit of trouble with using All in One SEO with some post type editors. If AIO is enabled for a specific post type, in this case an Event Espresso post type, a JavaScript error is thrown and other scripts on the page no longer function.

    I dug into the code a bit and found that if I add the event post type’s screen to the conditional in aioseop_module_class.php, the proper scripts get loaded and no JS errors are thrown.

    if ( ( $screen->base != 'post' ) &&
    	( $screen->base != 'edit-tags' ) &&
    	( $screen->base != 'toplevel_page_shopp-products' ) ) return;

    Would you consider adding a filter hook here to allow more editor screens to be added? This way other post type editor screens will be able include AIOSEO features without breakage.

    https://www.ads-software.com/plugins/all-in-one-seo-pack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Josh,

    I’ll see that this issue gets fixed in the next release, by adding some filters as well as some additional sanity checks for our Javascript. Thanks for bringing this issue to our attention!

    Thread Starter Josh Feck

    (@builtbynorthby)

    Hi Peter,

    Awesome! Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught ReferenceError: countChars is not defined’ is closed to new replies.