Author Topic: [SOLVED] Error 0 Call to a member function priceDisplay() on null  (Read 500 times)

mauriziomomix

  • Beginner
  • *
  • Posts: 28
Hello,
in two websites using VirtueMart 3.4.2 I am noticing the same error when clicking on the link present in the email notification of the order ("{SITEURL}/index.php?option=com_virtuemart&view=orders&layout=details&order_number={ORDERNUMBER}")

The error is: Error 0 Call to a member function priceDisplay() on null.

The PHP version is 7.1 but I also changed it in lower or upper without better results.
One of the two websites is in J3.9.1 and the second is in 3.9.2.

Anyone has experienced the same?

Thanks in advance
Maurizio

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8834
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Error 0 Call to a member function priceDisplay() on null
« Reply #1 on: January 24, 2019, 22:52:12 pm »
you need to trace the call stack to find the file and line

use   https://www.rupostel.com/utilities-for-joomla/extensions/fatal-catcher-plugin or full debugging
GJC Web Design
VirtueMart and Joomla Developers - php developers http://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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

mauriziomomix

  • Beginner
  • *
  • Posts: 28
Re: Error 0 Call to a member function priceDisplay() on null
« Reply #2 on: January 25, 2019, 09:39:24 am »
Hello,
thanks for replying me.
Full debugging is getting this output:

Undefined property: VirtuemartViewOrders::$print in /var/www/vhosts/ruggedstore.it/httpdocs/templates/vp_smart/layouts/default/html/com_virtuemart/orders/details.php on line 16
Informazioni sull'ordine

Notice: Undefined property: VirtuemartViewOrders::$orderdetails in /var/www/vhosts/ruggedstore.it/httpdocs/templates/vp_smart/layouts/default/html/com_virtuemart/orders/details.php on line 38

Notice: Trying to get property of non-object in /var/www/vhosts/ruggedstore.it/httpdocs/templates/vp_smart/layouts/default/html/com_virtuemart/orders/details.php on line 38

Warning: Creating default object from empty value in /var/www/vhosts/ruggedstore.it/httpdocs/templates/vp_smart/layouts/default/html/com_virtuemart/orders/details.php on line 38

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2044
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Error 0 Call to a member function priceDisplay() on null
« Reply #3 on: January 25, 2019, 09:58:43 am »
Looks like a problem with Your template, try switching to protostar or VMBeez3.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

mauriziomomix

  • Beginner
  • *
  • Posts: 28
Re: Error 0 Call to a member function priceDisplay() on null
« Reply #4 on: January 25, 2019, 10:18:24 am »
Hello Jörgen,
thank you very much.
Actually I did this (with the same result) adding all menu voices to Protostar but now I've done it again setting it as predefined also.
Well, the link works correctly. So is definitely a Virtueplanet Smart template Issue.
I already informed the template producer.

Thanks to all.

Maurizio

escozul

  • Beginner
  • *
  • Posts: 33
  • Skype Name: escozul
Re: [SOLVED] Error 0 Call to a member function priceDisplay() on null
« Reply #5 on: February 07, 2019, 11:36:32 am »
Hello,

I'm getting the same error too after a successfull order.

How exactly were you able to resolve it?

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2044
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: [SOLVED] Error 0 Call to a member function priceDisplay() on null
« Reply #6 on: February 07, 2019, 12:33:59 pm »
Try with Protostar as template setting. If error disappers then You have a template issue.

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)