Virtuemart 1.1.5 class jfactory not found for Joomla 1.0.15

In a recent effort to migrate an overdue Joomla 1.0.x installation to Joomla 1.5, I hit a snag where the Virtuemart shopping cart needed to be upgraded to be compatible with the migration script. In doing so, this broke the shopping cart checkout on my Virtuemart 1.1.5 instance.

When a user fills their shopping cart with products, then proceeds to the checkout it dumps to a completely blank screen with this error:

Fatal error: Class ‘jfactory’ not found in /var/www/xxx/administrator/components/com_virtuemart/html/checkout.index.php on line 28

Searching around, I did not find too much help with this one other some related posts with other Joomla components which were considered “compatible” with Joomla 1.0.x. This error occurs when the Virtuemart code attempts to use a component that comes with Joomla 1.5 called “jfactory”.

Carefully looking at the jfactory portion of the code, it becomes a bit more clear. It first fills the $lang variable, then uses that to concatenate a variable for $name. Which, for most of us is simply going to end up as “english”. I looked for a way to install jfactory on the 1.x.x Joomla site and I did not find squat.

What I simply ended up doing is removing the $lang and $name lines, and simply removed the if/else clause to force it to use English. The code should end up like this:

I hope you can breath a sigh of relief as I did when this end up working properly to allow orders to start flowing again.

3 Replies to “Virtuemart 1.1.5 class jfactory not found for Joomla 1.0.15”

  1. I have the same error:
    ‘Fatal error: Class ‘jfactory’ not found in /home/stlmarin/public_html/administrator/components/com_virtuemart/html/checkout.index.php on line 28′

    but when i look in /public_html/administrator/components/com_virtuemart/html/checkout.index.php

    I do a find for the terms and jfactory mentioned above, nothing is found… what am I doing wrong?

Leave a Reply

Your email address will not be published.