Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Fancy Product Slider (SKU# FLEX-00004)

TOPIC: 500 internal server error

500 internal server error 10 years 6 months ago #6596

Hello.

Since i have installed the slider i keep getting 500 internal server errors and my website is really slow.
I changed Joomla server report setting to maximum and every image from slider has this message below '' Notice: Undefined variable: image in /home/ubijo258/public_html/modules/mod_vm_flexible_fancy_slider/tmpl/theme.php on line 86''

Can you help me?

Thank you
The administrator has disabled public write access.

500 internal server error 10 years 6 months ago #6597

Line 86:


echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$image,array('title' => $product->product_name) );
The administrator has disabled public write access.

500 internal server error 10 years 5 months ago #6612

Hi,

Undefined variable is innocent, beside, it is not an error. It is a "notice" for developing stage. This is why it doesn't show up unless the ERROR reporting is set to MAX.

That notice will never lead any 500 internal server situation. Error code 500 is way way bigger and different issue. It must be related to something else.

To eliminate that undefined variable notificiation;
Just before the 86th line, you can include this PHP lines:
if (!empty($product->images[0])) {
	$image = $product->images[0]->displayMediaThumb ('border="0"', FALSE);
} else {
	$image = '';
}

Since you are now defining the $image variable, you won't see "undefined variable" notification no more.

Regards,
Support & Development
The administrator has disabled public write access.
Time to create page: 0.092 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