Forums

Dashboard breaks if anything at all is in functions.php | WordPress 3.0 (5 posts)

  1. henryz
    Member
    Posted 1 year ago #

    I have started a new theme in WordPress 3.0 and if I put anything in functions.php the backend breaks. The site itself works though.

    I have tried different things in functions.php so I don't think it is the code.

    I am testing the site locally using MAMP, would this affect it?

    Any tips would be awesome.

    Thanks.

  2. Chris Olbekson
    Member
    Posted 1 year ago #

    Can you paste a sample of your code.

  3. henryz
    Member
    Posted 1 year ago #

    <?php
    	add_theme_support( 'post-thumbnails', array( 'post' ) ); // Add it for posts
    	set_post_thumbnail_size( 174, 135, true ); // 50 pixels wide by 50 pixels tall, hard crop mode
    ?>

    Even if I add something as simple as this, it breaks.

  4. Chris Olbekson
    Member
    Posted 1 year ago #

    Try removing the closing ?> php tag. WordPress sometimes has a problem with empty lines between closing and opening php tags which can happen if you close at the end of a file.

  5. henryz
    Member
    Posted 1 year ago #

    Removing the closing php tag didn't work. I have narrowed the problem down slightly. The problem existed after installing the 'Page Links To' plugin. I have removed the plugin and can't see any tables it may have created. It is still somehow conflicting with my functions.php file.

Topic Closed

This topic has been closed to new replies.

About this Topic