formtools / api

The Form Tools API.
https://docs.formtools.org/api/
15 stars 16 forks source link

Form Tools 3 reCAPTCHA Form_builder form: Fatal Error when not "logged-in" #10

Closed johnbleck3 closed 6 years ago

johnbleck3 commented 6 years ago

Fatal error: Call to a member function prepare() on a non-object in /var/www/forms.buffalonews.com/global/code/Database.class.php on line 65

When not logged in reCAPTCHA can not load.

johnbleck3 commented 6 years ago

I forgot to mention - initially the "include" in modules/form_builder/smarty_plugins/function.captcha.php include_once(realpath(FILE . "/../../../global/api/api.php")); I had to change to: include_once(realpath(DIR . "/../../../global/api/api.php")); The stream failed as FILE - was referencing "modules/form_builder/published"

benkeen commented 6 years ago

Ah yes! I actually just released the update to the API so this will break. I'll see if I can patch it up tonight.

benkeen commented 6 years ago

This'll be patched on the Form Builder module: https://github.com/formtools/module-form_builder/issues/8

johnbleck3 commented 6 years ago

I keep throwin the bugs - and you just keep knockin em out! fixed with latest module and lovin it.

benkeen commented 6 years ago

haha thanks :)