Can some one please help. I have had problem after problem with Ubercart and I'm getting no where.

How do I fix this error?

Fatal error: Call to undefined function rules_invoke_event() in /var/www/vhosts/leschenesbugey.com/httpdocs/sites/all/modules/ubercart/uc_product/uc_product.module on line 679

Comments

longwave’s picture

Priority: Critical » Normal

Do you have Rules installed?

longwave’s picture

Status: Active » Fixed

OK, so you need Rules to install uc_order, but you can install uc_product without uc_order (or Rules). Fix committed so uc_product works without Rules being installed.

mummawalker’s picture

I've installed Rules, now I get this:

Fatal error: Call to undefined function commerce_price_property_info_callback() in /var/www/vhosts/leschenesbugey.com/httpdocs/sites/all/modules/entity/modules/field.info.inc on line 30

longwave’s picture

That error is generated by Drupal Commerce, which is a separate e-commerce package unrelated to Ubercart. Installing both on the same site at the same time is not recommended. Support issues for Drupal Commerce should be posted at http://drupal.org/project/issues/commerce

mummawalker’s picture

Thanks. trying to remove drupal commerce but cant - will speak to them (and may be back)

mummawalker’s picture

Ahh well, deleted all my mods and starting again! Thanks for the advice though.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ilechcod’s picture

Category: support » bug
Priority: Normal » Major
Status: Closed (fixed) » Needs work

I've just gotten this same error on my Drupal installation. I am using the latest version of the Ubercart product (7.x-3.0 - downloaded yesterday). I don't have Rules installed, but I dont have Ubercart Orders module enabled either. The only module I have enabled is Product.

I got this error when trying to add a new product node to the system. Since I dont hace Orders enabled, it shouldnt ask me for Rules, or should it?

Apparently, the fix wasnt committed?

Regards All.

tr’s picture

Category: bug » support
Priority: Major » Normal
Status: Needs work » Closed (fixed)

You CANNOT enable just the Product module. Cart, Order, Product, and Store all all REQUIRED - it says this on admin/modules and it says this in the documentation. We cannot make those four modules depend on each other because then Ubercart could never be uninstalled - we have to trust that people will follow the instructions.

ilechcod’s picture

Category: support » bug
Priority: Normal » Major
Status: Closed (fixed) » Needs work

Posted by longwave on February 21, 2012 at 2:56pm
Status: active » fixed

OK, so you need Rules to install uc_order, but you can install uc_product without uc_order (or Rules). Fix committed so uc_product works without Rules being installed.

TR, did you look at this above conversation thread before making your post?

Also find below th CURRENT entries on admin/modules for UBERCART core module for the Product module.

Product 7.x-3.0 REQUIRED. Provides content types to represent items in an online store.
Requires: Image (enabled), File (enabled), Field (enabled), Field SQL storage (enabled), Store (enabled)
Required by: Product attributes (disabled), Cart (disabled), Cart Links (disabled), Catalog (disabled), File downloads (disabled), Shipping quotes (disabled), Flat rate (disabled), Google Checkout (disabled), Google Analytics for Ubercart (disabled), Payment method pack (disabled), Product kit (enabled), Reports (disabled), Roles (disabled), Shipping (disabled), Stock (enabled), Taxes (disabled), Tax report (disabled), UPS (disabled), U.S. Postal Service (disabled), Weight quote (disabled)

It CLEARLY shows that Product module (Store Module is required, right( should be installable WITHOUT ENABLING Orders module.

MODULES THAT ARE NOT LISTED IN REQUIRES CLAUSE OF A MODULE (SAY MODULE A) SHOULD NOT BE REQUIRED IN ORDER TO ENABLE THAT PARTICULAR MODULE (MODULE A). Things should be done in an orderly way, to prevent confusion.

Could you please, provide the documentation that says that "Cart, Order, Product, and Store all all REQUIRED - it says this on admin/modules and it says this in the documentation like you posted above?

I believe core philosophy behind Drupal is "flexibility". Users should be able to configure a system that fits their needs. I suggest ensure you read the ENTIRE conversation before making posts in future, in order to prevent confusions.

Thank you for your input.
Regards

tr’s picture

Category: bug » support
Priority: Major » Normal
Status: Needs work » Closed (fixed)

@ilechod: You've been a member of drupal.org for less than 6 days. I suggest that before you come out swinging you spend some time reading and learning. If you had, you might have discovered that I know a little bit about Ubercart, and perhaps the problem here is not that I don't know what I'm talking about but that you don't understand the basics.

Here's a bit of a clue for you:
This issue was opened against Ubercart 7.x-3.0, which was published on 1 Feb 12. This issue was marked "fixed" on 21 Feb 12. Do you understand what that means? Evidently not ...

Could you please, provide the documentation that says ...

Did you even make an effort here? Go to the main Ubercart project page at http://drupal.org/project/ubercart and click on the link for "Installation instructions", or click on the link for "Read documentation". Then read. This is clearly stated in the documentation. I should know, I helped write it.

I suggest ensure you read the ENTIRE conversation before making posts in future

I've read EVERY thread in this issue queue, in its entirety, for the past four and a half years - have you? Consider for just a moment that you might not be aware of the context of this issue ...

I've returned this issue to its original status. Please respect the prerogative of the maintainers to control their own issue queue, and leave it that way until you know enough to say that this really should be reopened.

ilechcod’s picture

TR,
Thanks for your insulting remarks. Unfortunately I wouldnt be returning them, since my motive was simply to point out an issue, and perhaps suggest a solution (I assume you have the same motives for using Drupal).

I was referring to Longwave's post (quoted below) - that uc_product should be installable without Rules being installed - and that a fix for that had been committed.

Posted by longwave on February 21, 2012 at 2:56pm
Status: active » fixed

OK, so you need Rules to install uc_order, but you can install uc_product without uc_order (or Rules). Fix committed so uc_product works without Rules being installed.

As @ yerstarday, I noticed that, uc_product still threw exceptions - if Rules wasnt enabled - meaning the above WAS EITHER NOT FIXED OR NOT COMMITTED.

I am also sure that - you never thought of the possible scenario where someone might be installing Ubercart, simply for Product (& Store) Management features for his site, without necessarily needing a full shopping cart (and therefore the Orders module). Simply because Ubercart contains a product module - thats much better than creating a new Product content type from scratch.

But like you said (both remarks apparently correct):
(1) I don't know anything about Drupal or Ubercart
(2) I am not a maintainer of Ubercart Module

As you may have noticed, I have also left the issue's status the way you marked it - closed (fixed). Of course, I respect your judgement as the maintainer of this product. I've mentioned something (as a user) detracting some of my colleagues trying to build a Product Management site (w/o shopping cart and Orders) from using Ubercart. I believe that's all I can do as - a user. If the maintainer decides to ignore the issue or leave it as fixed - I wouldnt stuggle with that - I dont know enough to.

But there's one more thing I can do as a user - check out another product (such as Drupal e-commerce), that meets my needs better.

And hey, 1 more thing - the post from your installation documentation (http://drupal.org/node/1406946) reads:

Required core modules
Cart (ubercart/uc_cart)
Gives you a shopping cart for an Ubercart e-commerce site.
Order (ubercart/uc_order)
Allows you receive and manage orders through your website.
Product (ubercart/uc_product)
Allows you to create products for your store. Imagecache and CCK Image field are recommended for displaying images of products.
Store (ubercart/uc_store)
Allows you to setup the store settings and manage your Ubercart site.
These are the modules that Ubercart uses for basic core functionality as an e-commerce site.

Again, that assumes that EVERYONE using Ubercart NEEDS to build a full ecommerce site (looks a little bit presumptous to me - but I'll keep my opinions to myself - after all I'm not the maintainer (and I've only been on Drupal for 6 days, instead of 4.5 yrs)

As you can see, I never read the Ubercart documentation, before making my posts.

I sincerely appreciate all the work you guys are doing on Drupal contrib modules (including Ubercart) - Drupal has grown indeed since the Version 5 (Hey - I've only used Drupal for 6 days...interesting remark btw)

(Sincerely) Wish you the best, TR

ilechcod’s picture

TR,
Perhaps a simple suggestion would be to add the Rules module as required for uc_product to function properly.
This would be a better approach, rather than throwing up "PHP Fatal error: Call to undefined function rules_invoke_event()" errors to sincere users who dedicately followed your "thorough" documentation, and enabled uc_product, without Rules module because, according to your current entry on admin/modules (see below), this is possible:

Current Entry
Product 7.x-3.0
REQUIRED. Provides content types to represent items in an online store.
Requires: Image (enabled), File (enabled), Field (enabled), Field SQL storage (enabled), Store (enabled)

I am sure if you modified this to say:
Recommended Entry
Product 7.x-3.0
REQUIRED. Provides content types to represent items in an online store.
Requires: Image (enabled), File (enabled), Field (enabled), Field SQL storage (enabled), Store (enabled), Rules (required)

...it would go a long way to preventing unecessary confusion, while ensuring that Ubercart complies with Drupal standards for writing usable, user-friendly, modules, as well as Drupal development best practices.

Just another suggestion from someone who doesnt know enough about Drupal (or Ubercart).
By the way, you don't need to check.....I didnt reopen the issue - left it the way you left it (unattended to or is it "closed/fixed"). You are the boss, remember....?

It's up to you to decide to conform to Drupal module development best practices (and SWEBOK guidelines for practicing software engineers), or otherwise. That's what differentiates experts from professionals - conformance to standards. Choice is exclusively yours.

Have a great week ahead!