Support » Plugin: WP Featherlight - A Simple jQuery Lightbox » Console Uncaught TypeError

  • Resolved iNexi


    What’s going on with the below error in the console? I’m initiating it via the console like:


    But the same happens with a jQuery object, etc.

    Uncaught TypeError: Cannot read property 'parent' of undefined
        at b.featherlight.afterContent (
        at d (
        at b.afterContent (
        at b.d [as afterContent] (
        at Object.<anonymous> (
        at i (
        at Object.fireWith [as resolveWith] (
        at Object.e.(anonymous function) [as resolve] (
        at HTMLImageElement.e.onload (
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robert Neu


    Sorry you’re having trouble, but this is a bit beyond the scope of support for this plugin. It’s difficult to say exactly what the issue is given the code you’ve provided, but make sure you’re loading your custom JS after WP Featherlight has been fully loaded.

    For more help with getting your code to run, check out the Featherlight topic on StackOverflow.

    Thread Starter iNexi


    Looks like it just needed a target… so the initial code was changed to include a target…


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Console Uncaught TypeError’ is closed to new replies.