Hi,

I upgraded UBERCART from version 3.8 to 3.11. All seemed to be fine until someone in the office tried to add a Product Kit to an order. The following happened:

  • There were no items showing in the product kit
  • When saved it duplicated
  • Notice: Only variables should be passed by reference in eval() (line 3 of /home/ficmin/public_html/modules/php/php.module(80) : eval()'d code).
  • SKU appears to be a missing field when going to the content type

Here is a screenshot of one of the kits:

pkerror

CommentFileSizeAuthor
pkerror.jpeg69.44 KBgarethb_uk

Comments

garethb_uk created an issue. See original summary.

tr’s picture

Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

someone in the office tried to add a Product Kit to an order

This was on the backend order administration? Please list the steps you took to add the product kit and the URL you used.

There were no items showing in the product kit

No items shown where? In the backend order admin? On the product kit node page?

When saved it duplicated

I don't know what this means. Please provide more information about what steps are needed and where you are seeing this duplication.

Notice: Only variables should be passed by reference in eval() (line 3 of /home/ficmin/public_html/modules/php/php.module(80) : eval()'d code).

The PHP module is not used by Ubercart, so this notice is not due to anything in Ubercart.

SKU appears to be a missing field when going to the content type

Again, where does this happen? What URL? SKU is a base field, which in Drupal means it doesn't show up on the "manage fields" tab, only on the "manage display" tab.

I upgraded UBERCART from version 3.8 to 3.11

Did you update core Drupal at the same time? Did you update any other module? Did you run update.php? Are there any errors in your web server log or dblog? Have you tested with the default theme to see if these things are theme related? Have you searched the issue queue for any similar issues (open AND closed issues - 7.x-3.8 is very old so most upgrade issues would have been raised long ago)? If any of these problems have been seen before there is probably an existing issue for them and there may even be patches that are awaiting community review. If this has already been reported you could help by participating in those issues - applying any proposed patches and seeing if they fix your problem then posting your experience in those other issues.

garethb_uk’s picture

  • Yes I am on the latest version of Drupal
  • I always run update.php
  • Upgrades were done via modules update - so would have gone through the steps of Upgrading from 3.8 to 3.11 and any other module that was listed there
  • I did search the web and Drupal forums etc for this and couldn't find anything related to this.

logs:

Notice: Undefined index: sub_products in uc_product_kit_uc_order_product_alter() (line 1032 of ../sites/default/modules/custom/ubercart/uc_product_kit/uc_product_kit.module).

Notice: Undefined property: stdClass::$order_product_id in uc_order_edit_products_form() (line 396 of ../sites/default/modules/custom/ubercart/uc_order/uc_order.order_pane.inc).

Notice: Undefined property: stdClass::$order_product_id in uc_order_edit_products_form() (line 400 of ../sites/default/modules/custom/ubercart/uc_order/uc_order.order_pane.inc).

Any help would be appreciated

I have been using Drupal for years, but only really a newbie at this level of development

garethb_uk’s picture

Sorry missed the other questions:

>SKU is missing when you view the product kit under content. It is there in version 3.8
>Empty lines are when you add an order
>Once you save the order items are duplicated
>Sorry I have added the correct logs now

So we go to create order in store, under administration.

Hope that helps. Be gentle i'm new at this :-)

garethb_uk’s picture

Title: Missing SKU and duplicates » Notice: Undefined index: sub_products in uc_product_kit_uc_order_product_alter()
garethb_uk’s picture

I have done a manual upgrade from 3.8 to 3.9 and get the same error:

Notice: Undefined index: sub_products in uc_product_kit_uc_order_product_alter() (line 1032 of ../sites/default/modules/custom/ubercart/uc_product_kit/uc_product_kit.module)

Also the product kit content type is missing the SKU field, this was showing in version 3.8, so suspect this is part of the problem. We are stuck now and can't upgrade as it breaks our product kits.

garethb_uk’s picture

Status: Postponed (maintainer needs more info) » Active
garethb_uk’s picture

Priority: Normal » Minor
Status: Active » Closed (works as designed)

I am so sorry, it appears that a unique Product Kit SKU is something that had been added by a developer before my time.

I found out by doing a clean install of Drupal/UBERCART versions 3.8. Although this would be nice to have.

Sorry!!!!