清除错误日志文件后再次打开购物车显示错误

时间:2016-09-23 09:47:51

标签: php opencart

我在开放式购物车版本2.1.0.1中工作,我的项目已完成我在开放式购物车中添加了一些自定义更改,使用它的mvc结构,打开购物车UI工作正常没有错误显示在前面/ admin所有模块和代码工作正常,数据插入没有错误所以问题是当我在一些页面刷新后清除错误日志文件,并且错误日志文件中再次显示错误,为什么错误日志显示错误在调试中没有错误找到了。

PHP Warning:  Division by zero in C:\xampp\htdocs\opencart\catalog\view\theme\default\template\sellerprofile\sellerprofile_form.tpl on line 218
PHP Notice:  Undefined variable: text_seller_agree in C:\xampp\htdocs\opencart\catalog\view\theme\default\template\sellerprofile\sellerprofile_form.tpl on line 691
PHP Notice:  Undefined variable: product_id in C:\xampp\htdocs\opencart\catalog\view\theme\default\template\sellerproduct\product_form.tpl on line 90



 <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-product" class="form-horizontal">
      <ul class="nav nav-tabs">
        <li class="active"><a href="#tab-general" data-toggle="tab"><?php echo $tab_general; ?></a></li>
        <?php if($config_multiseller_tab_data){ ?>
        <li><a href="#tab-data" data-toggle="tab"><?php echo $tab_data; ?></a></li>
        <?php } ?>
        <?php if($config_multiseller_tab_links){ ?>
        <li><a href="#tab-links" data-toggle="tab"><?php echo $tab_links; ?></a></li>
        <?php } ?>
        <?php if($config_multiseller_tab_attribute){ ?>
        <li><a href="#tab-attribute" data-toggle="tab"><?php echo $tab_attribute; ?></a></li>
        <?php } ?>
         <?php if($config_multiseller_tab_options){ ?>
        <li><a href="#tab-option" data-toggle="tab"><?php echo $tab_option; ?></a></li>
         <?php } ?>
        <?php if($config_multiseller_tab_recurring){ ?>
        <li><a href="#tab-recurring" data-toggle="tab"><?php echo $tab_recurring; ?></a></li>
         <?php } ?>
        <?php if($config_multiseller_tab_discount){ ?>
        <li><a href="#tab-discount" data-toggle="tab"><?php echo $tab_discount; ?></a></li>
         <?php } ?>
        <?php if($config_multiseller_tab_special){ ?>
        <li><a href="#tab-special" data-toggle="tab"><?php echo $tab_special; ?></a></li>
         <?php } ?>
        <?php if($config_multiseller_tab_image){ ?>
        <li><a href="#tab-image" data-toggle="tab"><?php echo $tab_image; ?></a></li>
         <?php } ?>
        <?php if($config_multiseller_tab_reward_points){ ?>
        <li><a href="#tab-reward" data-toggle="tab"><?php echo $tab_reward; ?></a></li>
         <?php } ?>
        <?php if($config_multiseller_tab_design){ ?>
        <li><a href="#tab-design" data-toggle="tab"><?php echo $tab_design; ?></a></li>
         <?php } ?>
      </ul>
      <div class="tab-content">
        <div class="tab-pane active" id="tab-general">
          <ul class="nav nav-tabs" id="languagetab">
            <?php foreach ($languages as $language) { ?>
            <li><a href="#languagetab<?php echo $language['language_id']; ?>" data-toggle="tab"><img src="admin/view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a></li>
            <?php } ?>
          </ul>
          <div class="tab-content">
            <?php foreach ($languages as $language) { ?>
            <div class="tab-pane" id="languagetab<?php echo $language['language_id']; ?>">
              <div class="form-group required">
                <label class="col-sm-2 control-label" for="input-name<?php echo $language['language_id']; ?>"><?php echo $entry_name; ?></label>
                <div class="col-sm-10">
                <!--  <input type="text" name="product_description[<?php echo $language['language_id']; ?>][name]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['name'] : ''; ?>" placeholder="<?php echo $entry_name; ?>" id="input-name<?php echo $language['language_id']; ?>" class="form-control" />-->

                  <?php if (isset($error_name[$language['language_id']])) { ?>
                  <div class="text-danger"><?php echo $error_name[$language['language_id']]; ?></div>
                  <?php } ?>
                </div>
                <!--New Code Start-->
               <div class="col-sm-10">
             <input type="text" name="product" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['name'] : ''; ?>" placeholder="<?php echo $entry_name; ?>" id="input-product" class="form-control" />
                <input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
                </div> <!--End New Code Start-->

              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label" for="input-description<?php echo $language['language_id']; ?>"><?php echo $entry_description; ?></label>
                <div class="col-sm-10">
                  <textarea name="product_description[<?php echo $language['language_id']; ?>][description]" placeholder="<?php echo $entry_description; ?>" id="input-description<?php echo $language['language_id']; ?>"><?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['description'] : ''; ?></textarea>
                </div>
              </div>
              <div class="form-group required">
                <label class="col-sm-2 control-label" for="input-meta-title<?php echo $language['language_id']; ?>"><?php echo $entry_meta_title; ?></label>
                <div class="col-sm-10">
                  <!--<input type="text" name="product_description[<?php echo $language['language_id']; ?>][meta_title]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['meta_title'] : ''; ?>" placeholder="<?php echo $entry_meta_title; ?>" id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control" />-->
                    <!--New Code Start-->
                   <input type="text" name="product_description[<?php echo $language['language_id']; ?>][meta_title]" value="" placeholder="<?php echo $entry_meta_title; ?>" id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control" />
                     <!--End New Code Start-->
                  <?php if (isset($error_meta_title[$language['language_id']])) { ?>
                  <div class="text-danger"><?php echo $error_meta_title[$language['language_id']]; ?></div>
                  <?php } ?>
                </div>
              </div>

0 个答案:

没有答案