A-A+

升级Discuz完成后,打开提示“Cannot use string offset as an array”错误,不能正常访问

2026年08月17日 网络安全相关 暂无评论 阅读 8 views 次

以下文字转载自https://www.iambug.cn/content/741.html

img-1.jpg

解决方法:
在网站根目录新建update_cache.php文件,内容如下:

  1. <?php
  2. define('IN_DISCUZ', true);
  3. require_once './source/class/class_core.php';
  4. $discuz= & discuz_core::instance();
  5. $discuz->cachelist = array();
  6. $discuz->init_setting = false;
  7. $discuz->init();
  8. require_once libfile('function/cache');
  9. updatecache();
  10. echo "更新缓存完成!"
  11. ?>

复制代码

打开http://你的网站/update_cache.php进行更新缓存,更新完成后删除update_cache.php文件。

标签:

给我留言

您必须 登录 才能发表留言!

Copyright © rjzb软件智博 保留所有权利.   Theme  Ality Power by serv00.com host,thanks.

用户登录