Opencart未定义索引产品中的错误 [英] Opencart Undefined index Errors in product

查看:128
本文介绍了Opencart未定义索引产品中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用OpenCart 1.4.9,最近一直在处理product.php中的未定义索引错误,我怀疑每次用户在仪表板上创建/输入新产品时都会发生这种情况.

I am using OpenCart 1.4.9 and I have been dealing with Undefined index Errors in product.php recently, I suspect it happens every time the user is creating/input a new product on the dashboard.

如何解决这些错误,因为这会使服务器资源过载,我的站点资源使用率在cPanel上达到了91%的峰值,有时甚至是100%?

How to fix these errors because it makes the server resource overload, my site resource usage peaked at 91% sometimes 100% on the cPanel?

此处是模型文件.

此处是控制器文件.

这是我遇到的错误:

PHP Notice: Undefined index: model in /home/xxx/public_html/admin/controller/catalog/product.php on line 651

PHP Notice: Undefined index: sku in /home/xxx/public_html/admin/controller/catalog/product.php on line 659

PHP Notice: Undefined index: location in /home/xxx/public_html/admin/controller/catalog/product.php on line 667

PHP Notice: Undefined index: keyword in /home/xxx/public_html/admin/controller/catalog/product.php on line 687

PHP Notice: Undefined index: image in /home/xxx/public_html/admin/controller/catalog/product.php on line 703

PHP Notice: Undefined index: image in /home/xxx/public_html/admin/controller/catalog/product.php on line 710

PHP Notice: Undefined index: manufacturer_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 723

PHP Notice: Undefined index: shipping in /home/xxx/public_html/admin/controller/catalog/product.php on line 731

PHP Notice: Undefined index: date_available in /home/xxx/public_html/admin/controller/catalog/product.php on line 739

PHP Notice: Undefined index: quantity in /home/xxx/public_html/admin/controller/catalog/product.php on line 747

PHP Notice: Undefined index: minimum in /home/xxx/public_html/admin/controller/catalog/product.php on line 755

PHP Notice: Undefined index: subtract in /home/xxx/public_html/admin/controller/catalog/product.php on line 763

PHP Notice: Undefined index: sort_order in /home/xxx/public_html/admin/controller/catalog/product.php on line 771

PHP Notice: Undefined index: stock_status_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 783

PHP Notice: Undefined index: price in /home/xxx/public_html/admin/controller/catalog/product.php on line 791

PHP Notice: Undefined index: cost in /home/xxx/public_html/admin/controller/catalog/product.php on line 799

PHP Notice: Undefined index: status in /home/xxx/public_html/admin/controller/catalog/product.php on line 807

PHP Notice: Undefined index: tax_class_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 819

PHP Notice: Undefined index: weight in /home/xxx/public_html/admin/controller/catalog/product.php on line 827

PHP Notice: Undefined index: weight_class_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 841

PHP Notice: Undefined index: length in /home/xxx/public_html/admin/controller/catalog/product.php on line 851

PHP Notice: Undefined index: width in /home/xxx/public_html/admin/controller/catalog/product.php on line 859

PHP Notice: Undefined index: height in /home/xxx/public_html/admin/controller/catalog/product.php on line 867

PHP Notice: Undefined index: length_class_id in /home/xxx/public_html/admin/controller/catalog/product.php on line 881

推荐答案

以下是一些可能性:

  1. 您的错误中列出的字段在您的数据库中不存在.

  1. The fields (listed in your errors) don't exist in your database.

product_form.tpl模板文件可能存在问题.

There might be some problem with your product_form.tpl template file.

在添加产品时检查值是否正确插入到产品表中.

Check whether the values are getting inserted correctly to the product tables while adding a product.

将管理产品文件与未经编辑的全新OpenCart 1.4.9管理产品文件进行比较,将有助于您找出问题所在.

Comparing the admin product files with a fresh unedited OpenCart 1.4.9 admin product files will help you to find out the issue.

这篇关于Opencart未定义索引产品中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆