• 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you paste a sample of your code.

    Thread Starter henryz

    (@henryz)

    <?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.

    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.

    Thread Starter henryz

    (@henryz)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dashboard breaks if anything at all is in functions.php | WordPress 3.0’ is closed to new replies.