Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: Fatal error when publishing shopping cart

Fatal error when publishing shopping cart 10 years 7 months ago #6318

Hi,

When I publish the shopping cart module that comes with the Cleanmart template I get an fatal error.
The same happened right after installing the plugin, and I had to disable it manually in the database since I couldn't even login on the backend anymore.

Fatal error: Cannot redeclare class plgSystemVM2_Cart in /home/plul180271/domains/autopot-store.eu/public_html/3/plugins/system/vm2_cart/vm2_cart.php on line 116

Any solutions for this?
The topic has been locked.

Fatal error when publishing shopping cart 10 years 7 months ago #6329

I just found out that we have done a terrible mistake in one of the plugin files.
Looks like we have used the same exact Class name in different plugins.

I am applying the patch to template permanently but to fix the problem for now,

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

Remove EVERY LINE you see in this file, and copy-paste the below lines instead:
<?php
/**
 * @version     
 * @package     Flexible Web Design - VM Template - Plugin
 * @copyright   Copyright (C) 2012. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Flexible Web Design Developer Team <[email protected]> - http://www.flexiblewebdesign.com
 */
 
// No direct access
defined('_JEXEC') or die('Restricted access');
 
jimport('joomla.plugin.plugin');
class plgSystemflexibleTemplate extends JPlugin {
	function __construct($config,$params) {
		parent::__construct($config,$params);
	}
 
}
 
// Load user_profile plugin language
$lang = JFactory::getLanguage();
$lang->load('plg_flexibleTemplate', JPATH_ADMINISTRATOR);
//echo JText::_('PLG_CONTENT_EXAMPLE_LINKNAME');
?>

The redeclaration FATAL error will be gone.
Last Edit: 10 years 7 months ago by Support.
The topic has been locked.

Fatal error when publishing shopping cart 10 years 7 months ago #6353

Thanks!
The topic has been locked.

Fatal error when publishing shopping cart 10 years 7 months ago #6363

your welcome.

Case solved. Topic is closed.

Regards.
Support & Development
The topic has been locked.
Time to create page: 0.092 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