Andy's Blog » Cannot use object of type WP_Error as array in, Cannot use object of type WP_Error as array, Fatal error: Cannot use object of type WP_Error as, Fatal error: Cannot use object of type WP_Error as array, Fatal error: Cannot use object of type WP_Error as array in, Cannot use object of type WP_Error, [errors:WP_Error:private]=> array(1) { [invalid_term]=> array(1), wp-includes/taxonomy php on line 2848 referer: h, wp-includes/taxonomy php, wordpress Cannot use object of type WP_Error as array in wp-content/themes/organicfood, taxonomy.php on line 384 » WordPress这个该死的Bug

WordPress这个该死的Bug

Fatal error: Cannot use object of type WP_Error as array in wordpress/wp-includes/taxonomy.php on line 1014

taxonomy.php 第1014的代码

taxonomy.php bug

还没解决, 有时间再研究. 先记录一下

写了几句代码,把出错时1014行的$id值给抓出来

WP_Error Object
(
    [errors] => Array
        (
            [invalid_term_id] => Array
                (
                    [0] => Invalid term ID
                )

        )

    [error_data] => Array
        (
        )

)

这是在1014行前抓到的$id值

另外我把$GLOBALS打印出来,一共7621行,286KB,这是我本机测试的结果,只有一篇文章.我怀疑是cache出的问题.

还经常出错的一个文件是wp-includes/cache.php

wordpress团队还有很多Bug要整,这样的程序用着实在闹心.

Incoming search terms:

Tags: bug, WordPress专题

本文地址: http://www.21andy.com/new/20080217/957.html