Support » Fixing WordPress » Fatal error: Call to undefined function add_theme_support() in WPFolio theme

  • Resolved wolffw

    (@wolffw)


    Hello,

    I just installed WordPress 3.0 and it is working just fine under the default themes.

    I installed the WPFolio theme, which, according to the web site should be work with 3.0 (see http://wpfolio.visitsteve.com/wiki/instructions/technical-requirements, scroll to Step 3). In order to see the admin panel again I must delete the WPFolio theme.

    My searches in the forums suggest that this problem is associated with themes and WordPress versions being incompatible. But, that doesn’t seem to be the case here.

    Here is the exact error:

    Fatal error: Call to undefined function add_theme_support() in /home1/williar5/public_html/billwolffphotography/wp-content/themes/wpfolio/functions.php on line 574

    That line in functions.php is blank so I assume that some php code is missing. I’ve checked Codex and found the add_theme_support page, but I’m not sure exactly what to add to the file.

    I should note that I installed 3.0 via FTP and the wp-includes/functions.php file was installed correctly.

    Thanks very much for any help you can offer.

    Best,
    Bill

Viewing 8 replies - 1 through 8 (of 8 total)
  • make sure the theme files are uploaded correctly. I think theme is not uploaded properly.

    This should go at line 574 and 575:

    add_theme_support('post-thumbnails');
    set_post_thumbnail_size( 150, 150,true );
    Thread Starter wolffw

    (@wolffw)

    Hi Rahul,

    Thanks for your comment. I must have been looking at the wrong functions.php file when I posted originally, because when I look at the theme’s functions.php I see those exact lines at 574 and 575. Sorry about that.

    How can I ensure that the theme is uploading properly? I’ve installed it several times.

    Thanks,
    B

    WPFolio does support WP3.0 but make sure you have WPFolio version 1.6. This hasn’t been posted on WordPress.org yet, so you have to get it here in the meantime: http://github.com/slambert/WPFolio/downloads – you want the latest version of 1.6

    Thread Starter wolffw

    (@wolffw)

    Steve,

    Thanks for getting back to me.

    I installed the latest version of 1.6 (1.6rc3) and I’m getting this error:

    Fatal error: Call to undefined function add_theme_support() in /home1/williar5/public_html/billwolffphotography/wp-content/themes/slambert-WPFolio-e6d8c22/functions.php on line 19

    Thanks for your help.

    Bill

    now your error is on line 19?

    Here’s what your functions file should match:
    http://github.com/slambert/WPFolio/blob/master/functions.php

    Compare the two up to line 19 and see if there’s a difference.

    Thread Starter wolffw

    (@wolffw)

    Hi Steve,

    Yes, they are the same. Very odd.

    Thanks,
    Bill

    I don’t think this is a WPFolio issue – though it is odd that other themes are working fine for you. I would go to wp-admin/update-core.php and select re-install automatically just to eliminate that variable.

    Thread Starter wolffw

    (@wolffw)

    That did the trick. Very weird. Thanks for your help and patience.

    Bill

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal error: Call to undefined function add_theme_support() in WPFolio theme’ is closed to new replies.