123下一页
返回列表 发新帖
查看: 3857|回复: 27

模版文件未找到或者无法访问: source/plugin/wq_wechatshow/template/wechatshow_l...

[复制链接]

6671

热度

1万

元宝

262

贡献

管理员

DZ专员

发表于 2015-7-14 09:49:29 | 显示全部楼层 |阅读模式
维清微信文章采集器 3.5自动采集版安装后导致[维清]微信导航 2.5正式版访问报错,如下提示:

Discuz! System Error模版文件未找到或者无法访问: source/plugin/wq_wechatshow/template/wechatshow_list.htm, ./template/default/wechatshow_list.htm



出现以上错误是安装了最新了的维清微信文章采集器 3.5自动采集版安装或升级文件包含删除手机版目录语句操作,
如下:
install.php执行删除目录操作语句如下
  1.                 clear_old_tpl("wq_wechatcollecting");
  2.                 clear_old_tpl("wq_wechatshow");
  3.                 clear_old_tpl("wq_wechatreader");

  4.                 wq_clear("wq_wechatcollecting");
复制代码

  1. function wq_clear($id) {

  2.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id;

  3.         if (is_dir($entrydir)) {
  4.                 $d = @dir($entrydir);
  5.                 while ($f = $d->read()) {
  6.                         if (preg_match('/^discuz\_plugin\_' . $id . '(\_\w+)?\.xml$/', $f) || in_array($f, array("install.php", "upgrade.php"))) {
  7.                                 @unlink($entrydir . '/' . $f);
  8.                         }
  9.                 }
  10.         }
  11. }

  12. function clear_old_tpl($id) {
  13.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id . '/template/touch/';
  14.         if (is_dir($entrydir)) {
  15.                 $d = @dir($entrydir);
  16.                 while ($f = $d->read()) {
  17.                         if (preg_match('/(\w+)?\.htm$/', $f)) {
  18.                                 @unlink($entrydir . '/' . $f);
  19.                         }
  20.                 }
  21.         }

  22.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id . '/template/mobile/';
  23.         if (is_dir($entrydir)) {
  24.                 $d = @dir($entrydir);
  25.                 while ($f = $d->read()) {
  26.                         if (preg_match('/(\w+)?\.htm$/', $f)) {
  27.                                 @unlink($entrydir . '/' . $f);
  28.                         }
  29.                 }
  30.         }

  31.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id . '/template/';

  32.         if (is_dir($entrydir)) {
  33.                 $d = @dir($entrydir);
  34.                 while ($f = $d->read()) {
  35.                         if (preg_match('/(\w+)?\.htm$/', $f)) {
  36.                                 @unlink($entrydir . '/' . $f);
  37.                         }
  38.                 }
  39.         }
  40. }
复制代码


upgrade.php执行删除目录语句如下
  1.                 clear_old_tpl("wq_wechatcollecting");
  2.                 clear_old_tpl("wq_wechatshow");
  3.                 clear_old_tpl("wq_wechatreader");

  4.                 wq_clear("wq_wechatcollecting");
复制代码

  1. function wq_clear($id) {

  2.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id;

  3.         if (is_dir($entrydir)) {
  4.                 $d = @dir($entrydir);
  5.                 while ($f = $d->read()) {
  6.                         if (preg_match('/^discuz\_plugin\_' . $id . '(\_\w+)?\.xml$/', $f) || in_array($f, array("install.php", "upgrade.php"))) {
  7.                                 @unlink($entrydir . '/' . $f);
  8.                         }
  9.                 }
  10.         }
  11. }

  12. function clear_old_tpl($id) {
  13.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id . '/template/touch/';
  14.         if (is_dir($entrydir)) {
  15.                 $d = @dir($entrydir);
  16.                 while ($f = $d->read()) {
  17.                         if (preg_match('/(\w+)?\.htm$/', $f)) {
  18.                                 @unlink($entrydir . '/' . $f);
  19.                         }
  20.                 }
  21.         }

  22.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id . '/template/mobile/';
  23.         if (is_dir($entrydir)) {
  24.                 $d = @dir($entrydir);
  25.                 while ($f = $d->read()) {
  26.                         if (preg_match('/(\w+)?\.htm$/', $f)) {
  27.                                 @unlink($entrydir . '/' . $f);
  28.                         }
  29.                 }
  30.         }

  31.         $entrydir = DISCUZ_ROOT . './source/plugin/' . $id . '/template/';

  32.         if (is_dir($entrydir)) {
  33.                 $d = @dir($entrydir);
  34.                 while ($f = $d->read()) {
  35.                         if (preg_match('/(\w+)?\.htm$/', $f)) {
  36.                                 @unlink($entrydir . '/' . $f);
  37.                         }
  38.                 }
  39.         }
  40. }
复制代码


解决办法如下:
游客,如果您要查看本帖隐藏内容请回复


105

热度

333

元宝

25

贡献

禁止访问

发表于 2015-7-14 17:14:08 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

694

热度

1463

元宝

0

贡献

学习ViP(审查中)

发表于 2015-7-15 08:09:50 | 显示全部楼层
看看看看

77

热度

111

元宝

0

贡献

步入草根

发表于 2015-7-16 20:43:01 | 显示全部楼层
谢谢 解决了!

2

热度

1

元宝

0

贡献

步入草根

发表于 2015-8-14 19:52:48 | 显示全部楼层
回复看内容

19

热度

75

元宝

8

贡献

禁止访问

发表于 2015-8-16 10:13:06 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

1

热度

2

元宝

0

贡献

步入草根

发表于 2015-8-19 23:50:15 | 显示全部楼层
萨达是倒萨大分散的撒

348

热度

582

元宝

16

贡献

学习ViP(审查中)

发表于 2015-11-23 16:45:19 | 显示全部楼层
???什么解决?

44

热度

51

元宝

10

贡献

步入草根

发表于 2016-1-14 23:24:40 | 显示全部楼层
我要查看下载啊啊

6

热度

92

元宝

0

贡献

禁止访问

发表于 2016-1-27 21:30:24 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
下一页 »
123下一页
返回列表 发新帖
 懒得打字嘛,点击右侧快捷回复【最新发布】   【赞助草根吧享更多权益】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

收藏帖子 返回列表 搜索

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

小黑屋|手机版|草根吧