• Ok bit of a weird one.

    I’m trying to help a friend out with her wordpress site – she asked me to update it and do a few simple things.

    It said that 4.6 was available, I hit update and after a while it crashed, and now I just get a blank page with this at the top
    Fatal error: Cannot redeclare get_the_post_thumbnail_caption() (previously declared in /vhost/vhost15/e/m/m/emma-wild.com/www/wp-includes/post-thumbnail-template.php:222) in /vhost/vhost15/e/m/m/emma-wild.com/www/wp-content/themes/emmawild/functions.php on line 41

    whatever that means???? Ive don’t a search and people had a problem with some sliding door plugin but I don’t know whether thats on there?

    Can someone help? and explain like you was explaining to a child so I can understand it??

    I’m loging in on my computer – not hers, someone else built the site for her so I don’t have access to get FTP – and even if I did I’m not sure I’d know how to update the files…

Viewing 1 replies (of 1 total)
  • Hi @wearegravity.

    Two functions (one in WordPress and another in your theme) has the same name “get_the_post_thumbnail_caption()”.

    The file “functions.php” of the theme need verify if the function already exist. Something like this:

    if ( !function_exists( 'get_the_post_thumbnail_caption' ) ) {
        // ... do the work
    }

    Maybe update the theme via FTP resolve the problem.

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Cannot redeclare get_the_post_thumbnail_caption(’ is closed to new replies.