Hello,

I'm getting this error when I try to activate ToS Fatal error: Call to undefined function ca_load_trigger_predicates() in /home/****/public_html/*****/sites/all/modules/uc_termsofservice/uc_termsofservice.module on line 179

I'm really new in the Drupal CMS so I will be really happy if I can get some assistance

Comments

bgm’s picture

Title: Error Message » Error Message: call to undefined function ca_load_trigger_predicates
Assigned: Unassigned » bgm
Category: support » bug
Status: Needs review » Fixed

Thanks for reporting this issue. It seems to be a forgotten piece of code that was left there after the port to Drupal 7.

I removed the code for now. At some point in the future we might want to add support for Rules instead.

tr’s picture

Priority: Major » Minor

You would only encounter this bug if you had enabled Rules for terms of service at admin/store/settings/checkout. This happened because uc_termsofservice_checkout_ca wasn't renamed to uc_termsofservice_checkout_rules as it should have been. I've committed a fix for that. Note that enabling Rules on the admin form doesn't do anything yet - adding Rules support to the code is pretty easy, it just requires someone to spend a little time on it.

apamix’s picture

Hello,

Thanks for the fast replay. Yes indeed if you disable the Rule option you have no problems, but like I said I'm really new in the Drupal... and I have another problem the ToS module is enabled and in the admin/store/settings/checkout is enabled but when I try to checkout I get no ToS. Is there a problem with the ToS and Ubercart 7 ? Or I do something wrong ?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.