Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
You can see PHP fatal error on uc_ajax_cart/add/item page after posting data if module Ubercart Product attributes not used. Need to check Product attributes module in your hook_add_to_cart().
Sorry for my bad English
Comments
Comment #1
stewart.adam CreditAttribution: stewart.adam commentedThank you for reporting this, this will be fixed in the latest dev that will be released shortly.
In the mean time, you will see in uc_ajax_cart_add_to_cart() there is this line:
if (module_exists('uc_cart_links')) {
simply changing it to:
if (module_exists('uc_attribute')) {
works around the problem for now.
Comment #2
hockey2112 CreditAttribution: hockey2112 commentedWorked for me!
Comment #3
stewart.adam CreditAttribution: stewart.adam commentedGreat! This will be included in the 6.x-2.2 release. In the mean time, please use dev.
Comment #5
sobi3ch CreditAttribution: sobi3ch commentedsorry, just want to know did you add this to repo? I can't find it!
Comment #6
stewart.adam CreditAttribution: stewart.adam commentedSorry about that, you're right - looks like I committed this locally and forgot to push it out. Done now.
Comment #7
stewart.adam CreditAttribution: stewart.adam commentedI have queued 6.x-2.2 for release.
Comment #8.0
(not verified) CreditAttribution: commentedadd details