SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic [resolved] Fatal error: Call to a member function getPriceAmount()... 3834 Views

[resolved] Fatal error: Call to a member function getPriceAmount()...

20 October 2013 at 10:55pm Last edited: 16 November 2013 11:34am

Hi,

I just tried to log out with a customer user and got this:
Fatal error: Call to a member function getPriceAmount() on a non-object in [mysite]/silvercart/code/order/SilvercartOrder.php on line 1381

I was on the page http://[mysite]/home/checkout/
(alwas after the order has been placed)
and tried to logout with http://[mysite]/Security/logout/

And logout fails all the time with the error above.

Not a very nice user experience... What should I do? Please Help!

thanx,
Szabesz

Re: [resolved] Fatal error: Call to a member function getPriceAmount()...

23 October 2013 at 9:48pm

Hi Gábor,

thanks for reporting, we'll look into that. Does this only occur after the order has been placed?

Cheers
Ramon

Re: [resolved] Fatal error: Call to a member function getPriceAmount()...

23 October 2013 at 10:03pm Last edited: 23 October 2013 10:03pm

Hi Ramon,

Yes, I do not remember seeing it in any other situations only right after an order has been placed.

Hope it can bee fixed easily :)

Cheers
Gábor

Re: [resolved] Fatal error: Call to a member function getPriceAmount()...

23 October 2013 at 10:19pm

Well, if happens after the order has been placed, we just need to prevent a successful order. This can be done easily ;-)

Cheers
Ramon

Re: [resolved] Fatal error: Call to a member function getPriceAmount()...

23 October 2013 at 10:25pm

Well, not a bad idea, but what happens when sales start to decline? :D

Re: [resolved] Fatal error: Call to a member function getPriceAmount()...

25 October 2013 at 3:09pm

Hi,

More info on this:
Now I get the error shown below right BEFORE an order has been placed, when trying to logout on the checkout overview page. And I get the same error too, right AFTER an order has been placed:

Fatal error: Call to a member function SilvercartShoppingCart() on a non-object in /Users/guru/Documents/MAMP/buyilike/silvercart/code/custom_forms/checkout/SilvercartCheckoutFormStep4.php on line 295

I do not know if it matters, but in the config I have both of these enabled:
- "Skip payment step if there is only one selection"
- "Skip shipping step if there is only one selection."

best
Szabesz

Re: [resolved] Fatal error: Call to a member function getPriceAmount()...

16 November 2013 at 11:33am

This is fixed for the next version.