To further explain, for the “broken” product page, the page does not fully load, it stops loading after the 3rd “related product”. Stops at <li…… and that’s the end of the page.
I dug around the source code and so far I’ve found out the issue. Not sure how to fix it yet.
In, wp-content/themes/enfold/config-woocommerce/config.php, line 972 to line 994 inside that “avia_woocommerce_output_related_products” function, I commented out the content, removing the related products from the page, and now all my product pages are loading fine.
function avia_woocommerce_output_related_products($items = false, $columns = false)
{
global $avia_config;
$output = "";
/*
if(!$items) $items = $avia_config['shop_single_column_items'];
if(!$columns) $columns = $avia_config['shop_single_column'];
ob_start();
woocommerce_related_products(array('posts_per_page'=>$items, 'columns'=>$columns)); // X products, X columns
$content = ob_get_clean();
if($content)
{
$output .= "<div class='product_column product_column_".$columns."'>";
//$output .= "<h3>".(__('Related Products', 'avia_framework'))."</h3>";
$output .= $content;
$output .= "</div>";
}
*/
$avia_config['woo_related'] = $output;
return $output;
}