undefined function wp_get_the_attachment_link()


Within my blog posts if you click on any of the images you get the following error:

Fatal error: Call to undefined function wp_get_the_attachment_link() in .../blog/wp-content/themes/bp-daily/library/functions/loop-functions.php on line 225

Wordpress: 3.3.2
BuddyPress Daily Child 4.1.7

We do use Edgecast CDN with W3 Total Cache.

To see this go to the following and click on an image:


Any clues as I can't see anything obvious.

Thanks, Ian

  • aecnu
    • WP Unicorn

    Greetings Barnsey,

    Welcome to WPMU Dev!

    The error "Call to undefined function" is because it can't find a function in this case being wp_get_the_attachment_link().

    There is a deprecated function called get_attachment_link() that has matching parameters. It looks like it's been suggested to use wp_get_attachment_link() instead though.

    I have attached a modified loop-functions.php file which replaces the one in /wp-content/themes/bp-daily/library/functions/ folder. Back Up First!

    After backing up the file minimum, replace the current file with the attached file and let me know if it indeed fix's the issue.

    Please advise.

    Cheers, Joe

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.