欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHPCMS遭遇會(huì)員投稿審核無效的解決方法 原創(chuàng)

原創(chuàng)  更新時(shí)間:2024年06月13日 15:57:06   原創(chuàng) 投稿:hebedich  
本站的投稿平臺(tái)突然遇到會(huì)員投稿之后,主編在后臺(tái)審核功能失效的問題,在網(wǎng)站上搜了半天也沒找到方法,先把小編的處理過程記錄下來,分享給大家

今天接到主編那邊的反饋,說本站的會(huì)員投稿平臺(tái),后臺(tái)無法審核文章了,趕緊看看吧

本來想偷個(gè)懶,去度娘那里搜搜,看有相同情況的解決方案沒,結(jié)果大失所望,雖然也有幾個(gè)類似的情況,要么沒解決,要么就是原因跟本站不同。

得了,自己動(dòng)手,豐衣足食!

先找到審核的相關(guān)程序頁

 /phpcms/modules/content/content.php中的pass()方法,檢查了下,并無被修改的現(xiàn)象

去審核頁面按F12調(diào)試,控制臺(tái)也無報(bào)錯(cuò)情況

真是奇了怪了,

查看下源碼,發(fā)現(xiàn)了這段

<script type="text/javascript">art.dialog({lock:false,title:'管理操作',mouse:true, id:'content_m', content:'<span id=cloading ><a href=\'javascript:ajax_manage(1)\'>通過審核</a> | <a href=\'javascript:ajax_manage(2)\'>退稿</a> | <a href=\'javascript:ajax_manage(3)\'>刪除</a></span>',left:'100%',top:'100%',width:200,height:50,drag:true, fixed:true});
		function ajax_manage(type) {
			if(type==1) {
				$.get('?m=content&c=content&a=pass&ajax_preview=1&catid=6&steps=1&id=533&pc_hash=4KwIwD');
			} else if(type==2) {
				$.get('?m=content&c=content&a=pass&ajax_preview=1&reject=1&catid=6&steps=1&id=533&pc_hash=4KwIwD');
			} else if(type==3) {
				$.get('?m=content&c=content&a=delete&ajax_preview=1&dosubmit=1&catid=6&steps=1&id=533&pc_hash=4KwIwD');
			}
			$('#cloading').html('<font color=red>操作成功!<span id="secondid">2</span>秒后自動(dòng)離開...</font>');
			setInterval('set_time()', 1000);
			setInterval('window.close()', 2000);
		}
		function set_time() {
			$('#secondid').html(1);
		}
		</script>

怪不得不報(bào)錯(cuò)。。。

好了,我們把審核鏈接單獨(dú)拿出來 http://yourdomain.com/index.php?m=content&c=content&a=pass&ajax_preview=1&catid=6&steps=1&id=533&pc_hash=4KwIwD

放到瀏覽器地址欄執(zhí)行一下

果然,有了錯(cuò)誤提示了

MySQL Error : Table '.\***\v9_search' is marked as crashed and should be repaired 
MySQL Errno : 145 
Message : Table '.\***\v9_search' is marked as crashed and should be repaired 

原來是search表需要修復(fù)下。。。那就修修吧,修完之后,果然審核功能正常了

相關(guān)文章

最新評(píng)論