Author Topic: Error message in Categories  (Read 558 times)

Tryer

  • Jr. Member
  • **
  • Posts: 125
Error message in Categories
« 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

Tryer

  • Jr. Member
  • **
  • Posts: 125
Re: Error message in Categories
« Reply #1 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); ?>

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10882
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Error message in Categories
« Reply #2 on: August 16, 2023, 19:30:37 PM »
have u tried VM4.2.0?  Might be fixed..

https://virtuemart.net/downloads

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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

  • Jr. Member
  • **
  • Posts: 125
Re: Error message in Categories
« Reply #3 on: August 16, 2023, 22:30:58 PM »
Thanks for the tip - I’ll try it asap.

Tryer

  • Jr. Member
  • **
  • Posts: 125
Re: Error message in Categories
« Reply #4 on: August 17, 2023, 11:06:44 AM »
OK, I upgraded to VM 4.2 but the error remains the same.