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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | uc_recurring-strict_warning_empty_value-1421866-4.patch | 735 bytes | guilopes |
Comments
Comment #1
IBouglas commentedI 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.
Comment #2
julianoamadeu commentedSame Issue.
Comment #3
fasteddy760 commentedMaybe 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
Comment #4
guilopes commentedI solved this problem with this partch =)
Comment #5
guilopes commented