When I take a test product which has been configured with a recurring fee as a feature and add it to my cart, I see the following errors:

Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 801 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/uc_recurring.module).

Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 805 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/uc_recurring.module).

Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 805 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/uc_recurring.module).

Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 820 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/uc_recurring.module).

in red at top of page.

Ignoring those errors, putting down my debit card and proceeding to Review my order, I see:

Notice: Undefined property: stdClass::$type in uc_product_kit_uc_order_product_alter() (line 1004 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/ubercart/uc_product_kit/uc_product_kit.module).

Submitting the Order yields these errors:

Notice: Undefined index: amount in uc_recurring_hosted_paypal_wpp_process() (line 824 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).

Notice: Undefined index: data in uc_recurring_hosted_paypal_wpp_process() (line 825 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).

Notice: Undefined index: CURRENCYCODE in uc_recurring_hosted_paypal_wpp_process() (line 852 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).

Notice: Undefined property: stdClass::$rfid in uc_recurring_hosted_paypal_wpp_process() (line 865 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).

Notice: Undefined index: TRANSACTIONID in uc_recurring_hosted_paypal_wpp_process() (line 878 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'txn_id' cannot be null: INSERT INTO {uc_payment_paypal_ipn} (order_id, txn_id, txn_type, mc_gross, status, receiver_email, payer_email, received) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array ( [:db_insert_placeholder_0] => 6 [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => web_accept [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => Completed [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => dev-site-admin@entrepreneurialfoundations.com [:db_insert_placeholder_7] => 1307230321 ) in uc_recurring_hosted_paypal_wpp_process() (line 886 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_hosted/uc_recurring_hosted.module).

Backing up and trying again, yields this notice,

Notice: Undefined variable: return in uc_recurring_product_process_order() (line 420 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/modules/uc_recurring_product/uc_recurring_product.module).

along with a message that

Your order is complete! Your order number is 6.

Thank you for shopping at Our store. While logged in, you may continue shopping or view your current order status and order history.

My card is tapped for a $1.00 test transaction, which appears in my paypal account, and a payment profile is created, it seems. But there is an awful lot of scary red noise in the user interface which I have not been able to make go away.

Can someone please advise me on what I may be missing here?

Thanks,
Hugh Esco

Comments

hesco’s picture

While I orginally filed this as a support request, I'm thinking this ought to be reclassified as a user-interface bug / feature request, that these warnings and notices be captured, suppressed and that helpful configuration instructions and links might be rendered in their stead.

When I choose the Create Profile button from here:
/cart/checkout/complete#overlay=admin/store/orders/recurring

I get these red warnings:

Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2039 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/database/database.inc).

Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2039 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/database/database.inc).

Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2039 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/database/database.inc).

Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2039 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/database/database.inc).

Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2039 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/database/database.inc).

Notice: Array to string conversion in DatabaseStatementBase->execute() (line 2039 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/database/database.inc).

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '', 'Array', NULL, 'Array', '', '', '', '', 'post', 'Array', 'Array', 'Array'' at line 1: SELECT ru.*, u.name FROM {uc_recurring_users} ru JOIN users u ON u.uid = ru.uid WHERE rfid = :rfid_build_info, :rfid_rebuild, :rfid_rebuild_info, :rfid_redirect, :rfid_temporary, :rfid_submitted, :rfid_executed, :rfid_programmed, :rfid_cache, :rfid_method, :rfid_groups, :rfid_buttons, :rfid_input; Array ( [:rfid_build_info] => Array ( [args] => Array ( [0] => 1 [1] => paypal_wpp ) ) [:rfid_rebuild] => [:rfid_rebuild_info] => Array ( ) [:rfid_redirect] => [:rfid_temporary] => Array ( ) [:rfid_submitted] => [:rfid_executed] => [:rfid_programmed] => [:rfid_cache] => [:rfid_method] => post [:rfid_groups] => Array ( ) [:rfid_buttons] => Array ( ) [:rfid_input] => Array ( ) ) in uc_recurring_fee_user_load() (line 728 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/sites/all/modules/uc_recurring/uc_recurring.module).

and then this page content:

The website encountered an unexpected error. Please try again later.

Backing up and using the Reactivate button gets me only:

Notice: Undefined index: uc_recurring_hosted_paypal_wpp_reactivate_form in drupal_retrieve_form() (line 736 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/form.inc).

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'uc_recurring_hosted_paypal_wpp_reactivate_form' was given in drupal_retrieve_form() (line 771 of /var/www/EntrepreneurialFoundations.com/drupal-7.0/includes/form.inc).

and no page content.

Its tickling paypal for me now, at a cost of $2 today (got to dig out those sandbox credentials). Its even creating recurring payment profiles. But its making lots of scary noise on the way.

univate’s picture

Status: Active » Closed (duplicate)

Since there is no stable release yet for D7, I am marking this as a duplicate of the D7 port issue and creating a link there (#992252: uc_recurring Drupal 7 port) to this.

If you have a specific bug you would like to address with a patch I am more then happy for this issue to be re-opened and then review any patches and get them committed.

I have got the D7 port 90% there, but not really wanting to spend any time on support requests until the port is actually completed.

dfludd’s picture

I got the exact same issue when trying a test checkout from this module.
I suspect you are working on this?

Thanks

Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 801 of /home/XXXXX/public_html/main/modules/uc_recurring/uc_recurring.module).
Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 805 of /home/XXXXX/public_html/main/modules/uc_recurring/uc_recurring.module).
Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 805 of /home/XXXXX/public_html/main/modules/uc_recurring/uc_recurring.module).
Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 820 of /home/XXXXX/public_html/main/modules/uc_recurring/uc_recurring.module).

benjohnstone’s picture

Same issue for me.

Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 809 of /Users/-------/Sites/-------/sites/all/modules/uc_recurring/uc_recurring.module).
Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 813 of /Users/-------/Sites/-------/sites/all/modules/uc_recurring/uc_recurring.module).
Notice: Undefined property: stdClass::$order_product_id in uc_recurring_get_fees() (line 813 of /Users/-------/Sites/-------/sites/all/modules/uc_recurring/uc_recurring.module).
Notice: Undefined property: stdClass::$order_id in uc_recurring_get_fees() (line 828 of /Users/-------/Sites/-------/sites/all/modules/uc_recurring/uc_recurring.module).