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生成shtml类用法实例

本文实例讲述了php生成shtml类及其用法。分享给大家供大家参考。具体如下: 复制代码 代码如下:<?php  class Shtml{   va...

php短网址和数字之间相互转换的方法

本文实例讲述了php短网址和数字之间相互转换的方法。分享给大家供大家参考。具体实现方法如下: <?php /** * 将数字转为短网址代码 * * @param...

php购物网站支付paypal使用方法

详细参考: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_htm...

php去除二维数组的重复项方法

php中去一维数组的重复项可以通过php内置函数array_unique(),但是php的array_unique函数对多维数组并不适用,怎么才能去除二维数组中的重复项呢? 以下...

PHP操作数组的一些函数整理介绍

在数组中搜索一个特定值,如果找到返回TRUE否则返回FALSE boolean in_array(mixed needle,array haystack[,boolean strict]...