未识别的索引、变量和权限被拒绝
Unidentified index, variable, and permission denied
我使用的是 opencart 2.0,在安装扩展程序之前一切正常。我之前已经安装了一个主题,但在插入扩展后出现了几个错误。我对 Php 不熟悉,所以我很难弄明白。
我查了一下,有人说可能是版本缺陷,但是我用的都是opencart 2.0,还有人说可能是配置文件没设置好,我没有将我的网站从本地移动到实时,所以我的配置文件中的所有内容都是正确的。
他最后一个是插入 isset,对此我不确定,但从代码的外观来看,我认为一切都已正确设置。
这些是错误
Notice: Undefined index: company_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 85
2015-03-21 11:22:23 - PHP Notice: Undefined index: company_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 86
2015-03-21 11:22:23 - PHP Notice: Undefined index: tax_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 87
2015-03-21 11:22:23 - PHP Notice: Undefined index: tax_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 88
2015-03-21 11:35:31 - PHP Notice: Undefined index: company_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 85
2015-03-21 11:35:31 - PHP Notice: Undefined index: company_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 86
2015-03-21 11:35:31 - PHP Notice: Undefined index: tax_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 87
2015-03-21 11:35:31 - PHP Notice: Undefined index: tax_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 88
2015-03-21 11:38:17 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-21 11:38:17 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-21 11:52:09 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-21 11:52:09 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-21 20:09:29 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-21 20:09:29 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 7:35:52 - PHP Notice: unserialize(): Error at offset 0 of 31 bytes in C:\wamp\www\quick3\system\library\cart.php on line 23
2015-03-25 7:38:12 - PHP Notice: Undefined variable: text_qty in C:\wamp\www\quick3\vqmod\vqcache\vq2-catalog_view_theme_marketshop_template_product_product.tpl on line 294
2015-03-25 7:38:27 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 7:38:27 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 8:16:12 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 8:16:12 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 8:35:20 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 8:35:20 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 10:08:01 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 10:08:01 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
这是密码
d_quickcheckout.php 第 644 行
return $this->load->view($template, $data);
payment_address.tpl 第 85、86、87 和 88 行
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['company_id_display'] = '<?php echo $customer_group['company_id_display']; ?>';
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['company_id_required'] = '<?php echo $customer_group['company_id_required']; ?>';
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['tax_id_display'] = '<?php echo $customer_group['tax_id_display']; ?>';
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['tax_id_required'] = '<?php echo $customer_group['tax_id_required']; ?>';
vq2-system_engine_loader.php 第 37 行
require(VQMod::modCheck($file));
当我检查我的 vqmod 日志时,出现了
---------- Date: 2015-03-21 11:20:05 ~ IP : ::1 ----------
REQUEST URI : /quick3/admin/index.php?route=common/dashboard&token=5f0179921a263de04c1c92819780f622
MOD DETAILS:
modFile : C:\wamp\www\quick3\vqmod/xml/extension_name.xml
id : EXTENSION
version : 2.0.0.0
vqmver : 2.2.1
author : dreamvention.com
VQModObject::parseMods - Could not resolve path for [catalog/view/theme/default/template/payment/pp_pro_uk.tpl] (SKIPPED)
----------------------------------------------------------------------
---------- Date: 2015-03-21 11:35:16 ~ IP : ::1 ----------
REQUEST URI : /quick3/admin/index.php?route=extension/module&token=5f0179921a263de04c1c92819780f622
MOD DETAILS:
modFile : C:\wamp\www\quick3\vqmod/xml/extension_name.xml
id : EXTENSION
version : 2.0.0.0
vqmver : 2.2.1
author : dreamvention.com
VQModObject::parseMods - Could not resolve path for [catalog/view/theme/default/template/payment/pp_pro_uk.tpl] (SKIPPED)
MOD DETAILS:
modFile : C:\wamp\www\quick3\vqmod/xml/theme_name.xml
id : Theme
version : 2.0
vqmver : 2.X
author : HarnishDesign.net
VQModObject::parseMods - Could not resolve path for [catalog/controller/module/product.php] (SKIPPED)
----------------------------------------------------------------------
第 641 行的代码 d_quickcheckout.php 中存在拼写错误,这导致第 644 行查找尚未设置的变量。
在第 641 行将 $templatetemplate 更改为 $template。
我使用的是 opencart 2.0,在安装扩展程序之前一切正常。我之前已经安装了一个主题,但在插入扩展后出现了几个错误。我对 Php 不熟悉,所以我很难弄明白。
我查了一下,有人说可能是版本缺陷,但是我用的都是opencart 2.0,还有人说可能是配置文件没设置好,我没有将我的网站从本地移动到实时,所以我的配置文件中的所有内容都是正确的。 他最后一个是插入 isset,对此我不确定,但从代码的外观来看,我认为一切都已正确设置。
这些是错误
Notice: Undefined index: company_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 85
2015-03-21 11:22:23 - PHP Notice: Undefined index: company_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 86
2015-03-21 11:22:23 - PHP Notice: Undefined index: tax_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 87
2015-03-21 11:22:23 - PHP Notice: Undefined index: tax_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 88
2015-03-21 11:35:31 - PHP Notice: Undefined index: company_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 85
2015-03-21 11:35:31 - PHP Notice: Undefined index: company_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 86
2015-03-21 11:35:31 - PHP Notice: Undefined index: tax_id_display in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 87
2015-03-21 11:35:31 - PHP Notice: Undefined index: tax_id_required in C:\wamp\www\quick3\catalog\view\theme\default\template\d_quickcheckout\payment_address.tpl on line 88
2015-03-21 11:38:17 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-21 11:38:17 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-21 11:52:09 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-21 11:52:09 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-21 20:09:29 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-21 20:09:29 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 7:35:52 - PHP Notice: unserialize(): Error at offset 0 of 31 bytes in C:\wamp\www\quick3\system\library\cart.php on line 23
2015-03-25 7:38:12 - PHP Notice: Undefined variable: text_qty in C:\wamp\www\quick3\vqmod\vqcache\vq2-catalog_view_theme_marketshop_template_product_product.tpl on line 294
2015-03-25 7:38:27 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 7:38:27 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 8:16:12 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 8:16:12 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 8:35:20 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 8:35:20 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
2015-03-25 10:08:01 - PHP Notice: Undefined variable: template in C:\wamp\www\quick3\catalog\controller\module\d_quickcheckout.php on line 644
2015-03-25 10:08:01 - PHP Warning: require(C:\wamp\www\quick3\catalog\view\theme): failed to open stream: Permission denied in C:\wamp\www\quick3\vqmod\vqcache\vq2-system_engine_loader.php on line 37
这是密码
d_quickcheckout.php 第 644 行
return $this->load->view($template, $data);
payment_address.tpl 第 85、86、87 和 88 行
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['company_id_display'] = '<?php echo $customer_group['company_id_display']; ?>';
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['company_id_required'] = '<?php echo $customer_group['company_id_required']; ?>';
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['tax_id_display'] = '<?php echo $customer_group['tax_id_display']; ?>';
customer_group[<?php echo $customer_group['customer_group_id']; ?>]['tax_id_required'] = '<?php echo $customer_group['tax_id_required']; ?>';
vq2-system_engine_loader.php 第 37 行
require(VQMod::modCheck($file));
当我检查我的 vqmod 日志时,出现了
---------- Date: 2015-03-21 11:20:05 ~ IP : ::1 ----------
REQUEST URI : /quick3/admin/index.php?route=common/dashboard&token=5f0179921a263de04c1c92819780f622
MOD DETAILS:
modFile : C:\wamp\www\quick3\vqmod/xml/extension_name.xml
id : EXTENSION
version : 2.0.0.0
vqmver : 2.2.1
author : dreamvention.com
VQModObject::parseMods - Could not resolve path for [catalog/view/theme/default/template/payment/pp_pro_uk.tpl] (SKIPPED)
----------------------------------------------------------------------
---------- Date: 2015-03-21 11:35:16 ~ IP : ::1 ----------
REQUEST URI : /quick3/admin/index.php?route=extension/module&token=5f0179921a263de04c1c92819780f622
MOD DETAILS:
modFile : C:\wamp\www\quick3\vqmod/xml/extension_name.xml
id : EXTENSION
version : 2.0.0.0
vqmver : 2.2.1
author : dreamvention.com
VQModObject::parseMods - Could not resolve path for [catalog/view/theme/default/template/payment/pp_pro_uk.tpl] (SKIPPED)
MOD DETAILS:
modFile : C:\wamp\www\quick3\vqmod/xml/theme_name.xml
id : Theme
version : 2.0
vqmver : 2.X
author : HarnishDesign.net
VQModObject::parseMods - Could not resolve path for [catalog/controller/module/product.php] (SKIPPED)
----------------------------------------------------------------------
第 641 行的代码 d_quickcheckout.php 中存在拼写错误,这导致第 644 行查找尚未设置的变量。
在第 641 行将 $templatetemplate 更改为 $template。