After the addition of VM content elements, everything went smoothly, but when I tried to select VM Products (to translate them), the error message appeared:
- Code: Select all
Fatal error: Call to undefined method translationFilter::translationfilter() in /var/www/administrator/components/com_joomfish/contentelements/translationVm_categoryFilter.php on line 10
After further investigation, I figured the constructor wasn't called correctly, so I changed line 10 which was:
- Code: Select all
parent::translationfilter($contentElement);
into
- Code: Select all
parent::__construct($contentElement);
Also, one big warning.. All your php files should include at the very beginning these lines:
- Code: Select all
// Don't allow direct linking
defined( '_JEXEC' ) or die( 'Restricted access' );
which translationVm_categoryFilter.php didn't have by default, so I added that too.
Cheers
