Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: PHP errors

PHP errors 3 years 3 months ago #15655

Hello,

we report a problem at lukysipy.cz, where the web generates a huge number of bugs such as:
[15-Aug-2018 04:19:12] WARNING: [pool lukysipy_cz] child 47033 said into stderr: "NOTICE: PHP message: PHP Notice: Undefined offset: 1 in
/data/www/23045/lukysipy_cz/www/templates/marvays_lukysipycz_2012_b/html/com_virtuemart/category/flexv2.php on line 637"

Can you help me?

Joomla 2.5.28
CleanMart v3.9.3.2

on this line:
<div class="figure"> <?php echo JHTML::link($product->link, $product->images[0]->displayMediaThumb('class="browseProductImage '.$FlexibleRolloverCheck.'" rel="'. JURI::root().$product->images[1]->file_url_thumb .'" id="FlexibleImageParent'. $uniqueID .'"  border="0" title="'.$product->product_name.'" ',false,'',true,true,10,10)); ?> 
Thank you very much for your help.
The administrator has disabled public write access.

PHP errors 3 years 2 months ago #15669

Hi,

Looks like, you enabled the rollOver feature but some of your products don't have the 2nd picture thus causes PHP notices for those missing images. You may change that line to this below to prevent the error reporting:
<div class="figure"><?php 
    $secondImageUrl = (isset($product->images[1])) ? JURI::root() . $product->images[1]->file_url_thumb : "";
 
    echo JHTML::link($product->link, $product->images[0]->displayMediaThumb('class="browseProductImage ' . $FlexibleRolloverCheck . '" rel="' . $secondImageUrl . '" id="FlexibleImageParent' . $uniqueID . '"  border="0" title="' . $product->product_name . '" ', false, '', true, true, 10, 10));?> 

regards
Last Edit: 3 years 2 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.128 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo