Версия Joomla 1.5.15 версия VirtueMart 1.1.4. при загрузке 1600 товаров, стала выдаваться ошибка в файле ps_product_category, Fatal error: Maximum execution time of 30 seconds exceeded in public_html/administrator/components/com_virtuemart/classes/ps_product_category.php on line 610
"
Как я решила проблему:
1. Убрала в файле ps_product_category в цикле
$loop_count = 0;
$watch = array(); // Hash to store children
while(count($id_list) < $nrows) {
if( $loop_count > $nrows )
break;
$id_temp = array();
$row_temp = array();
$depth_temp = array();
for($i = 0 ; $i < count($id_list) ; $i++) {
$id = $id_list[$i];
$row = $row_list[$i];
$depth = $depth_list[$i];
array_push($id_temp,$id);
array_push($row_temp,$row);
array_push($depth_temp,$depth);
$children = @$parent_ids_hash[$id];
if (!empty($children))
{
foreach($children as $key => $value) {
if( !isset($watch[$id][$category_tmp[$key]["category_child_id"]])) {
$watch[$id][$category_tmp[$key]["category_child_id"]] = 1;
array_push($id_temp,$category_tmp[$key]["category_child_id"]);
array_push($row_temp,$key);
array_push($depth_temp,$depth + 1);
}
}
}
}
условие
if (!empty($children))
{
foreach($children as $key => $value) {
if( !isset($watch[$id][$category_tmp[$key]["category_child_id"]])) {
$watch[$id][$category_tmp[$key]["category_child_id"]] = 1;
array_push($id_temp,$category_tmp[$key]["category_child_id"]); array_push($row_temp,$key);
array_push($depth_temp,$depth + 1);
}
}
}
Сайт стал быстро грузиться, но при клике на любую из категорий появилась ошибка:
Warning: cannot yet handle MBCS in html_entity_decode()! in /home/automod7/public_html/libraries/joomla/application/pathway.php on line 209, и после ошибки выводит подкатегории
зашла в файл pathway.php убрала строку «$item->name = html_entity_decode($name, ENT_COMPAT, 'UTF-8');»
С категориями стало все шоколадно, но проваливаясь на товары, стала появляться ошибка
«Warning: cannot yet handle MBCS in html_entity_decode()! in /home/automod7/public_html/administrator/components/com_virtuemart/html/shop.product_details.php on line 235»
Удалила из файла shop.product_details.php строку «$vm_mainframe->setPageTitle( html_entity_decode( $page_title, ENT_QUOTES, vmGetCharset() ));»
Все заработало!!
Единственное, не могу понять, почему если раньше в самом меню кликая на категорию, она раскрывалась, и в самом меню был виден список всех подкатегорий, а сейчас при клике на категорию, переход осуществляется, но увы в меню ничего не раскрывается?
Кто-нибудь может подсказать как исправить проблему, и не могла ли она возникнуть при переходе с VM 1.1.3 на 1.1.4?