Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Illegal string offset bei aktivem Cache

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Illegal string offset bei aktivem Cache
    am: 15. März 2016, 14:42:10
    Hallo zusammen,

    erhalte folgende Fehlermeldung:

    Code: PHP  [Auswählen]
    Warning: Illegal string offset 'COUNT' in \testshop\templates_c\%%3E^3EF^3EF5D302%%box_best_sellers.html.php on line 2

    Im Einsatz ist PHP 5.5. Shopversion ist die aktuellste inkl. SP3.
    Sobald ich im Admin bei [Cache Optionen] --> [Cache benutzen} auf false stelle ist der Fehler offensichtlich nicht mehr da, da der Cache ja nicht mehr benutzt wird. Sämtliche Cache-Verzeichnisse (Cache & Template_C)  wurden geleert.

    Jetzt die Frage: In welcher/en Datei(en) muss hier was angepasst werden, damit das mit dem Cache wieder funktioniert?

    Danke.

    Linkback: https://www.modified-shop.org/forum/index.php?topic=34561.0

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.127
    • Geschlecht:
    Re: Illegal string offset bei aktivem Cache
    Antwort #1 am: 15. März 2016, 14:48:29
    Kommt das bei einer bestimmten Seite, oder immer?

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #2 am: 15. März 2016, 14:51:53
    @Bonsai: Hab aktuell gesehen, das es bei der "Bestseller-BOX" und  beim eingebauten
    Modul MiniCMS zu diesem Fehler kommt. Auf anderen Seiten hab ich das Problem bis jetzt noch nicht festgestellt.

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.127
    • Geschlecht:
    Re: Illegal string offset bei aktivem Cache
    Antwort #3 am: 15. März 2016, 15:08:14
    Poste doch mal die \testshop\templates_c\%%3E^3EF^3EF5D302%%box_best_sellers.html.php

    Was steht da drin?

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #4 am: 15. März 2016, 15:12:46
    hier die Datei:
    Zeile 20 ist wohl der Übeltäter:

    Code: PHP  [Auswählen]
    <h3><?php echo $this->_tpl_vars['box_data']['COUNT']; ?>

    Code: PHP  [Auswählen]
    <?php /* Smarty version 2.6.27, created on 2016-03-15 14:30:41
             compiled from xtc5/boxes/box_best_sellers.html */
    ?>
    <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
    smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'xtc5/boxes/box_best_sellers.html', 1, false),array('block', 'textformat', 'xtc5/boxes/box_best_sellers.html', 8, false),)), $this); ?>
    <?php echo smarty_function_config_load(array('file' => ($this->_tpl_vars['language'])."/lang_".($this->_tpl_vars['language']).".conf",'section' => 'boxes'), $this);?>

    <h2 class="boxheader"><?php echo $this->_config[0]['vars']['heading_best_sellers']; ?>
    </h2>
    <div class="boxbody">
      <?php $_from = $this->_tpl_vars['box_content']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['aussen'] = array('total' => count($_from), 'iteration' => 0);
    if ($this->_foreach['aussen']['total'] > 0):
        foreach ($_from as $this->_tpl_vars['box_data']):
            $this->_foreach['aussen']['iteration']++;
    ?>
        <dl>
          <dt><a href="<?php echo $this->_tpl_vars['box_data']['PRODUCTS_LINK']; ?>
    "><?php if ($this->_tpl_vars['box_data']['PRODUCTS_IMAGE']): ?><img src="<?php echo $this->_tpl_vars['box_data']['PRODUCTS_IMAGE']; ?>
    " alt="" title="" /><?php endif; ?></a></dt>
          <dd>
            <h3><?php echo $this->_tpl_vars['box_data']['COUNT']; ?>
    . <a href="<?php echo $this->_tpl_vars['box_data']['PRODUCTS_LINK']; ?>
    "><?php $this->_tag_stack[] = array('textformat', array('wrap' => 18,'wrap_cut' => true)); $_block_repeat=true;smarty_block_textformat($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php echo $this->_tpl_vars['box_data']['PRODUCTS_NAME']; ?>
    <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_textformat($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></a></h3>
            <p>
              <?php echo $this->_tpl_vars['box_data']['PRODUCTS_PRICE']; ?>
    <br />
              <?php if ($this->_tpl_vars['box_data']['PRODUCTS_VPE']): ?><?php echo $this->_tpl_vars['box_data']['PRODUCTS_VPE']; ?>
    <br /><?php endif; ?>
              <?php echo $this->_tpl_vars['box_data']['PRODUCTS_TAX_INFO']; ?>
    <?php echo $this->_tpl_vars['box_data']['PRODUCTS_SHIPPING_LINK']; ?>

            </p>
            <div class="hrlightgrey"></div>
          </dd>
        </dl>
        <div style="clear:both"></div>
      <?php endforeach; endif; unset($_from); ?>
    </div>

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.127
    • Geschlecht:
    Re: Illegal string offset bei aktivem Cache
    Antwort #5 am: 15. März 2016, 16:19:40
    poste mal die /templates/<dein template>/source/boxes/best_sellers.php

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #6 am: 15. März 2016, 16:22:31
    Bitte schön.

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: best_sellers.php 1292 2005-10-07 16:10:55Z mz $  

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(best_sellers.php,v 1.20 2003/02/10); www.oscommerce.com
       (c) 2003      nextcommerce (best_sellers.php,v 1.10 2003/08/17); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contributions:
       Enable_Disable_Categories 1.3                Autor: Mikel Williams | mikel@ladykatcostumes.com

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/

    // reset var
    $box_smarty = new smarty;
    $box_content = '';
    //$rebuild = false; //DokuMan - 2010-02-28 - fix Smarty cache error on unlink

            $box_smarty->assign('language', $_SESSION['language']);
            // set cache ID
            if (!CacheCheck()) {
                    $cache=false;
                    $box_smarty->caching = 0;
            } else {
                    $cache=true;
                    $box_smarty->caching = 1;
                    $box_smarty->cache_lifetime = CACHE_LIFETIME;
                    $box_smarty->cache_modified_check = CACHE_CHECK;
                    $cache_id = $_SESSION['language'].$current_category_id;
            }

    if (!$box_smarty->is_cached(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id) || !$cache) {
            $box_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
            //$rebuild = true; //DokuMan - 2010-02-28 - fix Smarty cache error on unlink
           
            // include needed functions
            require_once (DIR_FS_INC.'xtc_row_number_format.inc.php');
           
            //fsk18 lock
            $fsk_lock = '';
            if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
                    $fsk_lock = ' and p.products_fsk18!=1';
            }
            $group_check = ''; //DokuMan - 2010-02-28 - set undefined variable group_check
            if (GROUP_CHECK == 'true') {
                    $group_check = " and p.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 ";
            }

      //BOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink
      $file = DIR_FS_CATALOG . 'cache/bestseller/' . (int)$current_category_id.'.cache';
      if (is_file($file)) {
          $box_content = unserialize(implode('', file($file)));
      } else {
      //EOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink

                    if (isset ($current_category_id) && ($current_category_id > 0)) {
                      //BOF - Dokuman - 2009-05-28 - Performance optimization by using primary keys
                      // see http://shopnix.wordpress.com/2009/04/18/xtcommerce-performance/
                      // and http://shopnix.wordpress.com/2009/04/22/performance-optimierung/
                      /*
                            $best_sellers_query = "select distinct
                                                                    p.products_id,
                                                                    p.products_price,
                                                                    p.products_tax_class_id,
                                                                    p.products_image,
                                                              p.products_vpe,
                                                              p.products_vpe_status,
                                                              p.products_vpe_value,
                                                                    pd.products_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c, ".TABLE_CATEGORIES." c
                                                                    where p.products_status = '1'
                                                                    and c.categories_status = '1'
                                                                    and p.products_ordered > 0
                                                                    and p.products_id = pd.products_id
                                                                    and pd.language_id = '".(int) $_SESSION['languages_id']."'
                                                                    and p.products_id = p2c.products_id
                                                                    ".$group_check."
                                                                    ".$fsk_lock."
                                                                    and p2c.categories_id = c.categories_id and '".$current_category_id."'
                                                                    in (c.categories_id, c.parent_id)
                                                                    order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS;
                      */

                            $best_sellers_query = "select distinct
                                                   p.products_id,
                                                   p.products_price,
                                                   p.products_tax_class_id,
                                                   p.products_image,
                                                   p.products_vpe,
                                                   p.products_vpe_status,
                                                   p.products_vpe_value,
                                                   pd.products_name
                                                   from "
    .TABLE_PRODUCTS." p,
                                                   "
    .TABLE_PRODUCTS_DESCRIPTION." pd,
                                                   "
    .TABLE_PRODUCTS_TO_CATEGORIES." p2c,
                                                   "
    .TABLE_CATEGORIES." c
                                                   where p.products_status = '1'
                                                   and c.categories_status = '1'
                                                   and p.products_ordered > 0
                                                   and p.products_id = pd.products_id
                                                   and pd.language_id = '"
    .(int) $_SESSION['languages_id']."'
                                                   and p.products_id = p2c.products_id
                                                   "
    .$group_check."
                                                   "
    .$fsk_lock."
                                                   and p2c.categories_id = c.categories_id
                                                   and (c.categories_id = '"
    . (int)$current_category_id . "' or c.parent_id = '" . (int)$current_category_id . "')
                                                   order by p.products_ordered desc
                                                   limit "
    .MAX_DISPLAY_BESTSELLERS;
                      // EOF - Dokuman - 2009-05-28 - Performance optimization
                    } else {
                            $best_sellers_query = "select distinct
                                                   p.products_id,
                                                   p.products_image,
                                                   p.products_price,
                                                   p.products_vpe,
                                                   p.products_vpe_status,
                                                   p.products_vpe_value,
                                                   p.products_tax_class_id,
                                                   pd.products_name from "
    .TABLE_PRODUCTS." p,
                                                   "
    .TABLE_PRODUCTS_DESCRIPTION." pd       
                                                   where p.products_status = '1'
                                                   "
    .$group_check."
                                                   and p.products_ordered > 0
                                                   and p.products_id = pd.products_id "
    .$fsk_lock."
                                                   and pd.language_id = '"
    .(int) $_SESSION['languages_id']."'
                                                   order by p.products_ordered desc
                                                   limit "
    .MAX_DISPLAY_BESTSELLERS;
                    }
                    $best_sellers_query = xtDBquery($best_sellers_query);
                    //if (xtc_db_num_rows($best_sellers_query, true) >= MIN_DISPLAY_BESTSELLERS) {
                    if (xtc_db_num_rows($best_sellers_query, true) > 0 && xtc_db_num_rows($best_sellers_query, true) >= MIN_DISPLAY_BESTSELLERS) {
                            $rows = 0;
                            $box_content = array ();
                            while ($best_sellers = xtc_db_fetch_array($best_sellers_query, true)) {
                                    $rows ++;
                                    $image = '';
                                   
                                    $best_sellers = array_merge($best_sellers, array ('ID' => xtc_row_number_format($rows)));
                                    $box_content[] = $product->buildDataArray($best_sellers);
                                   
                            }
                    }
                    $box_smarty->assign('box_content', $box_content);
            }
      //BOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink
      // set cache ID
      /*
       if (!$cache || $rebuild) {
        if (count($box_content)>0) {
          if ($rebuild)  $box_smarty->clear_cache(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id);
          $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html',$cache_id);
          $smarty->assign('box_BESTSELLERS', $box_best_sellers);
        }
      } else {
        $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id);
        $smarty->assign('box_BESTSELLERS', $box_best_sellers);
      }
      */

      if (count($box_content) > 0) {
        $box_best_sellers = '';
          // set cache ID
        if (!$cache) {
          if ($box_content!='') {
              $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html');
          }
        } else {
          $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id);
        }

        $smarty->assign('box_BESTSELLERS', $box_best_sellers);
      }
    }
    //EOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink
    ?>

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.127
    • Geschlecht:
    Re: Illegal string offset bei aktivem Cache
    Antwort #7 am: 15. März 2016, 16:32:34
    versuch mal testweise die:

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: best_sellers.php 1292 2005-10-07 16:10:55Z mz $  

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(best_sellers.php,v 1.20 2003/02/10); www.oscommerce.com
       (c) 2003      nextcommerce (best_sellers.php,v 1.10 2003/08/17); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contributions:
       Enable_Disable_Categories 1.3                Autor: Mikel Williams | mikel@ladykatcostumes.com

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/

    // reset var
    $box_smarty = new smarty;
    $box_content = '';
    //$rebuild = false; //DokuMan - 2010-02-28 - fix Smarty cache error on unlink

    $box_smarty->assign('language', $_SESSION['language']);
    // set cache ID
    if (!CacheCheck()) {
        $cache = false;
        $box_smarty->caching = 0;
    } else {
        $cache = true;
        $box_smarty->caching = 1;
        $box_smarty->cache_lifetime = CACHE_LIFETIME;
        $box_smarty->cache_modified_check = CACHE_CHECK;
        $cache_id = $_SESSION['language'] . $current_category_id;
    }

    if (!$box_smarty->is_cached(CURRENT_TEMPLATE . '/boxes/box_best_sellers.html', $cache_id) || !$cache) {
        $box_smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
        //$rebuild = true; //DokuMan - 2010-02-28 - fix Smarty cache error on unlink

        // include needed functions
        require_once(DIR_FS_INC . 'xtc_row_number_format.inc.php');

        //fsk18 lock
        $fsk_lock = '';
        if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') {
            $fsk_lock = ' and p.products_fsk18!=1';
        }
        $group_check = ''; //DokuMan - 2010-02-28 - set undefined variable group_check
        if (GROUP_CHECK == 'true') {
            $group_check = " and p.group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
        }

        //BOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink
        $file = DIR_FS_CATALOG . 'cache/bestseller/' . (int)$current_category_id . '.cache';
        if (is_file($file)) {
            $box_content = unserialize(implode('', file($file)));
        } else {
            //EOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink

            if (isset ($current_category_id) && ($current_category_id > 0)) {
                //BOF - Dokuman - 2009-05-28 - Performance optimization by using primary keys
                // see http://shopnix.wordpress.com/2009/04/18/xtcommerce-performance/
                // and http://shopnix.wordpress.com/2009/04/22/performance-optimierung/
                /*
                  $best_sellers_query = "select distinct
                                                          p.products_id,
                                                          p.products_price,
                                                          p.products_tax_class_id,
                                                          p.products_image,
                                                        p.products_vpe,
                                                        p.products_vpe_status,
                                                        p.products_vpe_value,
                                                          pd.products_name from ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c, ".TABLE_CATEGORIES." c
                                                          where p.products_status = '1'
                                                          and c.categories_status = '1'
                                                          and p.products_ordered > 0
                                                          and p.products_id = pd.products_id
                                                          and pd.language_id = '".(int) $_SESSION['languages_id']."'
                                                          and p.products_id = p2c.products_id
                                                          ".$group_check."
                                                          ".$fsk_lock."
                                                          and p2c.categories_id = c.categories_id and '".$current_category_id."'
                                                          in (c.categories_id, c.parent_id)
                                                          order by p.products_ordered desc limit ".MAX_DISPLAY_BESTSELLERS;
                */

                $best_sellers_query = "select distinct
                                                   p.products_id,
                                                   p.products_price,
                                                   p.products_tax_class_id,
                                                   p.products_image,
                                                   p.products_vpe,
                                                   p.products_vpe_status,
                                                   p.products_vpe_value,
                                                                       p.products_class_id,
                                                   pd.products_name
                                                   from "
    . TABLE_PRODUCTS . " p,
                                                   "
    . TABLE_PRODUCTS_DESCRIPTION . " pd,
                                                   "
    . TABLE_PRODUCTS_TO_CATEGORIES . " p2c,
                                                   "
    . TABLE_CATEGORIES . " c
                                                   where p.products_status = '1'
                                                   and c.categories_status = '1'
                                                   and p.products_ordered > 0
                                                   and p.products_id = pd.products_id
                                                   and pd.language_id = '"
    . (int)$_SESSION['languages_id'] . "'
                                                   and p.products_id = p2c.products_id
                                                   "
    . $group_check . "
                                                   "
    . $fsk_lock . "
                                                   and p2c.categories_id = c.categories_id
                                                   and (c.categories_id = '"
    . (int)$current_category_id . "' or c.parent_id = '" . (int)$current_category_id . "')
                                                   order by p.products_ordered desc
                                                   limit "
    . MAX_DISPLAY_BESTSELLERS;
                // EOF - Dokuman - 2009-05-28 - Performance optimization
            } else {
                $best_sellers_query = "select distinct
                                                   p.products_id,
                                                   p.products_image,
                                                   p.products_price,
                                                   p.products_vpe,
                                                   p.products_vpe_status,
                                                   p.products_vpe_value,
                                                   p.products_tax_class_id,
                                                   pd.products_name from "
    . TABLE_PRODUCTS . " p,
                                                   "
    . TABLE_PRODUCTS_DESCRIPTION . " pd
                                                   where p.products_status = '1'
                                                   "
    . $group_check . "
                                                   and p.products_ordered > 0
                                                   and p.products_id = pd.products_id "
    . $fsk_lock . "
                                                   and pd.language_id = '"
    . (int)$_SESSION['languages_id'] . "'
                                                   order by p.products_ordered desc
                                                   limit "
    . MAX_DISPLAY_BESTSELLERS;
            }
            $best_sellers_query = xtDBquery($best_sellers_query);
            if (xtc_db_num_rows($best_sellers_query, true) >= MIN_DISPLAY_BESTSELLERS) {

                $rows = 0;
                $box_content = array();
                while ($best_sellers = xtc_db_fetch_array($best_sellers_query, true)) {
                    $rows++;
                    $image = '';

                    $best_sellers = array_merge($best_sellers, array('ID' => xtc_row_number_format($rows)));
                    $box_content[] = $product->buildDataArray($best_sellers);

                }


            }




            $box_smarty->assign('box_content', $box_content);
        }
        //BOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink
        // set cache ID
        /*
         if (!$cache || $rebuild) {
          if (count($box_content)>0) {
            if ($rebuild)  $box_smarty->clear_cache(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id);
            $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html',$cache_id);
            $smarty->assign('box_BESTSELLERS', $box_best_sellers);
          }
        } else {
          $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id);
          $smarty->assign('box_BESTSELLERS', $box_best_sellers);
        }
        */

        if (count($box_content) > 0) {
            $box_best_sellers = '';
            // set cache ID
            if (!$cache) {
                if ($box_content != '') {
                    $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_best_sellers.html');
                }
            } else {
                $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE . '/boxes/box_best_sellers.html', $cache_id);
            }

            $smarty->assign('box_BESTSELLERS', $box_best_sellers);
        }
    }
    //EOF - DokuMan - 2010-07-12 - fix Smarty cache error on unlink
    ?>

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #8 am: 15. März 2016, 16:39:39
    Hi Bonsai,

    mit Deiner bestseller.php gibts folgenden Fehler:

    Code: SQL  [Auswählen]
    1054 - UNKNOWN COLUMN 'p.products_class_id' IN 'field list'

    SELECT DISTINCT p.products_id, p.products_price, p.products_tax_class_id, p.products_image, p.products_vpe, p.products_vpe_status, p.products_vpe_value, p.products_class_id, pd.products_name FROM products p, products_description pd, products_to_categories p2c, categories c WHERE p.products_status = '1' AND c.categories_status = '1' AND p.products_ordered > 0 AND p.products_id = pd.products_id AND pd.language_id = '2' AND p.products_id = p2c.products_id AND p.group_permission_0=1 AND p2c.categories_id = c.categories_id AND (c.categories_id = '377' OR c.parent_id = '377') ORDER BY p.products_ordered DESC LIMIT 2

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #9 am: 15. März 2016, 16:46:35
    Hi Bonsai,

    folgendes hab ich mir gerade überlegt. Da der Fehler ja auch in einem eingebauten Modul (MiniCMS) kommt, kann es dann überhaupt an der best_seller.php liegen?

    Welche Files sind den in irgendeiner art mit der Cache-Funktion verbunden?

    Bonsai

    • Viel Schreiber
    • Beiträge: 4.127
    • Geschlecht:
    Re: Illegal string offset bei aktivem Cache
    Antwort #10 am: 15. März 2016, 16:48:37
    Ach Mist! Ja, ich habe vergessen, dass ich ja zusätzliche Felder habe  :datz:

    Einfach die Zeile Löschen in der das vorkommt.

    Oder nimm die Datei aus dem aktuellen Download des Shopsystems raus.

    Zu Deiner Frage .... eventuell ist hier in der neueren Version ein Bug behoben. Es gibt leichte Unterschiede bei den IF Abfragen ... Und möglicherweise ist der Bug von hier kopiert. Wenn ich neue Module baue, nehme ich oft was bestehendes als Vorlage.

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #11 am: 15. März 2016, 17:18:55
    @Bonsai: Deine best_seller.php hat auch nach Anpassung keine Lösung des beschriebenen Fehlers gebracht.  :’-(

    Welche Dateien sind den für den Cache zuständig? Ich denke das man hier ansetzten muss.
    Das Problem muss doch auch bei anderen Installationen mit dem SP2 bzw. SP3 in Verbindung mit PHP 5.5 auftauchen.

    lohkaes1

    • Schreiberling
    • Beiträge: 460
    Re: Illegal string offset bei aktivem Cache
    Antwort #12 am: 16. März 2016, 14:56:59
    Hallo Zusammen,

    wollte nochmal kurz Nachfragen, ob sonst noch irgendwer eine Idee/Vorschlag/Lösung etc. für das Problem hier hat? Es scheint so zu sein das dieses Cache-Problem nur in der modified eCommerce Shopssoftware v1.06 rev 4642 SP3 dated: 2016-01-25 mit Datenbank Version: "MOD_1.0.6.3" auftritt.

    Welche Files / Dateien oder Datenbankänderungen haben den mit dem Cache zu tun?

    Danke.
    4 Antworten
    2460 Aufrufe
    26. Mai 2017, 14:19:07 von web28
    7 Antworten
    6479 Aufrufe
    30. Dezember 2014, 13:29:50 von kaisa
    1 Antworten
    2135 Aufrufe
    20. Juni 2017, 14:57:23 von webald
    6 Antworten
    4300 Aufrufe
    01. Mai 2015, 20:43:35 von toppi