FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal error: Call to undefined function ft_process_hook_calls()?
#1
Greetings!

Just installed a fresh copy of FormTools 2.0.6 on my server. Got a test submission to work w/ form #1. When I switched over the code to make it live, I started getting this error:

Fatal error: Call to undefined function ft_process_hook_calls() in /path/to/root/formtools/global/api/api.php on line 695

I can't seem to figure out what the dealio is. I've been referencing previously-designed forms on another server, and my code syntax appears to match up fine.

Any ideas?

Thanks in advance!

prometheus
Reply
#2
Well, I fixed the error.

However, I'm not 100% sure what exactly caused the fix.

For anyone reading this thread, here's what steps I took to resolve the issue:

1. Changed api include to: $_SERVER['DOCUMENT_ROOT'] . "/formtools/global/api/api.php";

2. Changed "submit_button" => "submit_button" to "submit_button" => "property_address"
(I referenced the name attribute of a text field in the form, and used an image-based submit button

3. Renamed the dynamic variable $form_tools_form_id to just $form_id; I then reference this in $fields = ft_api_initi_form_page($form_id);
This makes it easier for non-hard-coded forms.

4. Added a name="<?=$formname;?>" into the <form> tag, and defined $formname at the top of the php file as "prelisting" (in this example)

5. Uploaded a new API core to /global/api/ (downgraded to 1.0.1)

Once these changes were made, I was able to submit new form submissions. Again, I'm not sure which one of these exactly did the trick. Perhaps Ben would like to comment on this (not a huge priority, but for other people who've run into the same problem).

On that note, glad it's working. Hopefully my notes above help point others in the right direction.

Peace.

-p
Reply
#3
Hi Prometheus -

Yes, it was the API version. The last version of the API that supports Form Tools 2.0.6 is 1.0.1.
http://docs.formtools.org/api/?page=changelog

Didn't the upgrade script warn you that there was an inconsistency when you upgraded? If not... that would be a bug!

- Ben
Reply
#4
(Jun 14th, 2011, 4:28 AM)Ben Wrote: Hi Prometheus -

Yes, it was the API version. The last version of the API that supports Form Tools 2.0.6 is 1.0.1.
http://docs.formtools.org/api/?page=changelog

Didn't the upgrade script warn you that there was an inconsistency when you upgraded? If not... that would be a bug!

- Ben


Thanks for the info, Ben.

Regarding upgrading: I don't believe I got a warning, as I did the manual (ftp rename/upload) way. I think I initially tried installing the 2.1.1 version since it integrated w/ Google Maps, but when it didn't work, I swapped out the /global folder w/ the downgraded version containing API 1.0.1. This may have been completed between the hours of 3a-7a. I may not have taken notes of what I was doing, as the caffeine wore off by then...so I'm sorry that I can't be of more help.

I attribute it to user error. Wink

-p
Reply
#5
haha thanks, that's nice of you. But I should really make the API download page make it totally clear what versions are compatible and what aren't. Or better, Form Tools itself could pipe up and say "whoah! incompatible API version!" Something like that should happen...

Anyway, thanks for letting me know. Smile

- Ben
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)