久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

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

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

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

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

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

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

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

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

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

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



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

前面提到了呢,就這么紅色一句,下面全是白板,沒有其它錯誤信息呢,要有其它錯誤信息就好辦了
作者: 無為828    時間: 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ù)制代碼



報錯的時候,如果在瀏覽器里查看源代碼就是這樣,有body,但最后沒有/body

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

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

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

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

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

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

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

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


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

...

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

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

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




歡迎光臨 Discuz! 官方交流社區(qū) (http://www.9999xn.com/) Powered by Discuz! W1.0