Hi. I'm trying to add a recurring subscription to restricted content on a localhost development project. When creating the feature I get the above strict warning. I searched on Drupal and found lots of similar but nothing specific to uc_Recurring. The full warning is "Strict warning: Creating default object from empty value in uc_recurring_product_feature_form_submit() (line 181 of C:\xampp\htdocs\devsite\sites\all\modules\uc_recurring\modules\uc_recurring_product\uc_recurring_product.module)."

Any thoughts?

If I ignore the warning and try to purchase as an anonymous user I get the following "Strict warning: Only variables should be passed by reference in uc_recurring_product_form_uc_cart_checkout_form_alter() (line 409 of C:\xampp\htdocs\devsite\sites\all\modules\uc_recurring\modules\uc_recurring_product\uc_recurring_product.module)."

The non recurring version of the product works fine.

Comments

IBouglas’s picture

I may have found a workaround for the second part of my problem. The site will only ever sell subscriptions so there will never be a recurring product, only a recurring subsciption. I have successfully avoided the warning by removing the file that generates it. The shopping cart will now allow me to move to the checkout. I'll continue testing.

julianoamadeu’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.0-alpha3
Assigned: Unassigned » julianoamadeu

Same Issue.

fasteddy760’s picture

Maybe this helps...

Strict warning: Only variables should be passed by reference in uc_recurring_product_form_uc_cart_checkout_form_alter() (line 409 of /home/www/domain.com/sites/all/modules/uc_recurring/modules/uc_recurring_product/uc_recurring_product.module).

PHP 5.4.6-1ubuntu1.1
7.x-2.0-alpha3

guilopes’s picture

Issue summary: View changes
StatusFileSize
new735 bytes

I solved this problem with this partch =)

guilopes’s picture

Status: Active » Needs review