在DedeEIMS中一键更新网站后网站首页出现问题解决方法
在DedeEIMS的1.1版本中一键更新网站后网站首页出现问题,编程默认的栏目列表页,出现这个问题的缘故其实是网站中的一个bug问题。查看“DEDEDATA."/cache/inc_catalog_base.inc” ,你会发现,这个$_Cs这个数组中把语言入口栏目“English(en)”或者“简体中文”当作一个栏目给发布了,而且这个发布是一键更新网站发布首页后才执行的。也就是说,一键更新网站后,其实首页已经发布成功了,但是被后续的更新栏目的过程中又被网站当作是栏目又给重新发布了,所以才导致发布后首页变成了栏目默认模版的页面。解决方法:
找到admin/config.php文件,找到其中的“UpDateCatCache”方法,第51行,修改这句sql语句“Select id,reid,channeltype From ***_arctype ”改为“Select id,reid,channeltype From ***_arctype where reid>0 ”。这时要把data/cache/inc_catalog_base.inc这个文件删掉,点击运行一键更新网站重新生成,试试吧,祝你成功!
(ps:转载时请注明本网址:http://www.zhaorongtao.com/?p=118)
查看完整版本: 在DedeEIMS中一键更新网站后网站首页出现问题解决方法
Hey would you mind letting me know which hosting company you're wlrking with? I've loaded yoour bloig inn 3 completely different web browsers and I must say ths blog loads a lot faster then most. Can you recommend a good web hosting provider at a honest price? Thanks, I appreciate it! Can I simply say what a comfort to discover a person that actually understands what they are talking abiut on the net. You definitely understand hhow to bring an issue to lkght and mmake itt important. More and more people must read this and understand this side of the story. It's surprising you're not more popular given that you most cerrtainly ppossess the gift.Tags: