• Resolved andy999

    (@andy999)


    After some testing (ie deleting parts of the plugin to see what causes it) I’ve discovered that this function is killing my js and throwing up errors in my already working js in the console.

    if ( is_admin() ) {
    	add_action( 'plugins_loaded', 'incom_admin_init', 15 );
    }
    else {
    	add_action( 'plugins_loaded', 'incom_frontend_init', 15 );
    }

    It keeps telling me functions that ‘Uncaught TypeError: undefined is not a function’ for things that were previously working just fine.

    https://wordpress.org/plugins/inline-comments/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author kevinweber

    (@kevinweber)

    Hi Andy,

    thanks for contacting me!
    Can you tell me more about your issue? From which version of Inline Comments have you updated?
    What other plugins/JS is not working because of those lines?
    Which of those lines is causing the error? (The first or the second “add_action()”?

    Best regards,

    Kevin

    Thread Starter andy999

    (@andy999)

    Latest version of inline comments.

    It doesn’t stop any plugins working, it just stops js/jquery working at all, site wide.

    I removed the second ‘add_action’ and js works properly but the plugin doesn’t.

    Thread Starter andy999

    (@andy999)

    Kevin, it was my mistake, sorry!

    My jQuery functions weren’t written in noconflict mode, I was using $ instead of jQuery shortcut.

    Once that was fixed it was fine, a silly mistake!

    PS. Your plugin is fantastic and I’d be interested in using it in a commercial theme that I’d be building at some point, would you be able to offer me a developer license at a reasonable price?

    Plugin Author kevinweber

    (@kevinweber)

    Hi Andy,

    yeah, great that you’ve solved it yourself!
    Would be great if you give my plugin a five-star rating here. And than contact me using my mail address from that site.

    I’m looking forward to hearing from you!

    Regards,

    Kevin

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

The topic ‘Plugin kills my js’ is closed to new replies.