views:

35

answers:

2

I upgraded to version 3.0 and all was great. Then, I installed the plugin 'Post Links To'. I noticed then I couldn't log out without getting a white page, I also couldn't update things. Some of the dashboard still worked but it was a real problem.

I then deleted the plugin but the problem remained.

The weirdest thing is, if I change theme, or remove everything from my functions.php in the theme I want, it works again.

I made the theme on 2.9 and it also worked in 3.0 before that plugin.

Any help is hugely appreciated.

Henry.

EDIT: here is the paste bin: http://pastebin.com/GMpPEm4T

+1  A: 

remove any whitespace in the file.

matpol
I have tried, but this didn't make a difference.
Henryz
+3  A: 

Stop closing and opening the PHP brackets. The newlines are being echoed to the browser, sending the headers way before WordPress is ready. Here's a pastebin that should work:

http://pastebin.com/wdyMELvP

General rule of thumb: never close PHP in the middle of the file unless you're inside a function declaration or a conditional.

John P Bloch
I'd also suggest removing the closing PHP bracket at the end of the file, but as long as there's no whitespace after it, you're fine leaving it in there.
John P Bloch