I upgraded a Fedora 11 instance to Fedora 12 and found the following error at the top of one of my WordPress blogs:
Parameter 1 to update_comment_type_cache() expected to be a reference, value given in wp-includes/plugin.php on line 166
The problem wasn't in a plugin, actually. It was within my theme's (R755-light) functions.php:
function update_comment_type_cache(&$queried_posts) {
The temporary fix is to remove the & from that line so it looks like this:
function update_comment_type_cache($queried_posts) {
After clearing out the WP Super Cache, the page was loading properly again. It turns out that the function actually calculates how many comments are available for a given post, so that functionality is working properly right now. A few theme authors are already releasing new versions to fix this bug, but my theme's author has not.
The credit for the fix goes to someone in the WordPress forums.

yes this is work perfectly
thanks
My problem is a little different
Warning: include_once(V:\xampp\htdocs\blog/wp-includes/pomo/mo.php) [function.include-once]: failed to open stream: No such file or directory in V:\xampp\htdocs\blog\wp-settings.php on line 342
Warning: include_once() [function.include]: Failed opening 'V:\xampp\htdocs\blog/wp-includes/pomo/mo.php' for inclusion (include_path='.;V:\xampp\php\PEAR') in V:\xampp\htdocs\blog\wp-settings.php on line 342
Warning: require(V:\xampp\htdocs\blog/wp-includes/meta.php) [function.require]: failed to open stream: No such file or directory in V:\xampp\htdocs\blog\wp-settings.php on line 364
Any ideas ?
Cool! It's working now. Thank you.
thank,
it's really help me
Had a similar issue, except that the PHP errors weren't being reported on the blog I was running for a friend. Just kept getting "No posts found".
Having disabled all the plugins, restored an old backup of the posts, I tried the create a brand new hosting account. Imported the posts and everything was fine. Install the R755 theme and posts have gone again, except this time the new hosting account gave the PHP error. A quick google search lead me to this post and 2 seconds later the blog is working again.
Many thanks.
This corrected my issue with my new theme. Thanks.
thank YOUUUUUUUUU ~ i have been looking for this for weeks! just removing the (&) did the trick!!!!!!
i'm sooo excited, thank you so very much!
I also had this exact problem with the r755 theme and no posts or pages loading in either the website or the admin dashboard. Updating functions.php with this fix resolved all the problems for me straight away. This was after migrating to a new web hosting server where I had upgraded to php5.3 - so THANK YOU for this great fix. It resolved all the problems immediately.
Great information, i've been this info for the last 2 weeks. Keep up the good work.
I have warning msg: Warning: Parameter 1 to update_comment_type_cache() expected to be a reference, value given in C:\xampp\htdocs\gstindiablog\wp-includes\plugin.php on line 166
But we can create Manual theme for mysite in this no lines like function update_comment_type_cache(&$queried_posts) { .......... what can i do....... Thanking you
thanks a lot!
it's really help me.
I also have the same problem i use xampp 1.7.4 and wordpress 2.9.2
Thanks for this, great help =)
My brother suggested I might like this web site. He used to be totally right. This put up truly made my day. You cann't imagine simply how so much time I had spent for this information! Thanks!
Gracias!
Thank you so very much!
I know this post was written a while ago, but I am using an older theme (simplebalance) and your easy fix has saved me tearing my hair out this evening. Many thanks!