The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Fatal error: Call to undefined function ft_process_hook_calls()? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17)
+--- Thread: Fatal error: Call to undefined function ft_process_hook_calls()? (/showthread.php?tid=1365)



Fatal error: Call to undefined function ft_process_hook_calls()? - prometheus - Jun 13th, 2011

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



RE: Fatal error: Call to undefined function ft_process_hook_calls()? - prometheus - Jun 13th, 2011

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


RE: Fatal error: Call to undefined function ft_process_hook_calls()? - Ben - Jun 14th, 2011

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


RE: Fatal error: Call to undefined function ft_process_hook_calls()? - prometheus - Jun 15th, 2011

(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



RE: Fatal error: Call to undefined function ft_process_hook_calls()? - Ben - Jun 17th, 2011

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