Some products throwing "Fatal error: Class 'shopFunctions' not found" error.

Started by marklandry, June 19, 2013, 18:25:58 PM

Previous topic - Next topic

marklandry

Hi, this is intermittent, but I get the following error on some of my products listed at the following link:

http://seejesus.net/store/shop-jesus-resources

Click on the product "Person of Jesus Leaders Manual" to get the error.  Again, not all products on this page are throwing the error:

QuoteFatal error: Class 'shopFunctions' not found in /xxxx/administrator/components/com_virtuemart/helpers/mediahandler.php on line 230

I saw an older post (mid 2012) on this but nothing helped so I thought I'd start a new thread.

Safe path seems to be set correctly, and no overrides on this page

Also, if I create a new product, all works fine... 

thanx for your help.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/


marklandry

I applied the hack


class VmMediaHandler {

var $media_attributes = 0;
var $setRole = false;

function __construct($id=0){

require_once "shopfunctions.php"; // <-------------------------------------- insert this line

$this->virtuemart_media_id = $id;

$this->theme_url = VmConfig::get('vm_themeurl',0);
if(empty($this->theme_url)){
$this->theme_url = JURI::root().'components/com_virtuemart/';
}
}


at /public_html/administrator/components/com_virtuemart/helpers/mediahandler.php
from here: http://forum.virtuemart.net/index.php?topic=109808.0

and it works, but I need a more permanent solution.  Or I need to figure out why this started happening all of a sudden, and why it's on some products and not on others.

Thanx again for your help

Mark

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/