下了个wordpress的中文版,3.1的,自动安装的时候\wp-includes\pomo下的mo.php的这行代码报错,
$this->set_headers($this->make_headers($translation));
错误为:
Only variables can be passed by reference in wp-includes\pomo\mo.php on line 184
Google了一下,还是老外给力啊:
原因:
php5.0.5版本下安装wordpress中文版时就会报错。(真中彩了,我就用的5.0.5)
解决办法:
把出错的代码改为:
$tmpPageVariable = get_option('page_for_posts');
$this->queried_object = & get_page($tmpPageVariable);
就ok了。