Product builder issue - cannot redeclare vminfo

Please post your issues and questions about One Page Checkout for Virtuemart 2 to this forum.

Product builder issue - cannot redeclare vminfo

Postby admin » Wed Sep 25, 2013 4:27 pm

Dear friends, if you see a fatal errors like
Fatal error: Cannot redeclare vmInfo() (previously declared in /administrator/components/com_virtuemart/helpers/config.php:81) in /administrator/components/com_virtuemart/helpers/config.php on line 121

and you are using Product builder extension, we strongly recommend to update your:
\components\com_productbuilder\productbuilder.php

and change this lines
FROM:
Code: Select all
require(JPATH_PBVM_ADMIN.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'config.php');

TO:
Code: Select all
if (!class_exists('VmConfig')) require(JPATH_PBVM_ADMIN.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'config.php');

FROM:
Code: Select all
require(JPATH_PBVM_SITE.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'shopfunctionsf.php');

TO:
Code: Select all
if (!class_exists('shopFunctionsF')) require(JPATH_PBVM_SITE.DIRECTORY_SEPARATOR.'helpers'.DIRECTORY_SEPARATOR.'shopfunctionsf.php');


Without this patch you will never be able to load any 3rd party extensions that load virtuemart configuration before the component initialization. They include some cart modules, plugins that need vm config. (seo plugins, shopper group plugins or similar)

Best regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 2