Error of “users.php on line 55″ in Windows Server

最新的WP2.5.x没有这个样的问题了。

使用WP 2.2.x或WP2.3.x出现这样错误的原因是WP程序所在的PHP环境是Windows Server架构的,应该是服务器的兼容问题吧!

安装错误有如下症状

  • 安装后进入后台—用户—作者和用户时出现下面的错误提示:

Fatal error: Unsupported operand types in /7/97/23697/wp-admin/users.php on line 55

  • 主页面的侧栏最上面的作者项也有问题:

Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 125
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 131
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 139
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 144
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 281
Warning: Illegal offset type in unset in /7/97/23697/wp-includes/cache.php on line 282
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 125
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 131
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 139
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 144
Warning: Illegal offset type in /7/97/23697/wp-includes/cache.php on line 281
Warning: Illegal offset type in unset in /7/97/23697/wp-includes/cache.php on line 282

the word ‘Array’ is appearing everywhere in the dashboard

Array出现在你网站的很多地方。

解决方案:

  1. 在本地测试没有问题,但一上传到服务器就出现问题。肯定是服务器的支持问题,具体什么不符合,暂未研究。
  2. 暂时可以用以下代码修改来处理:

编辑

/wp-includes/plugin.php

的第102行,在

remove_filter function

里进行如下修改:
将以下代码

unset($GLOBALS['wp_filter'][$tag][$priority][serialize($function_to_remove)]);

修改成

$wp_filter[$tag][$priority][serialize($function_to_remove)] = array();
unset( $wp_filter[$tag][$priority][serialize($function_to_remove)] );

这是一个叫“Seveneth”的外国人修改的。

Try edit

/wp-includes/plugin.php

[Line : 102], inside

remove_filter function

.
Change :

unset($GLOBALS[’wp_filter’][$tag][$priority][serialize($function_to_remove)]);

To :

$wp_filter[$tag][$priority][serialize($function_to_remove)] = array();
unset( $wp_filter[$tag][$priority][serialize($function_to_remove)] );

这个问题在WP2.3.x同样出现,不过也可以用同样的方法解决这“Array”问题。 ;)

Share and Enjoy:

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Technorati
  • YahooMyWeb
  • Live
  • Google
  • Print this article!

Related Posts

One Trackback

  1. By WordPress 2.5 正式版发布 at Xu Sheng on March 30, 2008 at 5:34 pm

    [...] 似乎也解决原来在Windows服务器兼容问题,“users.php on line 55”。 Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*