dskld5423 2015-11-24 18:55
浏览 31
已采纳

Opencart错误地图显示空和头像

The avatar and map disappeared in here: http://togo-online.com/index.php?route=common/store

Undefined index: route in /home/ten1356/public_html/togo-online.com/catalog/controller/module/storelocator.php on line 391

Undefined index: seller_id in /home/ten1356/public_html/togo-online.com/catalog/controller/module/storelocator.php on line 498

Undefined variable: av in /home/ten1356/public_html/togo-online.com/catalog/controller/module/storelocator.php on line 506

Error: 391: if ($this->request->get['route'] == 'product/product' && $showEmptyMap == 'false' && count($store_list) == 0) { return FALSE; } return TRUE;

498: $avatars = $this->model_module_storelocator->getStoreAvatar($store['seller_id']);

506:

$avatarNode = $dom->createElement('avatar',$av);

What will be the solution to this error..Thank you

  • 写回答

1条回答 默认 最新

  • douqian2524 2015-11-24 19:13
    关注

    For the first two errors, it is telling you those indexes don't exist in the arrays. I'm assuming $this->route->get is supposed to be an associative array, but it is not finding 'route' in that array at the point you are accessing it. This is also the case with $store['seller_id'].

    The third error is saying you haven't defined the variable $av which you are passing to the function createElement. Check your code before this call and make sure that variable gets set.

    In terms of exactly how to fix these errors, there is really no way (for us) to know without seeing the rest of the code and what is happened before reaching each of these points.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 ATAC测序到底用什么peak文件做Diffbind差异分析
  • ¥15 安装ubantu过程中第一个vfat 文件挂载失败
  • ¥20 GZ::CTF如何兼容一些靶机?
  • ¥15 etcd集群部署问题
  • ¥20 谁可以帮我一下问一下各位
  • ¥15 为何重叠加权后love图的SMD与svyCreateTableOne函数绘制基线表的不一致
  • ¥15 QFILHelper怎么恢复全字库,提示进程已完成,只能恢复分区文件
  • ¥150 求 《小魔指》街机游戏机整合模拟软件
  • ¥20 你好,我想问下easyExcel下拉多选,或者复选框可以实现吗
  • ¥20 双非跨考工科哪个专业和方向就业前景好?