WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function set_post_thumbnail_size() in /home/papys (4 posts)

  1. papyrusgreen
    Member
    Posted 4 years ago #

    got this error message after uploading new theme typo-o-graphy and now nothing works not thi site or the word pres account just this message is shown : Fatal error: Call to undefined function set_post_thumbnail_size() in /home/papysin8/public_html/blog/wp-content/themes/typo-o-graphy/functions.php on line 22

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    ftp into your site and delete/rename that theme (Type-o-graphy) folder

    That will get you back in under the default theme

  3. lok1728
    Member
    Posted 4 years ago #

    It appears that a closing bracket has been placed prematurely in the code of the functions.php file and you will get that error message.

    If you edit the file, here's what needs to be fixed:

    find this:

    if ( function_exists( 'add_theme_support' ) ){
    add_theme_support( 'post-thumbnails' );
    }
    set_post_thumbnail_size( 510, 150, true );
    add_image_size('single_post', 510, 150, true);

    and replace it with this:

    if ( function_exists( 'add_theme_support' ) ){
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 510, 150, true );
    add_image_size('single_post', 510, 150, true);
    }

    This is on version 2.2.1 of typo-o-graphy theme.

  4. ColletteG
    Member
    Posted 4 years ago #

    Did you get back into the site?

    What happened because I have the same problem.

    Do you know how to "ftp into your site?"

    I'm trying to get more info to get back into mine.

Topic Closed

This topic has been closed to new replies.

About this Topic