VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: milstan on November 24, 2014, 18:07:57 PM

Title: [SOLVED] VirtueMart Categories Layout in Joomla 3.3.6
Post by: milstan on November 24, 2014, 18:07:57 PM
Hello,

I upgraded my VirtueMart to the latest version 3.0.0. Site worked fine. Then I upgraded my Joomla site from 2.5.27 to 3.3.6 and Menu Item Type > VirtueMart Categories Layout doesn't work any more. I see this error in frontend (PHP 5.5):

Fatal error: Class VirtueMartControllerCategories cannot extend from interface JController in /components/com_virtuemart/controllers/categories.php on line 31

Also, when I try to edit this menu item, I see this error:

Warning
Extension attribute is empty in the category field

Also, it's not possible to select any category in the Select a Category field.

There are no template overrides for VirtueMart in my template.

Thank you for your help.
Title: Re: VirtueMart Categories Layout in Joomla 3.3.6
Post by: jenkinhill on November 24, 2014, 18:26:37 PM
Please verify that you attempted to use VM Categories layout and not category layout. That (ies) menu option was removed a year ago and has not been included in VM for many versions now.



[attachment cleanup by admin]
Title: Re: VirtueMart Categories Layout in Joomla 3.3.6
Post by: milstan on November 24, 2014, 18:49:19 PM
Thank you so much for your help! You saved my day! But I am still wondering why I see the deprecated CategoeIES menu item type at all?
Title: Re: VirtueMart Categories Layout in Joomla 3.3.6
Post by: jenkinhill on November 24, 2014, 18:55:51 PM
I suspect you have an old site which has been serially updated, but under com_virtuemart/views you still have a historical "categories" directory.
Title: Re: VirtueMart Categories Layout in Joomla 3.3.6
Post by: milstan on November 24, 2014, 19:08:35 PM
Yes, you are right! I also still have directory /components/com_virtuemart/views/categories. I see it's not included in later VirtueMart versions, so I deleted it (and some others as well).

Thanks again