• I logged on to my site today (www.celiawright.com) and as I haven’t been on in a while I saw that there was a new wordpress update as well as several plugin updates. I updated all and attempted to view my site but got the message

    Fatal error: Cannot redeclare get_the_post_thumbnail_url() (previously declared in /home3/ev47on25/F0unD@t10n/wp-includes/post-thumbnail-template.php:190) in /home3/ev47on25/F0unD@t10n/wp-content/themes/sliding-door/functions.php on line 217

    I tried to go back to admin to fix but got the same message. I now can’t access my admin or see my actual site (have tried in several browsers, same message)
    I’ve read through a few of the other threads on here, and saw something about going through FTP to fix, but I have absolutely no idea what this means.

    My site is very basic so if anyone answers this (and thank you in advance) please reply as if you are talking to a very stupid person with limited understanding of wordpress!

    Thanks again!

Viewing 15 replies - 1 through 15 (of 19 total)
  • You have a problem in your theme. Try switching to the default theme automatically by renaming your current theme’s folder inside wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    Thread Starter CWMUA

    (@cwmua)

    Hi Esmi,

    Thanks for getting back to me. I don’t understand what an FTP is, or how I access it. Again, please explain as if to a really stupid person.

    Thanks

    Please see the FTP link in my previous post.

    HI Esmi

    This just happened to me as of a few hours ago as well. It seems to be involving the sliding-door theme. I also get the error and also can not login to wordpress as “admin”

    1) when I change the name of sliding-door to sliding-door-old, my website is now completely blank (though I do not get the error above…)

    2) I still see the site in my FTP client, and nothing has changed with the sliding-door theme; something happened within the last 12 hours that is causing this for a bunch of us with sliding-door.

    Any hints on getting my site back? A blank site is no better than the error-ed site.

    Thanks!

    Will

    The full error is identical to CWMUA
    Fatal error: Cannot redeclare get_the_post_thumbnail_url() (previously declared in /home/wpirkle/willpirkle.com/wp-includes/post-thumbnail-template.php:190) in /home/wpirkle/willpirkle.com/wp-content/themes/sliding-door/functions.php on line 217

    Line 217 is the closing curly bracket here:

    // Get only the image url link by https://blogcastor.com
    function get_the_post_thumbnail_url( $post_id = NULL ) {
    global $id;
    $post_id = ( NULL === $post_id ) ? $id : $post_id;
    $src = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), ‘full’);
    $src = $src[0];
    return $src;
    }

    Thanks,

    Will

    EDIT: I found a workaround until sliding-door changes its function name(s)

    You can rename

    get_the_post_thumbnail_url()

    to

    get_the_post_thumbnail_url_ANYTHING()

    in the 3 places where it occurs in functions.php

    This seemed to work fine for me.

    WP

    Thread Starter CWMUA

    (@cwmua)

    Hi Will,

    Thanks for that, I will give it a try. Thankfully, I managed to find someone who would explain to me what the FTP was and where I find it, so I know what I’m looking for now.

    This sadly gave me no resolution. I’m VERY glad to hear that it worked for some.

    The answer for me was to contact my Server Host and ask if they could restore the site to the last previous backup that they had. They did that. We had to fix a few issues that occurred during the back up restore process but my site is back up and allowing me full access.

    Unless this is an issue WordPress finds worth fixing, I suppose I will have to start the process of looking for a new theme.

    If anyone knows of a theme, paid or not that is similar to the sliding door them, I would appreciate that information.

    Thanks willpirkle! I might give this a try.

    I’m not hopeful that the creators of Sliding Door will fix the problem. I found out after I had totally built my site with their theme that they had stopped all communication and support for the them several years ago.

    Wow, looks like I’m joining the sliding door gang here with the same problem.

    willpirkle – you mention a workaround. where do I go to rename the “functions.php?

    I’m totally lost trying to understand all of the above.

    How do I change anything when I can not access my site?

    Thanks so much!

    I had the same problem. I had an error code show up on my site several weeks ago (www.121ruebienville.com)

    Strict Standards: Declaration of My_Walker::end_el() should be compatible with Walker_Nav_Menu::end_el(&$output, $item, $depth = 0, $args = Array) in /homepages/35/d486582904/htdocs/121ruebienville/wp-content/themes/sliding-door/functions.php on line 294

    I tried to auto-update WordPress earlier today, hoping that would fix it but when I did, the whole site went down, showing:

    Fatal error: Cannot redeclare get_the_post_thumbnail_url() (previously declared in /homepages/35/d486582904/htdocs/121ruebienville/wp-includes/post-thumbnail-template.php:190)

    in /homepages/35/d486582904/htdocs/121ruebienville/wp-content/themes/sliding-door/functions.php on line 217

    -on a white background.

    I applied willpirkle’s fix and it brought the site back, but I still have the original pesky error code showing up.

    I attempted to replace the functions.php file with a freshly downloaded one but it did not help.

    any advice would be appreciated. thanks!

    pol2112,
    Thanks for chiming in here.
    Where might I find the “functions.php”.

    It’s the theme functions.

    /wp-content/themes/sliding-door/functions.php

    I got to this thread via Google and it’s looking like this is not necessarily a Sliding Doors support forum. But I think we all have the same problem.

    brittrunyon, did you upload WordPress with an FTP client? If you still have your downloaded Sliding Doors folder on your computer, you can search for and find your Functions page in there. If not, you can find it on your hosting sever with an FTP client via the pathway I gave above.

    You can download functions.php (make a copy and save it somewhere), open it with Notepad (if using Windows) make the changes and re-upload it to your hosting server.

    Wayne thanks for the info but……..
    I’m totally lost here,
    How do I “FTP in”?
    What do I do with the link you provided?
    I apologize for ignorance on this topic.
    Thanks again.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Can't access site or admin: Fatal Error’ is closed to new replies.