Fatal Error - filch - Aug 11th, 2011
I am receiving the following error:
Code: Fatal error: Call to undefined function ft_process_hook_calls() in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 695
This form is set up on one site but is accessing the api on a support site, which also is on the same server. I like to just have one instance of formtools that handles all the sites. However I have just moved this site to a new server and so, not having seen this error before, I am hoping someone has an idea of what this is and how to fix it?
Cheers,
Dave
RE: Fatal Error ( Update ) - filch - Aug 12th, 2011
This appears, from searching around ) to be a API version error. The version in this current server is only version 2.0.0. So, thinks I, you must upgrade. So, in the interface I go to Settings > Main and select Check for Updates. This takes me to the Upgrade page and I am presented with a "DO NOT UPGRADE" warning!! So, thinks I, this is strange!. Then I look closer and the explanation I see is that, if I upgrade to version 2.0.6, some of my components may cease to work?? It suggests that I try another version. So, I try downgrading a bit to all the version below 2.0.6 but they all say the same thing. DON'T DO IT!! So I say, WTF?
It seems the only version that is safe to upgrade to is the beta 2.1.0 version, except that it also says that it should ne be used to production environments? Again I say, WTF??
So, someone please tell me, what am I supposed to do?
Dave
RE: Fatal Error - Ben - Aug 12th, 2011
Hi Dave,
So yeah, it sounds like have a version problem with the API. Just download the latest version that is compatible with 2.0.0:
http://docs.formtools.org/api/?page=changelog
(i.e. you'll want API version 1.0.1).
Regarding the problems on the upgrade page, it actually makes sense... that page tries it best to put together a compatible bunch of things to upgrade to. But in your case, you have incompatible elements already installed, so it's just getting confused.
All the best -
Ben
RE: Fatal Error - filch - Aug 12th, 2011
So I upgraded OK I? believe and the admin part seems to operate OK but when I submit a form, I get a whack of errors, i.e.:
Code: Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: view_field_smarty_markup in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1025
Notice: Undefined index: settings in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1026
Notice: Undefined index: view_field_rendering_type in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1029
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: view_field_smarty_markup in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1025
Notice: Undefined index: settings in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1026
Notice: Undefined index: view_field_rendering_type in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1029
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: view_field_smarty_markup in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1025
Notice: Undefined index: settings in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1026
Notice: Undefined index: view_field_rendering_type in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1029
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: field_type_id in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1018
Notice: Undefined index: view_field_smarty_markup in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1025
Notice: Undefined index: settings in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1026
Notice: Undefined index: view_field_rendering_type in /home/zuka/public_html/test.support/formtools/global/code/field_types.php on line 1029
Warning: Cannot modify header information - headers already sent by (output started at /home/zuka/public_html/test.support/formtools/global/code/field_types.php:1018) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 881
Any ideas now?
Dave
RE: Fatal Error - filch - Aug 13th, 2011
I am not trying to be impatient here as I truly do understand and appreciate the nature of this software, but I am right in the middle of moving a bunch of sites to a new server and after the upgrade, all my sites are producing errors as in the previous post as well as the one below:
Code: Notice: Undefined index: email in /home/thirdv/public_html/index.php on line 5
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/thirdv/public_html/index.php:5) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1585
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/thirdv/public_html/index.php:5) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1585
Warning: Cannot modify header information - headers already sent by (output started at /home/thirdv/public_html/index.php:5) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1586
Warning: Cannot modify header information - headers already sent by (output started at /home/thirdv/public_html/index.php:5) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1587
Notice: A session had already been started - ignoring session_start() in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1585
Warning: Cannot modify header information - headers already sent by (output started at /home/thirdv/public_html/index.php:5) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1586
Warning: Cannot modify header information - headers already sent by (output started at /home/thirdv/public_html/index.php:5) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1587
which is sort of similar to the previous error.
This is the block of code I have at the top of the page:
Code: <?php
require_once("/home/zuka/public_html/test.support/formtools/global/api/api.php");
ft_api_delete_unfinalized_submissions(15, false);
$criteria = array("email" => $_POST["email"]);
$fields = ft_api_init_form_page(15);
ft_api_start_sessions();
$fields = isset($_SESSION["form_tools_form_data"]) ?
ft_strip_tags($_SESSION["form_tools_form_data"]) : array();
$params = array(
"submit_button" => "submit",
"next_page" => "subscribe-thanks.php",
"form_data" => $_POST,
"finalize" => true
);
ft_api_process_form($params);
?>
If I comment out the $criteria array, it reduces the error to:
Code: Notice: A session had already been started - ignoring session_start() in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1585
Warning: Cannot modify header information - headers already sent by (output started at /home/zuka/public_html/test.support/formtools/global/api/api.php:1585) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1586
Warning: Cannot modify header information - headers already sent by (output started at /home/zuka/public_html/test.support/formtools/global/api/api.php:1585) in /home/zuka/public_html/test.support/formtools/global/api/api.php on line 1587
I really need to see if I can repair this otherwise I will be faced with reinstalling and perhaps even putting separate instances of Formtools up ... one for each site. I think that would defeat the purpose though.
If anyone has any ideas about this I would certainly like to hear them.
Dave
RE: Fatal Error - Ben - Aug 15th, 2011
Hi Dave,
Since you need to get this fixed quickly, I'd do a simple band-aid: turn down the error reporting to display only genuine errors. Add this line to your /global/config.php file:
PHP Code: $g_default_error_reporting = 1;
By default, Form Tools main releases always have that value set. Beta versions have it cranked up to 2047 so all minor warnings and notices like this are displayed.
All the problems you listed were minor: an "email" var not being defined, which ouputs the error, which prevents the form redirecting properly because content had already been sent to the browser, etc.
(And no worries about sounding impatient at all! I know what a pain it can be to try to resolve these things when time is at a minimum!)
- Ben
|