I have the same problem..actually, it’s more like a series of bugs..for example when I add a new category the message “An unidentified error has occurred” is displayed, but when I refresh the page the new category is there. Other problem is that in the Edit Post page, adding a new custom field will not get instantly updated, but when I hit Publish, the new custom field is there, but it is duplicated, so I have to delete it everytime.
Happens on WP 3.0 using my self-developed custom theme.
I tried switching to the fault TwentyTen theme, and everything works fine, so I know that whatever causes all the bugs must somehow be related to my theme.
Then I tried deleted the functions.php file of my theme, and everything works fine! So then I know there’s something not quite right with the codes in my functions.php file.
I checked and there’s no syntax error at all. PHP is not throwing out any errors or warning, so the issue must be how WordPress handles the functions.php file.
It turns out that in the functions.php, you must not close the initial <?php
opening tag until at the very end of the file. You can, however, close the initial opening in the middle of a statement.
The following works for me:
<?php
echo 'something';
function whatever() { ?>
<h2><?php bloginfo('name'); ?></h2>
<?php }
?>
The following does not work:
<?php
echo 'something';
?>
<?php
function whatever() { ?>
<h2><?php bloginfo('name'); ?></h2>
<?php }
?>
Why? It’s probably a bug in WP 3.0, I don’t know, maybe somebody can follow it up. But everything works perfectly in my WordPress install now.