Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kylewhenderson

    (@kylewhenderson)

    Looks like line 691 should be changed to:

    $image_src = wp_get_attachment_image_src(get_post_thumbnail_id(), $atts['image_size'][0]);

    [0] should come before the closing ‘)’ Tested and works with this patch.

    Thank you very much, kylewhenderson.

    Thanks to Phil Ewels too for this great plugin!

    Plugin Author Phil Ewels

    (@tallphil)

    Great spot, thanks kylewhenderson! I’ve just pushed a new version, 1.8.1, which fixes this problem.

    If you’re interested, it wasn’t actually as simple as a typo – your fix sorted out the error but the new function that the line related to wouldn’t have worked.

    Accessing the array index of a function that returns an array is a shortcut that works in PHP v5.4+ but not before – so it worked fine on my testing setup but not when pushed into the wild with lower versions of PHP. See the relevant PHP manual page for a better description.

    Anyway, I split the line into two and I think we should be good now.

    Cheers,

    Phil

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Activation Triggers Fatal Error’ is closed to new replies.