VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Tryer on August 14, 2023, 12:21:48 PM

Title: Error message in Categories
Post by: Tryer on August 14, 2023, 12:21:48 PM
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
Title: Re: Error message in Categories
Post by: Tryer on August 16, 2023, 16:56:39 PM
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); ?>
Title: Re: Error message in Categories
Post by: GJC Web Design on August 16, 2023, 19:30:37 PM
have u tried VM4.2.0?  Might be fixed..

https://virtuemart.net/downloads

Title: Re: Error message in Categories
Post by: Tryer on August 16, 2023, 22:30:58 PM
Thanks for the tip - I'll try it asap.
Title: Re: Error message in Categories
Post by: Tryer on August 17, 2023, 11:06:44 AM
OK, I upgraded to VM 4.2 but the error remains the same.