Installation error: Call to undefined function uc_product_node_info()

Posts: 6
Joined: 02/20/2008

After installing all the necessary modules (Tables API (TAPIr), uBrowser, Token, Workflow-ng, I uploaded the ubercart module. After that, I get the following error message:

Fatal error: Call to undefined function uc_product_node_info() in /home/webroot/finesse.com/drupal-5.3/sites/all/modules/ubercart/shipping/uc_quote/uc_quote.module on line 113

any ideas what's wrong?

I had a previous installation of ecommerce, but meticulously followed the instructions for uninstalling and flushing out the cache tables.

Posts: 2243
Joined: 08/07/2007
AdministratoreLiTe!

The module dependencies should prevent this from happening. What version of Übercart are you using? Did you do anything in particular as you were enabling the Übercart modules?

Posts: 7
Joined: 02/21/2008

I'm having exactly the same problem, but pointing to flat-rate module - even before I enable ANY of the uc modules... all 4 requisites are present and enabled:
* TAPIr
* Token
* uBrowser
* Workflow-ng

I have to physically remove UC from the server to clear the error.

Fatal error: Call to undefined function uc_product_node_info() in /usr/www/users/rgdaniel/awtdesigns/sites/all/modules/ubercart/shipping/uc_flatrate/uc_flatrate.module on line 56

--

--
R.G.Daniel
www.rgdaniel.com

Posts: 2243
Joined: 08/07/2007
AdministratoreLiTe!

uc_flatrate isn't even enabled and it's throwing that error? My understanding of Drupal is collapsing faster and faster.

Posts: 6
Joined: 02/20/2008

I installed 5.x-1.0-beta5 from the Drupal site. I cannot even get to the admin screen, or any other screen for that matter, after uploading the Ubercart folder to the modules directory. So I was not able to enable any of the modules.

The site is http://www.finesse.com/drupal-5.3/ if you want to see the error messages.

thanks!

Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

You really should update to Drupal 5.7. Also, you can grab the latest version w/ a fix in it for this issue from http://bazaar.ubercart.org.

(It's the link at the top labeled Download .tar.gz.)

Posts: 6
Joined: 02/20/2008

OK. I uploaded the suggested version of Ubercart. I can view some screens, but get a host of errors, among them a recommendation to run the database update script. However, when I do that, I get the following error:
Fatal error: Call to undefined function uc_product_node_info() in /home/webroot/finesse.com/drupal-5.3/sites/all/modules/ubercart/shipping/uc_quote/uc_quote.module on line 170

The attached file is a screenshot of my Status Report screen.

AttachmentSize
status-report.gif20.27 KB
Posts: 5245
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

The update script is at http://www.example.com/update.php.

It looks like you may have other issues if it can't find the order statuses table, though. Have you always been on beta 5 or did you update from a much older version?

Posts: 7
Joined: 02/21/2008

Speaking for myself, I am working on a spanking new fresh install of Drupal 5.7, then the 4 required modules for Ubercart I listed, then Ubercart. Then death. My client is not amused... and I'm confused... how can I have done anything wrong yet, it's throwing errors before I even enable it. - using ubercart beta 4, which was the most recent listed as of a couple of days ago...

--

--
R.G.Daniel
www.rgdaniel.com

Posts: 7
Joined: 02/21/2008

beta 5 now doing exactly the same thing, completely kills the whole website the moment it's uploaded to the server... really stuck here

--

--
R.G.Daniel
www.rgdaniel.com

Posts: 7
Joined: 02/21/2008

Okay here's what I did, maybe it will help -- I removed the folder "shipping" and its contents from the server. After that I could actually load the modules page. Enabled most of the modules, then ran update script, then uploaded "shipping" again. Some new modules now appeared on the list,under fulfillment, but somehow *already enabled*. Ran update script again. So far looks okay.

However I am NOT filled with confidence, and wonder if I can, in good faith, really recommend this product as a solution for my client.

--

--
R.G.Daniel
www.rgdaniel.com

Posts: 1290
Joined: 08/14/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.

Was Drupal already installed there at one point? There will be problems / inconsistencies if you removed old installation files but didn't empty out the previous database. Does this make sense?

Thats my guess as to why the modules would've been enabled already, but I could be wrong.

Check your watchdog (error logs) and see if it's saying anything. If it isn't I think you're okay. Thoroughly test the checkout / shipping quotes procedure and report back if you have further issues. Sorry you didn't have the easiest experience so far.

--

"Pain don't hurt." - Dalton

Mike Nelson's RiffTrax! www.rifftrax.com

Posts: 7
Joined: 02/21/2008

Thanks - seems to have all its bits and pieces now, and behaving itself, at least as far as going through the settings. I did start with a freshly created database, but by the time it threw the error, then I deleted files and re-upped them, it could have left stuff in the database. But for sure the original error was on a virgin install of Drupal + database. Twice (one 5.6, one 5.7)

--

--
R.G.Daniel
www.rgdaniel.com

Posts: 10
Joined: 03/12/2008

i get the same error...im followin the advice given to update to version drupal 5.7..however i dont kno how to run the update...can someone point me in the right direction

Posts: 10
Joined: 03/12/2008

hey bro how do i update from drupal 5.2 to 5.7?

Posts: 924
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.