7 replies [Last post]
August Engkilde's picture
Offline
Joined: 10/07/2007
Juice: 26
Was this information Helpful?

Fatal error: Call to undefined function uc_get_order_status_id() in /home/brumtone/public_html/home/modules/uc_file_product/uc_file_product.module on line 407

What does this mean?

After testing tjeck out I get this + the files are still in the shopping cart.

the payment method is set to check.

I do get a mail telling that I bought the product, but no files in "my Files"
,

/August E

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Fatal error: Call to undefined function uc_get_order_status_

Hey August, thanks for posting up. Smiling That contribution hasn't been updated to the latest version of Ubercart, and I'm not sure what CpILL's plans are for it. I'm sure he'll be updating eventually, but he's got several things going at once. Sticking out tongue

August Engkilde's picture
Offline
Joined: 10/07/2007
Juice: 26
So what do you mean Do my

So what do you mean

Do my version of übercart not match the version of file product?

/August

yhager's picture
Offline
Joined: 10/01/2007
Juice: 59
Here's the fix
August Engkilde's picture
Offline
Joined: 10/07/2007
Juice: 26
Re: Here's the fix

So where shouol I change this code?

<?php
 
if ($status == uc_get_order_status_id('post_payment'))
  {
?>

To this:

<?php
 
if (uc_order_status_data($status, 'state') == 'completed') {
?>
August Engkilde's picture
Offline
Joined: 10/07/2007
Juice: 26
Re: Re: Here's the fix

Sorry that was a stupid question. I made the code change, now it works, but When going to my files i get this:

warning: filesize() [function.filesize]: stat failed for Inside The Police Beat Box.mp3 in /home/brumtone/public_html/home/modules/uc_file_product/uc_file_product.module on line 311.

August Engkilde's picture
Offline
Joined: 10/07/2007
Juice: 26
Re: Re: Re: Here's the fix
torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Re: Re: Here's the fix

That's a change I actually had included in my custom code of File Products. I'll update the zip file to reflect it.

--
Help directly fund development: Donate via PayPal!