• PHP Fatal error: Cannot redeclare get_the_post_thumbnail_url() (previously declared in /var/www/vhosts/[site].com/lizardsandladybugsphotography.com/wp-includes/post-thumbnail-template.php:190) in /var/www/vhosts/[site].com/[site].com/wp-content/themes/sliding-door/functions.php on line 217

    your function get_the_post_thumbnail_url() appears to now conflict with a core function found in /wp-content/post-thumbnail-template.php

Viewing 9 replies - 1 through 9 (of 9 total)
  • This just happened to me as well, sometime within the last few hours. I have edited nothing; it just happened “on its own.”

    Is there a programmatic workaround for this? I can not login to wordpress as admin so I can’t change my theme (unless there is a programatic way to do it).

    Changing the name of the sliding door theme results in a blank website with no WordPress bar at the top to login with.

    no clue how to fix this…

    – Will

    Thread Starter greghl

    (@greghl)

    yes,there is a fix. Go into the file:

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

    rename the function get_the_post_thumbnail_url and there are also two calls to the function in the same file – ie, it is declared and called twice in the same file.

    change to something like:

    get_the_post_thumbnail_url_changed(

    and that will fix it.

    I’m new to editing code on WordPress. Do I rename the functions.php file? Or do I open the function file and look at the code and make a change there? If so I don’t know where. Also what is a “call.”

    If it’s in the code, can you count the lines and let me know which line it is? Thanks for your help!

    Actually – I just talked to my provider – Omnis.com and with your instructions they talked me through it. Thank you soo much for your help! It worked!

    Thread Starter greghl

    (@greghl)

    Glad you got it working!

    Thank you Greghl!!
    I have been using sliding doors for a while and your tips helped me fix the problem and update to 4.4.
    Happy holidays!

    THANK YOU Greghl!!
    Big virtal hug you right now!
    (same situation as PASTUDIO)

    I had the same problem – the last WP update killed my sliding door sites. The fix worked great. Thanks for your help Greghl.

    Moderator James Huff

    (@macmanx)

    Going to close this one and link over to https://www.ads-software.com/support/topic/wordpress-44-fatal-error-2 so that the one which starts with the fix continues to surface. ??

    Thanks @greghl !

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WordPress 4.4 fatal error’ is closed to new replies.