duande3134 2017-04-01 05:32
浏览 43

致命错误:无法重新声明<method>

I'm getting the following error:

Fatal error: Cannot redeclare ControllerSaleOrder::saveValue() in /home/xxxxxxxxxx/public_html/vqmod/vqcache/vq2-system_storage_modification_admin_controller_sale_order.php on line 2617

Here's the code:

public function saveValue() {
  $json = array();
  if ($this->request->server['REQUEST_METHOD'] == 'POST') {
    $post = $this->request->post;
    $this->load->model('sale/order');
    $json['msg'] = $this->model_sale_order->saveNewValue($post);
  }
  $this->response->addHeader('Content-Type: application/json');
  $this->response->setOutput(json_encode($json));
}

public function install() {
  if ($this->request->server['REQUEST_METHOD'] == 'POST') {
    $this->load->model('sale/order');
    $json['success'] = $this->model_sale_order->install();
  }
  $this->response->addHeader('Content-Type: application/json');
  $this->response->setOutput(json_encode($json));
}
  • 写回答

1条回答 默认 最新

  • doufuxing8562 2017-04-01 05:38
    关注

    in vq2-system_storage_modification_admin_controller_sale_order.‌​php there are two methods named saveValue(). Rename one

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度