正在浏览:
1 名游客
Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
中级会员
注册日期:
2006/5/14 15:24 来自 四川大学
所属群组:
注册会员 等级: 6; EXP: 5
HP: 0 / 126 MP: 17 / 550 |
如下:
Article 0.9 Bug : When intalling mutiple copy of module Article,the administration is only effective on the last installed copy. For example ,when adding new categories in different copies, the new categories are added to exactly the same copy,often the last installed one. reason: when loading the admin section,xoops_cp_header() is called first,in this function ,a seires of objects are created.When the system has mutiple copy of article installed, the GLOBALS variables are shared and changes every time the object invoked.But it should not change since the admin section need it to determine the modules path Call trace : admin.category.php--> xoops_cp_header()[/include/cp_functions.php] loop: mod[$i]->getAdminMenu()([/kernel/module.php] -->loadAdminMenu() -->loadinfo() -->xoops_version.php -->vars.php [found defination of $GLOBALS["artdirname"]] loop end xoops_cp_header() end as mod[$i] looping,the $GLOBALS["artdirname"] changes ,this problem only occurs in mutiple installation of module Article intrestingly,this loop always set that $GLOBALS["artdirname"] to the last copy's dir,this can be seen from the call trace above Solution: My solution is that save $GLOBALS["artdirname"] before call xoops_cp_header() and restore it after the call.This contains changes to files /modules/article/admin/admin.*.php 这个Bug我追踪了好久才找到,看来article的多模块支持还不太好啊 下面是我修正过的article,only for xoops2.2 在我的机子上测试通过(xoops2.2.6)
2006/6/10 15:20
|
|||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
资深会员
注册日期:
2004/8/8 14:25 来自 山东
所属群组:
注册会员 等级: 16; EXP: 92
HP: 0 / 398 MP: 109 / 3786 |
刚复制了并安装了10个article,没想到这里还有bug.先谢谢楼上了!
希望我们的DJ能尽快祛除这个瑕疵,因为太需要功能强大而且可以复制的article了
2006/6/10 18:27
|
|||
_________________
告别xoops |
||||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
资深会员
注册日期:
2004/8/8 14:25 来自 山东
所属群组:
注册会员 等级: 16; EXP: 92
HP: 0 / 398 MP: 109 / 3786 |
下载包里面有2个article,哪个是好用的 ?
2006/6/10 18:32
|
|||
_________________
告别xoops |
||||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
资深会员
注册日期:
2004/8/8 14:25 来自 山东
所属群组:
注册会员 等级: 16; EXP: 92
HP: 0 / 398 MP: 109 / 3786 |
我用了一下.
里面有2个文件夹,art_galance和article . 上传article里面的admin文件夹覆盖原来的,不用在后台升级更新.
2006/6/10 18:50
|
|||
_________________
告别xoops |
||||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
中级会员
注册日期:
2006/5/14 15:24 来自 四川大学
所属群组:
注册会员 等级: 6; EXP: 5
HP: 0 / 126 MP: 17 / 550 |
请重新在此帖下载Bug修正版,我在xoops2.2.6上测试完全通过
2006/6/10 23:01
|
|||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
网站管理员
注册日期:
2004/6/25 19:16 所属群组:
网站管理员 注册会员 Dev+Hack 等级: 54; EXP: 50
HP: 1337 / 1337 MP: 1955 / 13195 |
考虑到虚拟机服务器端safemode等问题,clone能不能做成在本地机运行的小程序
2006/6/17 8:00
|
|||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
中级会员
注册日期:
2006/5/14 15:24 来自 四川大学
所属群组:
注册会员 等级: 6; EXP: 5
HP: 0 / 126 MP: 17 / 550 |
多谢提醒,没有问题
2006/6/21 19:40
|
|||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
中级会员
注册日期:
1/31 21:45 所属群组:
注册会员
帖子:
55
等级: 6; EXP: 27
HP: 0 / 131 MP: 18 / 298 |
怎么没下文了?
我的两个模块就存在权限无法设置等问题,急待解决
2/7 18:30
|
|||
|
回复: Article 0.9 多模块共存 无法正常管理模块 BUG |
||||
---|---|---|---|---|
Support Team
注册日期:
2006/6/26 10:17 来自 北京
所属群组:
注册会员 Dev+Hack 等级: 25; EXP: 76
HP: 247 / 619 MP: 274 / 2486 |
引文:
可以做成php/cli脚本。
2/8 3:04
|
|||
_________________
Skype: huzhenghui QQ: 443089607 |
||||
|
您可以查看帖子。
您不可发帖。
您不可回复。
您不可编辑自己的帖子。
您不可删除自己的帖子。
您不可发起投票调查。
您不可在投票调查中投票。
您不可上传附件。
您不可不经审核直接发帖。
您不可使用主题类别。
您不可以使用HTML语法。
您不可以使用签名档。