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 Zip解压 文件在线解压缩的函数代码

复制代码 代码如下: /********************** *@file - path to zip file *@destination - destination dire...

PHP自定义序列化接口Serializable用法分析

本文实例讲述了PHP自定义序列化接口Serializable用法。分享给大家供大家参考,具体如下: PHP Serializable是自定义序列化的接口。实现此接口的类将不再支持__sl...

探讨php中遍历二维数组的几种方法详解

在PHP应用当中,二维数组的应用算是高频率的了,尤其遇到较为复杂的计算时,基本上都要用到二维或者多维数组的,而在编历多维数组使用的较多的应该是 for 循环遍历和 foreach 遍历两...

php批量添加数据与批量更新数据的实现方法

本文实例讲述了php批量添加数据与批量更新数据的实现方法。分享给大家供大家参考。具体分析如下: php如果要批量保存数据我们只要使用sql的insert into语句就可能实现数据批量保...

php中socket通信机制实例详解

本文实例讲述了php中socket通信机制及用法。分享给大家供大家参考。具体分析如下: 一、socket是什么 什么是socket 所谓socket通常也称作"套接字",用于描述ip地址...