刚刚升级完毕,一切都乱糟糟的:)
我是全新安装的。
Apache2+PHP5+MySQL4.1.5(UTF8)+Drupal4.6.3
安装之后,在进入"admin/themes/configure"和"admin/user/configure"时,页面就全白了。一查网站的error.log,发现和么两句:
[Tue Oct 25 21:28:35 2005] [error] [client 127.0.0.1] PHP Fatal error: Only variables can be passed by reference in Z:\\QUARK\\Apache2\\htdocs\\modules\\system.module on line 649, referer: http://www.jammy.quark/?q=admin/themes
[Tue Oct 25 21:43:49 2005] [error] [client 127.0.0.1] PHP Fatal error: Only variables can be passed by reference in Z:\\QUARK\\Apache2\\htdocs\\modules\\user.module on line 1293, referer: http://www.jammy.quark/?q=admin/user
kzeng您遇到过类似的问题吗?
你用的肯定是PHP 5.05吧
你用的肯定是PHP 5.05吧?呵呵,好像PHP对程序语言的严密性要求越来越严格了,似乎所有的argument都必须以variable的形式出现才行。。。最简单的方法是降级到PHP 5.04,这样就没有问题了,不过也可以通过更改Drupal的代码来解决这个问题。
这两个问题的修正方式其实是一样的,以user模块的错误为例,找到出错的1293行,应该如下:
file_check_directory(file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path');
把它更改为:
把它更改为:
file_check_directory($foo=file_create_path(variable_get('user_picture_path', 'pictures')), 1, 'user_picture_path');
对于System模块,更改也是一样的。
按照你说的方式我解决了,多谢!
按照你说的方式我解决了,多谢!:)
不客气
不客气
我也遇到了同样的问
我也遇到了同样的问题,多谢指点迷津!
Post new comment