PHPCMS遭遇会员投稿审核无效的解决方法 原创

yipeiwu_com6年前PHP代码库

今天接到主编那边的反馈,说本站的会员投稿平台,后台无法审核文章了,赶紧看看吧

本来想偷个懒,去度娘那里搜搜,看有相同情况的解决方案没,结果大失所望,虽然也有几个类似的情况,要么没解决,要么就是原因跟本站不同。

得了,毛主席他老人家教导我们,自己动手,丰衣足食!

先找到审核的相关程序页

 /phpcms/modules/content/content.php中的pass()方法,检查了下,并无被修改的现象

去审核页面按F12调试,控制台也无报错情况

真是奇了怪了,

查看下源码,发现了这段

<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>秒后自动离开...</font>');
			setInterval('set_time()', 1000);
			setInterval('window.close()', 2000);
		}
		function set_time() {
			$('#secondid').html(1);
		}
		</script>

怪不得不报错。。。

好了,我们把审核链接单独拿出来 http://yourdomain.com/index.php?m=content&c=content&a=pass&ajax_preview=1&catid=6&steps=1&id=533&pc_hash=4KwIwD

放到浏览器地址栏执行一下

果然,有了错误提示了

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表需要修复下。。。那就修修吧,修完之后,果然审核功能正常了

相关文章

PHP大批量数据操作时临时调整内存与执行时间的方法

复制代码 代码如下:ini_set('memory_limit', '250M'); //内存限制 set_time_limit(0); //...

redirect_uri参数错误的解决方法(必看)

redirect_uri参数错误的解决方法(必看)

今天做微信开发时候出现了redirect uri 参数错误。百度了一下。原来是Oauth授权域名没有填写 再授权域名中,填写自己用到的域名即可。   以上这篇redirect...

PHP中文处理 中文字符串截取(mb_substr)和获取中文字符串字数

一、中文截取:mb_substr() mb_substr( $str, $start, $length, $encoding ) $str,需要截断的字符串 $start,截断开始处,起...

php实现RSA加密类实例

本文实例讲述了php实现RSA加密类。分享给大家供大家参考。具体分析如下: 通过openssl实现的签名、验签、非对称加解密,需要配合x.509证书(如crt和pem)文件使用。 由于各...

php自定义错误处理用法实例

本文实例讲述了php自定义错误处理用法。分享给大家供大家参考。具体如下: <?php error_reporting(E_ALL); function ErrHandl...