Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Dropdown Shopping Cart(SKU# FLEX-00001)

TOPIC: Thumb are missing or 500 Internal Server problem

Thumb are missing or 500 Internal Server problem 8 years 10 months ago #12684

Hi,

If your Virtuemart version is higher than Virtuemart 3.0.2, then keep reading....

This problem has started happening after VM3.0.4 (with VM3.0.2 everything was OK!). because the way Virtuemart handles the db select has changed (JTable has been replaced by VmTable class in some of the core files)

When adding a product to cart, or removing from the cart.. Console trows this Internal Server - 500 error message:

Attachment ScreenShot2015-06-02at7.00.43PM.png not found





Until we fix this problem and release a new version for FlexibleDropdown shopping cart module; there are 2 solutions that you can follow; DO ONLY ONE OF THEM:

1- If you follow this patch, the product pictures won't displayed in the dropdown shopping cart box after clicking the "add to cart" button, but after refreshing the file, the picture will be displayed. (the picture won't be displayed via AJAX loading)
- Open this PHP file: /plugins/system/FlexibleVm3cart/FlexibleVm3cart.php
- Find and delete all the highlighted lines:


Attachment ScreenShot2015-02-17at11.48.52PM_2015-05-23.png not found




2- use two of the VM3.0.2's core files in the VM3.0.4 (and above)

- Download the VM3.0.2 from the original source: dev.virtuemart.net/attachments/download/885/com_virtuemart.3.0.2.zip

UNZIP it; and find these 2 files:
com_virtuemart.3.0.2.ZIP / administrator / components / com_virtuemart / helpers / vmmodel.php
com_virtuemart.3.0.2.ZIP / administrator / components / com_virtuemart / helpers / vmtable.php


and upload them (overwrite with the existing ones) to here (BACKUP THE ORIGINALs FIRST):
yourwebsite.com / administrator / components / com_virtuemart / helpers / vmmodel.php
yourwebsite.com / administrator / components / com_virtuemart / helpers / vmtable


If you follow the 2nd method, everything works just like how it was before. The pictures will be displayed on the dropdown box.

Regards.
Last Edit: 8 years 10 months ago by Support.
The administrator has disabled public write access.

Thumb are missing or 500 Internal Server problem 8 years 10 months ago #12729

Disregard the previous reply.

This problem has been resolved in a simpler way and i am now providing you the simplest solution ever.

Open this PHP file:
plugins/system/FlexibleVm3cart/FlexibleVm3cart.php

find this line:
if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php');

and replace it with this:
if (!class_exists( 'VmConfig' )) require(JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php');
VmConfig::loadConfig();

that's it. The internal server error will be gone.

TESTED and CONFIRMED.
Last Edit: 8 years 10 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.110 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