News:

Looking for documentation? Take a look on our wiki

Main Menu

Error message in Categories

Started by Tryer, August 14, 2023, 12:21:48 PM

Previous topic - Next topic

Tryer

Having upgraded my Joomla 3 site to Joomla 4, I now see the error message below when opening the category general information in the Admin panel:
Details
Notice: Undefined property: VirtuemartViewCategory::$parent in /home/sites/mysite/public_html/j4/administrator/components/com_virtuemart/views/category/tmpl/edit_categoryform.php on line 54 Notice: Trying to get property 'virtuemart_category_id' of non-object in /home/sites/mysite/public_html/j4/administrator/components/com_virtuemart/views/category/tmpl/edit_categoryform.php on line 54 m

Please note that the Joomla 4 site is currently in a subdirectory "J4" on the live J3 site.

However, the categories apparently function normally.

Can anyone please advise on what might be the problem?
Comments appreciated.

Joomla 4.0.22
PHP 7.4.33
VM 4.3.3

Tryer

Does it help that this is the bit of code that seems to be the source of the error?

<?php echo VmHTML::row('raw','COM_VIRTUEMART_CATEGORY_NAME',VmHtml::input('category_name',$this->category->category_name,'class="required inputbox"').$this->origLang); ?>

GJC Web Design

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

Tryer

Thanks for the tip - I'll try it asap.

Tryer

OK, I upgraded to VM 4.2 but the error remains the same.