Prestashop 未定义索引:desclength
我在Prestashop 1.6.1.0 Stats>Catalog Evaluation中得到了这个通知Prestashop 未定义索引:desclength,prestashop,Prestashop,我在Prestashop 1.6.1.0 Stats>Catalog Evaluation中得到了这个通知 Notice: Undefined index: desclength_zh in /var/www/1cdeli.com.cn/public_html/modules/statscheckup/statscheckup.php on line 259 Notice: Undefined index: desclength_en in /var/www/1cdeli.com.cn/pub
Notice: Undefined index: desclength_zh in /var/www/1cdeli.com.cn/public_html/modules/statscheckup/statscheckup.php on line 259
Notice: Undefined index: desclength_en in /var/www/1cdeli.com.cn/public_html/modules/statscheckup/statscheckup.php on line 259
在从1.6.0.14更新之前,我遇到了相同的问题。控制您拥有相同的最新版本模块,如下所示:
foreach ($descriptions as $description)
{
if (isset($description['iso_code']) && isset($description['description']))
$row['desclength_'.$description['iso_code']] = Tools::strlen(strip_tags($description['description']));
if (isset($description['iso_code']))
{
$scores['description_'.$description['iso_code']] = ($row['desclength_'.$description['iso_code']] < Configuration::get('CHECKUP_DESCRIPTIONS_LT') ? 0 : ($row['desclength_'.$description['iso_code']] > Configuration::get('CHECKUP_DESCRIPTIONS_GT') ? 2 : 1));
$totals['description_'.$description['iso_code']] += $scores['description_'.$description['iso_code']];
}
}
foreach($description as$description)
{
if(isset($description['iso_code'])和&isset($description['description']))
$row['desclength.'.$description['iso_code']]=Tools::strlen(strip_标签($description['description']);
if(isset($description['iso_code']))
{
$scores['description.'.$description['iso_code']]=($row['desclength.'.$description['iso_code']]]Configuration::get('CHECKUP_DESCRIPTIONS_GT')?2:1));
$totals['description.'.$description['iso_code']+=$scores['description.'.$description['iso_code']];
}
}
Git模块: