ysx24 發表於 2022-7-17 12:23:14

常见问题收集

<br /><br />常见问题来自discuz热心帮助,教程区以及网络,只是就知道的简要整理,只是用于参考<br /><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">后台无法登录</font></font></font><br /><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">1 问题场景:在账号密码正确的情况下,点击后台登录,无反应!</font></font></font><br /><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">解决方案</font></font></font><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">:</font></font></font><br /><ol><li>找到/uc_server/model/admin.php:<br /><li>找到$this-&gt;cookie_status = 0这一行,大概在27行左右把。<br /><li>找到这一行后改为:$this-&gt;cookie_status = isset($_COOKIE['sid']) ? 1 : 0;<br /><li>即可!</ol>2 discuz个人资料修改空白<br /><img title="forum.jpeg" id="aimg_15848" aid="15848" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202207/17/105050gwgqhszsjwmimzwq.jpeg" src="https://www.dismall.com/data/attachment/forum/202207/17/105050gwgqhszsjwmimzwq.jpeg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br />解决办法:编码utf8进入后台数据库执行<br /><ol><li>REPLACE INTO `pre_common_setting` VALUES<br /><li>('profilegroup', 'a:5:{s:4:&quot;base&quot;;a:4:{s:9:&quot;available&quot;;i:1;s:12:&quot;displayorder&quot;;i:0;s:5:&quot;title&quot;;s:12:&quot;基本资料&quot;;s:5:&quot;field&quot;;a:17:{s:8:&quot;realname&quot;;s:8:&quot;realname&quot;;s:6:&quot;gender&quot;;s:6:&quot;gender&quot;;s:8:&quot;birthday&quot;;s:8:&quot;birthday&quot;;s:9:&quot;birthcity&quot;;s:9:&quot;birthcity&quot;;s:10:&quot;residecity&quot;;s:10:&quot;residecity&quot;;s:10:&quot;residedist&quot;;s:10:&quot;residedist&quot;;s:15:&quot;affectivestatus&quot;;s:15:&quot;affectivestatus&quot;;s:10:&quot;lookingfor&quot;;s:10:&quot;lookingfor&quot;;s:9:&quot;bloodtype&quot;;s:9:&quot;bloodtype&quot;;s:6:&quot;field1&quot;;s:6:&quot;field1&quot;;s:6:&quot;field2&quot;;s:6:&quot;field2&quot;;s:6:&quot;field3&quot;;s:6:&quot;field3&quot;;s:6:&quot;field4&quot;;s:6:&quot;field4&quot;;s:6:&quot;field5&quot;;s:6:&quot;field5&quot;;s:6:&quot;field6&quot;;s:6:&quot;field6&quot;;s:6:&quot;field7&quot;;s:6:&quot;field7&quot;;s:6:&quot;field8&quot;;s:6:&quot;field8&quot;;}}s:7:&quot;contact&quot;;a:4:{s:5:&quot;title&quot;;s:12:&quot;联系方式&quot;;s:9:&quot;available&quot;;s:1:&quot;1&quot;;s:12:&quot;displayorder&quot;;s:1:&quot;1&quot;;s:5:&quot;field&quot;;a:7:{s:9:&quot;telephone&quot;;s:9:&quot;telephone&quot;;s:6:&quot;mobile&quot;;s:6:&quot;mobile&quot;;s:3:&quot;icq&quot;;s:3:&quot;icq&quot;;s:2:&quot;qq&quot;;s:2:&quot;qq&quot;;s:5:&quot;yahoo&quot;;s:5:&quot;yahoo&quot;;s:3:&quot;msn&quot;;s:3:&quot;msn&quot;;s:6:&quot;taobao&quot;;s:6:&quot;taobao&quot;;}}s:3:&quot;edu&quot;;a:4:{s:9:&quot;available&quot;;i:1;s:12:&quot;displayorder&quot;;i:2;s:5:&quot;title&quot;;s:12:&quot;教育情况&quot;;s:5:&quot;field&quot;;a:2:{s:14:&quot;graduateschool&quot;;s:14:&quot;graduateschool&quot;;s:9:&quot;education&quot;;s:9:&quot;education&quot;;}}s:4:&quot;work&quot;;a:4:{s:9:&quot;available&quot;;i:1;s:12:&quot;displayorder&quot;;i:3;s:5:&quot;title&quot;;s:12:&quot;工作情况&quot;;s:5:&quot;field&quot;;a:4:{s:10:&quot;occupation&quot;;s:10:&quot;occupation&quot;;s:7:&quot;company&quot;;s:7:&quot;company&quot;;s:8:&quot;position&quot;;s:8:&quot;position&quot;;s:7:&quot;revenue&quot;;s:7:&quot;revenue&quot;;}}s:4:&quot;info&quot;;a:4:{s:5:&quot;title&quot;;s:12:&quot;个人信息&quot;;s:9:&quot;available&quot;;s:1:&quot;1&quot;;s:12:&quot;displayorder&quot;;s:1:&quot;4&quot;;s:5:&quot;field&quot;;a:10:{s:10:&quot;idcardtype&quot;;s:10:&quot;idcardtype&quot;;s:6:&quot;idcard&quot;;s:6:&quot;idcard&quot;;s:7:&quot;address&quot;;s:7:&quot;address&quot;;s:7:&quot;zipcode&quot;;s:7:&quot;zipcode&quot;;s:4:&quot;site&quot;;s:4:&quot;site&quot;;s:3:&quot;bio&quot;;s:3:&quot;bio&quot;;s:8:&quot;interest&quot;;s:8:&quot;interest&quot;;s:7:&quot;sightml&quot;;s:7:&quot;sightml&quot;;s:12:&quot;customstatus&quot;;s:12:&quot;customstatus&quot;;s:10:&quot;timeoffset&quot;;s:10:&quot;timeoffset&quot;;}}}');</ol><br />3 Discuz模板“我的”下拉菜单不显示解决方法<br /><font color="#000"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px"><font face="&amp;quot;">在<font style="color:rgb(51, 51, 51)"><font style="background-color:transparent">模板</font></font>的头部,头像左侧的“我的”下拉框点击没反应;“退出”处看上去也有一点小错位<br /></font></font></font></font><font color="#000"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px"><font face="&amp;quot;">关于这样的问题,一般是模板的头部文件代码出现了一点问题<br /></font></font></font></font><font color="#000"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px"><font face="&amp;quot;">找到模板目录header.php,查找:&lt;!--{if $_G['uid']}--&gt;,在下面增加</font></font></font></font><br /><ol><li>ul id=&quot;myitem_menu&quot; class=&quot;p_pop&quot; style=&quot;display: none;&quot;&gt;<br /><li>&lt;li&gt;&lt;a href=&quot;forum.php?mod=guide&amp;view=my&quot;&gt;{lang mypost}&lt;/a&gt;&lt;/li&gt;<br /><li>&lt;li&gt;&lt;a href=&quot;home.php?mod=space&amp;do=favorite&amp;view=me&quot;&gt;{lang favorite}&lt;/a&gt;&lt;/li&gt;<br /><li>&lt;li&gt;&lt;a href=&quot;home.php?mod=space&amp;do=friend&quot;&gt;{lang friends}&lt;/a&gt;&lt;/li&gt;<br /><li>&lt;!--{hook/global_myitem_extra}--&gt;<br /><li>&lt;/ul&gt;</ol>4、 discuz UC连接失败,头像上传失败解决办法<br /><br />头像上传失败,或者上传没反应,很大原因是UC连接失败造成的<br />登录UC看看UC是否连接正常,有过搬家的还要看看UC应用管理域名是否对应现在域名,如果连接失败<br />用FTP 工具 查找<br />/config/config_ucenter.php<br />查找<br />define('UC_KEY<br />看看与UC通信密钥是否一致:<br /><img title="forum (2).jpeg" id="aimg_15849" aid="15849" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202207/17/105651rzqb414t41ft11rt.jpeg" src="https://www.dismall.com/data/attachment/forum/202207/17/105651rzqb414t41ft11rt.jpeg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br />如果不一致修改成与 define('UC_KEY&nbsp;&nbsp;一致即可)<br /><img title="forum (3).jpeg" id="aimg_15850" aid="15850" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202207/17/105827x1mts70sut41zs3u.jpeg" src="https://www.dismall.com/data/attachment/forum/202207/17/105827x1mts70sut41zs3u.jpeg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br />5、Discuz!diy模块不能删除或删不干净的解决方法<br />有时diy在前台删除了,后台却找不到“清除未使用模块”;有时明明只diy了板块2,后台这一模块下却关联一大群板块......<br /><br />解决:<br />如果所有diy都不想要了,手动清空(不是删除)_common_block、_common_diy_data与_common_template_block表,然后删除\data\diy\下的所有子文件夹,保证你以前所有的diy干干净净,就像从未diy过的disciz x。<br />要是只想删除其中某些而不是要全部删除,那就要进表里慢慢地找了。<br />&nbsp;&nbsp;去数据库的pre_common_block表里删除“门户-模块管理”中多余的模块。<br />&nbsp;&nbsp;去数据库的pre_common_diy_data表里删除“门户-页面管理”中多余的页面。<br />5、帖子已经删除但是搜索中复现的解决办法<br />后台-数据库-数据升级<br /><img title="forum (4).jpeg" id="aimg_15851" aid="15851" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202207/17/110353mj8bnbj19r6nb6fb.jpeg" src="https://www.dismall.com/data/attachment/forum/202207/17/110353mj8bnbj19r6nb6fb.jpeg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="600" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br />1289为帖子uid,按实际修改<br /><ol><li>delete from pre_forum_thread where tid=1289;<br /><li>delete from pre_forum_port where tid=1289;</ol>如果没有效果再点下上面的 开启所有版块 主题回收站那个下面的那个提交即可<br /><br />6、<font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:20px">删除安全提问</font></font></font><br /><img title="forum (5).jpeg" id="aimg_15852" aid="15852" src1="static/image/common/none.gif" zoom="https://www.dismall.com/data/attachment/forum/202207/17/110645gpqsqtgxzjqhsdqq.jpeg" src="https://www.dismall.com/data/attachment/forum/202207/17/110645gpqsqtgxzjqhsdqq.jpeg" class="zoom" onclick="zoom(this, this.src, 0, 0, 0)" width="520" inpost="1" onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})" /><br />/template/default/member/login.htm<br />删除 92-118&nbsp;&nbsp;(代码如有错位请自行对照)<br /><ol><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;!--{if empty($_GET['auth']) || $questionexist || $seccodecheck}--&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;div class=&quot;rfm&quot;&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;table&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;th&gt;{lang security_q}:&lt;/th&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;select id=&quot;loginquestionid_$loginhash&quot; width=&quot;213&quot; name=&quot;questionid&quot;{if !$questionexist || $seccodecheck}&lt;!--{/if}--&gt;&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;0&quot;&gt;&lt;!--{if $questionexist &amp;&amp; !$seccodecheck}--&gt;{lang security_question_0}&lt;!--{else}--&gt;{lang security_question}&lt;!--{/if}--&gt;&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;1&quot;&gt;{lang security_question_1}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;2&quot;&gt;{lang security_question_2}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;3&quot;&gt;{lang security_question_3}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;4&quot;&gt;{lang security_question_4}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;5&quot;&gt;{lang security_question_5}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;6&quot;&gt;{lang security_question_6}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;option value=&quot;7&quot;&gt;{lang security_question_7}&lt;/option&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;/select&gt;&lt;/td&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;/table&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;div class=&quot;rfm&quot; id=&quot;loginanswer_row_$loginhash&quot; {if !$questionexist || $seccodecheck} style=&quot;display:none&quot;{/if}&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;table&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;tr&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;th&gt;{lang security_a}:&lt;/th&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;input type=&quot;text&quot; name=&quot;answer&quot; id=&quot;loginanswer_$loginhash&quot; autocomplete=&quot;off&quot; size=&quot;30&quot; class=&quot;px p_fre&quot; tabindex=&quot;1&quot; /&gt;&lt;/td&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&lt;/tr&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;/table&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;/div&gt;<br /><li>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&lt;!--{/if}--&gt;&lt;span style=&quot;background-color: rgb(255, 255, 255);&quot;&gt;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &lt;/span&gt;</ol>7、Discuz!论坛批量替换帖子标题关键字或者帖子内容关键字的方法:<br />批量替换帖子内容方法:<br />数据库执行<br /><ol><li>UPDATE `pre_forum_post` SET message = REPLACE(message,'旧内容','新内容')</ol>8、验证码异常,导致disciz论坛无法登陆解决办法<br />进config/config_global.php,找到$_config['admincp']['mustlogin'],改成0,即可登录后台。<br />如果找不到,自己加一行<br /><ol><li>$_config['admincp']['mustlogin'] = 0;</ol><br /><br />还有一些杂项<br /><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">1 宝塔的宝塔网站加速4.2:会导致退出登录异常</font></font></font><br /><font color="#006400"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">2 后台</font></font></font><font size="2"><font style="color:rgb(51, 51, 51)"><font face="-apple-system-font, &amp;quot;"><font color="#006400">备份数据库先关掉宝塔nginx防火墙&nbsp;&nbsp;不然IP会被屏蔽,免费nginx防火墙问题</font></font></font></font><br /><font size="2"><font style="color:rgb(51, 51, 51)"><font face="-apple-system-font, &amp;quot;"><font color="#006400">3、</font></font></font></font><br /><font size="2"><font face="-apple-system-font, &amp;quot;"><font color="#333333">4 </font></font></font><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">宝塔防盗链不能使用泛域名,否则会导致mysql崩溃无法启动,随后phpmyadmin 会停止工作并且无法重新启动</font></font></font><br /><font color="#333333"><font face="-apple-system-font, &amp;quot;"><font style="font-size:16px">5 </font></font></font><br /><font size="2"><font style="color:rgb(51, 51, 51)"><font face="-apple-system-font, &amp;quot;">6&nbsp;&nbsp;非install方式搬家,用导入数据库并修改config/config_global.php&nbsp; &nbsp;config_ucenter.php等方式恢复会出现数据库,会导致数据库部分数据异常,会出现后台部分界面比如界面-界面设置- 贴内用户信息,帖子内容页,属性名片等等一众页面保存会出现502报错或保存没反应</font></font></font><font size="2"><font style="color:rgb(51, 51, 51)"><font face="-apple-system-font, &amp;quot;"><br /></font></font></font><br /><font size="2"><font style="color:rgb(51, 51, 51)"><font face="-apple-system-font, &amp;quot;">留空为一些以知插件的有严重bug,考虑了下决定去掉了</font></font></font><br /><br />apple<em>, </em>system<em>, </em>quot
頁: [1]
查看完整版本: 常见问题收集