VM3 - Warning: Creating default object from empty value

Started by z-analysts, November 29, 2014, 05:27:11 AM

Previous topic - Next topic

z-analysts

Warning: Creating default object from empty value in /components/com_virtuemart/views/categories/view.html.php on line 83

I just upgraded a test site from 2.6.12.2 to 3.0.0 and now receive the above PHP warning when I display all categories.

link to page with error: http://zclientdev.com/solfairtrade/fair-trade-products

Joomla 2.5.27
PHP 5.4.33

GJC Web Design

there is no /components/com_virtuemart/views/categories/view.html.php in VM3

the categories view was dropped in 2.0.6

sounds like a left over from old VM updates .. all category views are /components/com_virtuemart/views/category

change the menu that is calling this to a normal category view
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

z-analysts

Why then  is "Virtuemart Categories Layout" still a selectable menu item type? I want to display all categories on a single page.

jenkinhill

Presumably you still have an old categories directory in components/com_virtuemart/views/ from a much earlier version which is being seen by the new VM3 code.

Previously reported:  http://forum.virtuemart.net/index.php?topic=126899 

For showing all categories see this FAQ: http://forum.virtuemart.net/index.php?topic=120433.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

z-analysts