Author Topic: Blank page after review submit - Class 'shopfunctions' not found  (Read 1982 times)

Tanase B.

  • Beginner
  • *
  • Posts: 12

After upgrading from .24c to the latest version of virtuemart the submit review doesn't work completly, though the review is being submited and saved, but the returning page is blank.
It is not template related (I tried with Joomla's default templates) & also not because of the php version (tried with both 5.4 and 5.3).
After enabling the error reporting function in Joomla! I get this:
"fatal error: class 'shopfunctions' not found in -directory-/components/com_virtuemart/helpers/shopfunctionsf.php line 463".

For the moment I solved it by commenting that line which looks like this:
"$vars['vendorAddress'] = shopFunctions::renderVendorAddress ($product->virtuemart_vendor_id);".

*With a fresh install of virtuemart on localhost the review system works fine.

Is this a bug occured after update or something else?


  • Contributing Developer
  • Full Member
  • *
  • Posts: 2045
Re: Blank page after review submit - Class 'shopfunctions' not found
« Reply #1 on: January 17, 2014, 11:31:40 am »
The correct fix is:
adding this line at the begin of the function
Code: [Select]
if(!class_exists('ShopFunctions')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'shopfunctions.php');