VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Gruz on October 19, 2011, 00:53:52 AM

Title: vmextendedplugin.php fix - improper a class property and a method declaration
Post by: Gruz on October 19, 2011, 00:53:52 AM
VM 1.9.8 i (updated from 1.9.8 G->H->I)
Sample data installed
J! 1.7.1
Linux
PHP 5.3.5



Here is an abstract class:
administrator/components/com_virtuemart/helpers/vmextendedplugin.php
abstract class VmExtendedPlugin extends JPlugin {

Here are the problems:

private $_name = '';
...
private function getName() {


Both must be protected to be posiible to be inherited. I met a problem when experimenting with an extended plugin and getting fatal errors.

So it must be:

protected $_name = '';

protected function getName() {


FIXED in newer versions
Title: Re: vmextendedplugin.php fix - improper a class property and a method declaration
Post by: Milbo on October 19, 2011, 12:25:31 PM
thanks,