【问题标题】:500 Internal Server Error while accessing the limesurvey survey token management page访问 Limesurvey 调查令牌管理页面时出现 500 内部服务器错误
【发布时间】:2016-03-17 06:56:21
【问题描述】:

在访问调查令牌管理页面时收到 500 内部服务器错误,并且 apache 错误日志显示,

PHP 致命错误:在非对象上调用成员函数 FetchRow() 在第 707 行的 /var/www/html/limesurvey/admin/tokens.php 中,引用者: http://****/limesurvey/admin/admin.php?sid=55876.

这里是 tokens.php 行号:707

$tksq = "SELECT count(*) FROM ".db_table_name("tokens_$surveyid")." WHERE (sent!='N' and sent<>'')";
$tksr = db_execute_num($tksq);
while ($tkr = $tksr->FetchRow())
{
    $tokenoutput .= "<th>".$clang->gT("Total invitations sent")."</th><td> $tkr[0] / $tkcount</td></tr><tr>\n";
}

有人可以帮我解决这个问题吗?

【问题讨论】:

  • 检查你的表名。 “tokens_$surveyid”是否正确? @sudhakaranR87
  • @AnkiiG :是的,该表在数据库中可用。表名:tokens_55876

标签: php limesurvey


【解决方案1】:

尝试如下:

$surveyid = 55876;
$tablename = db_table_name("tokens_$surveyid");
$tksq = "SELECT count(*) FROM ".$tablename." WHERE (sent!='N' and sent<>'')";

【讨论】:

    【解决方案2】:
    【解决方案3】:

    解决了这个问题,由于该调查表已崩溃,然后修复了整个数据库。它的工作正常。

    【讨论】:

      猜你喜欢
      • 2019-06-06
      • 2020-07-25
      • 1970-01-01
      • 2019-12-30
      • 2019-06-10
      • 1970-01-01
      • 2014-03-22
      • 2017-05-30
      • 2017-10-16
      相关资源
      最近更新 更多