douyiyi5284 2013-12-09 13:56
浏览 64
已采纳

opencart - 未定义的变量:

I am new to Opencart and I have inherrited a client site from a previous designer. I dont know PHP but I am getting the following error on a product page with size or colour options (in Opencart):

Notice: Undefined variable: result in /home/mobility/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 274Notice: Undefined variable: result in /home/mobility/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 274.

The code referenced in the error above looks like this:

                        $option_value_data[] = array(
                            'product_option_value_id' => $option_value['product_option_value_id'],
                            'option_value_id'         => $option_value['option_value_id'],
                            'name'                    => $option_value['name'],
                            'image'                   => $this->model_tool_image->resize($option_value['image'], 50, 50),
                            'price'                   => $price,
                            'quantity'                => $result['quantity'],
                            'price_prefix'            => $option_value['price_prefix']
                        );
                    }
                }
  • 写回答

1条回答 默认 最新

  • duanhao7786 2013-12-09 14:57
    关注

    The error caused by vQmod file. Disable the vQmod file by rename it to vqmod_file.xml_. Source: http://www.opencartnews.com/tutorials/common-opencart-errors-and-how-to-solve-them/

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

报告相同问题?

悬赏问题

  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签)
  • ¥50 sft下载大文阻塞卡死
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失
  • ¥15 springboot+vue 集成keycloak sso到阿里云
  • ¥15 win7系统进入桌面过一秒后突然黑屏
  • ¥30 backtrader对于期货交易的现金和资产计算的问题
  • ¥15 求C# .net4.8小报表工具