男的舔女的下面视频在线播放-少妇愉情理仑片高潮日本-久久久久久国产一区二区三区-麻豆精品一区二区综合-国产精品超碰在线观看-网红极品女神精品视频在线-国产亚洲综合777-高清性视频一区二区播放-中文字幕第一页亚洲天堂

Discuz! 官方交流社區(qū)

標(biāo)題: 任意頁面,頻繁偶發(fā)出現(xiàn)紅色Discuz! System Error,且無其它任何報(bào)錯(cuò)提示 [打印本頁]

作者: 無為828    時(shí)間: 2023-3-22 11:32
標(biāo)題: 任意頁面,頻繁偶發(fā)出現(xiàn)紅色Discuz! System Error,且無其它任何報(bào)錯(cuò)提示
如圖,在論壇任何頁面都有可能出現(xiàn)這個(gè)報(bào)錯(cuò),包括后臺(tái)頁面也是

頻繁偶發(fā),不始終出現(xiàn),再次刷新基本就正常,光這句提示,沒有任何其它具體錯(cuò)誤信息

web是阿里云的ECS,數(shù)據(jù)也是阿里云的RDS,內(nèi)網(wǎng)連接用了3年了應(yīng)該算很穩(wěn)定

php里沒有錯(cuò)誤日志產(chǎn)生,mysql里也沒有錯(cuò)誤日志產(chǎn)生

具體是哪天開始這樣抽風(fēng)的沒準(zhǔn)確印象,畢竟一開始不會(huì)覺得這是個(gè)大問題,刷新刷新就過去了

但天天老出現(xiàn),平均訪問十幾二十頁就出現(xiàn)一次就煩人了,估計(jì)是最近半個(gè)月內(nèi)有這情況的吧

是否和升級(jí)新補(bǔ)丁有關(guān)呢?

(, 下載次數(shù): 110)



作者: dashen    時(shí)間: 2023-3-22 11:34
關(guān)鍵的錯(cuò)誤信息你沒截圖
作者: 無為828    時(shí)間: 2023-3-22 11:36
dashen 發(fā)表于 2023-3-22 11:34
關(guān)鍵的錯(cuò)誤信息你沒截圖

前面提到了呢,就這么紅色一句,下面全是白板,沒有其它錯(cuò)誤信息呢,要有其它錯(cuò)誤信息就好辦了
作者: 無為828    時(shí)間: 2023-3-22 11:48

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.         <title>bbs.xxxxxx.cn - Database Error</title>
  5.         <meta charset="utf-8" />
  6.         <meta name="renderer" content="webkit" />
  7.         <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  8.         <meta name="ROBOTS" content="NOINDEX,NOFOLLOW,NOARCHIVE" />
  9.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  10.         <style type="text/css">
  11.         <!--
  12.         body { background-color: white; color: black; font: 9pt/11pt verdana, arial, sans-serif;}
  13.         #container { max-width: 1024px; margin: auto; }
  14.         #message   { max-width: 1024px; color: black; }

  15.         .red  {color: red;}
  16.         a:link     { font: 9pt/11pt verdana, arial, sans-serif; color: red; }
  17.         a:visited  { font: 9pt/11pt verdana, arial, sans-serif; color: #4e4e4e; }
  18.         a.guess { font: 11pt/13pt verdana, arial, sans-serif; color: blue; }
  19.         h1 { color: #FF0000; font: 18pt "Verdana"; margin-bottom: 0.5em;}
  20.         .bg1{ background-color: #FFFFCC;}
  21.         .bg2{ background-color: #EEEEEE;}
  22.         .bg3{ background-color: #FFA66C; font-weight: bold;}
  23.         .table {background: #AAAAAA; font: 11pt Menlo,Consolas,"Lucida Console";}
  24.         .table tbody{word-break: break-all;}
  25.         .info {
  26.             background: none repeat scroll 0 0 #F3F3F3;
  27.             border: 0px solid #aaaaaa;
  28.             border-radius: 10px 10px 10px 10px;
  29.             color: #000000;
  30.             font-size: 11pt;
  31.             line-height: 160%;
  32.             margin-bottom: 1em;
  33.             padding: 1em;
  34.         }
  35.         .info svg { width: 40%; min-width: 200px; display: block; margin: auto; margin-bottom: 30px; fill: #999; }
  36.         .info svg .xicon { fill: #d31f0d; }

  37.         .help {
  38.             background: #F3F3F3;
  39.             border-radius: 10px 10px 10px 10px;
  40.             font: 14px verdana, arial, sans-serif;
  41.             text-align: center;
  42.             line-height: 160%;
  43.             padding: 1em;
  44.             margin: 1em 0;
  45.         }

  46.         .sql {
  47.             background: none repeat scroll 0 0 #FFFFCC;
  48.             border: 1px solid #aaaaaa;
  49.             color: #000000;
  50.             font: arial, sans-serif;
  51.             font-size: 9pt;
  52.             line-height: 160%;
  53.             margin-top: 1em;
  54.             padding: 4px;
  55.         }
  56.         -->
  57.         </style>
  58. </head>
  59. <body>
  60. <div id="container">
  61. <h1>Discuz! Database Error</h1>
復(fù)制代碼



報(bào)錯(cuò)的時(shí)候,如果在瀏覽器里查看源代碼就是這樣,有body,但最后沒有/body

作者: crx349    時(shí)間: 2023-3-22 11:54
數(shù)據(jù)庫卡了? 報(bào)錯(cuò)信息都沒有?
作者: mingkong    時(shí)間: 2023-3-22 13:11
看看mysql是否連接過多或者超負(fù)荷了
作者: 科站網(wǎng)    時(shí)間: 2023-3-22 13:34
打開config/config_global.php
搜索
  1. $_config['security']['error']['showerror']
復(fù)制代碼

將后面的數(shù)字改為1
如:
  1. $_config['security']['error']['showerror'] = '1';
復(fù)制代碼

然后遇到的時(shí)候再截圖
作者: niuniu1688    時(shí)間: 2023-3-22 22:45
數(shù)據(jù)庫問題
作者: 專家    時(shí)間: 2023-3-22 23:21
無為828 發(fā)表于 2023-3-22 11:48
報(bào)錯(cuò)的時(shí)候,如果在瀏覽器里查看源代碼就是這樣,有body,但最后沒有/body
...

試一下,source\class\discuz\discuz_error.php 269行附近找一下有沒有 getglobal('clientip')
如果有,將它所在的那一行給注釋掉(前面加上 // )
再看看報(bào)錯(cuò)是否恢復(fù)正常

另外data/log文件夾里理應(yīng)另有一份記錄(應(yīng)該在errorlog里),即便沒顯示出來也可以看看那里。
作者: 無為828    時(shí)間: 2023-3-23 12:18
專家 發(fā)表于 2023-3-22 23:21
試一下,source\class\discuz\discuz_error.php 269行附近找一下有沒有 getglobal('clientip')
如果有, ...

你好,修改后確實(shí)報(bào)錯(cuò)的時(shí)候能顯示出來具體信息了,不過好像看上去這些內(nèi)容起不到什么幫助的樣子

作者: 無為828    時(shí)間: 2023-3-23 12:20
科站網(wǎng) 發(fā)表于 2023-3-22 13:34
打開config/config_global.php
搜索
將后面的數(shù)字改為1

你好,修改后確實(shí)報(bào)錯(cuò)的時(shí)候能顯示出來具體信息了,不過好像看上去這些內(nèi)容起不到什么幫助的樣子


作者: 湖中沉    時(shí)間: 2023-3-23 12:25
無為828 發(fā)表于 2023-3-23 12:20
你好,修改后確實(shí)報(bào)錯(cuò)的時(shí)候能顯示出來具體信息了,不過好像看上去這些內(nèi)容起不到什么幫助的樣子

...

你這是數(shù)據(jù)庫掛了或者你配置的數(shù)據(jù)庫信息錯(cuò)了,連接不到數(shù)據(jù)庫
作者: 科站網(wǎng)    時(shí)間: 2023-3-23 12:52
優(yōu)化下數(shù)據(jù)庫配置
作者: false001    時(shí)間: 2023-3-23 15:22
樓主,有安裝 redis沒,作內(nèi)存緩存用,應(yīng)該可以提升性能
作者: 專家    時(shí)間: 2023-3-23 15:32
無為828 發(fā)表于 2023-3-23 12:18
你好,修改后確實(shí)報(bào)錯(cuò)的時(shí)候能顯示出來具體信息了,不過好像看上去這些內(nèi)容起不到什么幫助的樣子
...

那你也沒說這具體信息是啥呀
作者: 專家    時(shí)間: 2023-3-23 15:37
湖中沉 發(fā)表于 2023-3-23 12:25
你這是數(shù)據(jù)庫掛了或者你配置的數(shù)據(jù)庫信息錯(cuò)了,連接不到數(shù)據(jù)庫

這事挺奇怪的,這行代碼里的getglobal和dgmdate都是function core里的函數(shù),getglobal前面還調(diào)用了一次,也沒有影響,感覺不對(duì)勁啊。




歡迎光臨 Discuz! 官方交流社區(qū) (http://m.sdtechgong.com.cn/) Powered by Discuz! X5.0